From 24415adb4eff017c07e346826c7d46367ab0fff8 Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 3 Feb 2014 09:21:24 -0500 Subject: put corner links in a popup --- shader-combo.html | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/shader-combo.html b/shader-combo.html index 6d9e0de..9757d50 100644 --- a/shader-combo.html +++ b/shader-combo.html @@ -72,12 +72,16 @@ a { color: #00f; }
- +
@@ -259,6 +261,17 @@ function init(){ render() }) + $("#links").change(function(e){ + var url = $(this).val() + if (url.match("http://")) { + var win = window.open(url, '_blank'); + if (win == null || typeof(win) == "undefined" || (win == null && win.outerWidth == 0) || (win != null && win.outerHeight == 0) || win.test == "undefined"){ + window.location.href = url; + $(this).val("default") + } + } + }) + load() help.init() user.init() -- cgit v1.2.3-70-g09d2