diff --git a/lsp/main.css b/lsp/main.css index a8953cdb..c0ed5056 100755 --- a/lsp/main.css +++ b/lsp/main.css @@ -90,7 +90,10 @@ body { #message > a { text-decoration: underline; color: #505050; +} +a { cursor: pointer; + text-decoration: underline; } #ih-button, #ih-button.active:hover { position: absolute; diff --git a/lsp/main.js b/lsp/main.js index a06f69d7..0d88e038 100755 --- a/lsp/main.js +++ b/lsp/main.js @@ -1455,10 +1455,8 @@ $(function(){ $('#ih-button').click(function(){ - if (ih) { - $('.ih-balloon').remove(); - } - else { + $('.ih-balloon').remove(); + if (!ih) { getWikiData('/wiki/Integrated_Help',function(data){ settings.ih = { raw: data.find('#mw-content-text').contents(), @@ -1498,4 +1496,13 @@ $(window).on('hashchange', function(e) { showTab(loc[0]); } ignoreHashChange = false; -}); \ No newline at end of file +}); + +function localStorageSupported() { + //does this browser support it? + try { + return 'localStorage' in window && window['localStorage'] !== null; + } catch (e) { + return false; + } +} \ No newline at end of file diff --git a/lsp/pages.js b/lsp/pages.js index 8aa4d689..254200fd 100755 --- a/lsp/pages.js +++ b/lsp/pages.js @@ -68,6 +68,24 @@ function showTab(tabName,streamName) { $('#server').val(adr[1]); $('#credentials-username').val(adr[0]); } + + //new here? message + if ((!localStorageSupported) || (!localStorage['MistServer_notnew'])) { + var $msg = $('
New here?
Click the Integrated Help logo for more information about the current page.