summaryrefslogtreecommitdiffstats
path: root/usr/local/www/themes/pfsense-dropdown/loader.js
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/themes/pfsense-dropdown/loader.js')
-rw-r--r--usr/local/www/themes/pfsense-dropdown/loader.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/usr/local/www/themes/pfsense-dropdown/loader.js b/usr/local/www/themes/pfsense-dropdown/loader.js
new file mode 100644
index 0000000..faaf81e
--- /dev/null
+++ b/usr/local/www/themes/pfsense-dropdown/loader.js
@@ -0,0 +1,30 @@
+<!--
+var browser = '';
+var version = '';
+var entrance = '';
+var cond = '';
+
+// BROWSER?
+if (browser == '') {
+ if (navigator.appName.indexOf('Microsoft') != -1)
+ browser = 'IE'
+ else if (navigator.appName.indexOf('Netscape') != -1)
+ browser = 'Netscape'
+ else
+ browser = 'IE';
+}
+if (version == '') {
+ version= navigator.appVersion;
+ paren = version.indexOf('(');
+ whole_version = navigator.appVersion.substring(0,paren-1);
+ version = parseInt(whole_version);
+}
+
+if (version < 7) {
+ document.write('<script type="text/javascript" src="/themes/pfsense-dropdown/javascript/ie7/ie7-standard-p.js"></script>');
+}
+
+document.write('<script type="text/javascript" src="/themes/pfsense-dropdown/javascript/niftyjsCode.js"></script>');
+
+
+// --> \ No newline at end of file
OpenPOWER on IntegriCloud