diff options
Diffstat (limited to 'wiki/lib/scripts/script.js')
-rw-r--r-- | wiki/lib/scripts/script.js | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/wiki/lib/scripts/script.js b/wiki/lib/scripts/script.js deleted file mode 100644 index 97edef0..0000000 --- a/wiki/lib/scripts/script.js +++ /dev/null @@ -1,30 +0,0 @@ -// if jQuery was loaded, let's make it noConflict here. -if ('function' === typeof jQuery && 'function' === typeof jQuery.noConflict) { - jQuery.noConflict(); -} - -/** - * Some browser detection - */ -var clientPC = navigator.userAgent.toLowerCase(); // Get client info -var is_macos = navigator.appVersion.indexOf('Mac') != -1; -var is_gecko = ((clientPC.indexOf('gecko')!=-1) && (clientPC.indexOf('spoofer')==-1) && - (clientPC.indexOf('khtml') == -1) && (clientPC.indexOf('netscape/7.0')==-1)); -var is_safari = ((clientPC.indexOf('applewebkit')!=-1) && (clientPC.indexOf('spoofer')==-1)); -var is_khtml = (navigator.vendor == 'KDE' || ( document.childNodes && !document.all && !navigator.taintEnabled )); -if (clientPC.indexOf('opera')!=-1) { - var is_opera = true; - var is_opera_preseven = (window.opera && !document.childNodes); - var is_opera_seven = (window.opera && document.childNodes); -} - -/** - * Handler to close all open Popups - */ -function closePopups(){ - jQuery('div.JSpopup').hide(); -} - -jQuery(function () { - jQuery(document).click(closePopups); -}); |