From 680f9acfa8fedea30c591abe3da5c91d74610c7a Mon Sep 17 00:00:00 2001 From: cat Date: Tue, 14 Jun 2016 12:20:21 +0200 Subject: [PATCH] LSP: fixed embed option propagation; invisible but clickable menu --- lsp/main.css | 6 +++ lsp/minified.js | 131 ++++++++++++++++++++++++------------------------ lsp/mist.js | 28 ++++++----- 3 files changed, 87 insertions(+), 78 deletions(-) diff --git a/lsp/main.css b/lsp/main.css index 5edcbd2a..95167398 100644 --- a/lsp/main.css +++ b/lsp/main.css @@ -98,6 +98,12 @@ nav .menu { margin: 1em 0; font-size: 1.1em; } +.hide { + opacity: 0; +} +nav .menu.hide a { + cursor: default; +} nav a, nav a:hover { color: inherit; text-decoration: none; diff --git a/lsp/minified.js b/lsp/minified.js index 25310965..009ec72f 100644 --- a/lsp/minified.js +++ b/lsp/minified.js @@ -19,21 +19,21 @@ ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",SS:"South Su UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela, Bolivarian Republic of",VN:"Viet Nam",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"},tooltip:{show:function(a,c){$tooltip=this.element;$.contains(document.body,$tooltip[0])||$("body").append($tooltip);$tooltip.html(c);clearTimeout(this.hiding); delete this.hiding;var e=$(document).height()-$tooltip.outerHeight(),b=$(document).width()-$tooltip.outerWidth();$tooltip.css("left",Math.min(a.pageX+10,b-10));$tooltip.css("top",Math.min(a.pageY+25,e-10));$tooltip.show().addClass("show")},hide:function(){$tooltip=this.element;$tooltip.removeClass("show");this.hiding=setTimeout(function(){$tooltip.hide()},500)},element:$("
").attr("id","tooltip")},popup:{element:null,show:function(a){this.element=$("
").attr("id","popup").append($("