aboutsummaryrefslogtreecommitdiff
path: root/s/masterscript.js
diff options
context:
space:
mode:
authorDarkelarious <darkelarious@333networks.com>2021-09-05 20:35:44 +0200
committerDarkelarious <darkelarious@333networks.com>2021-09-05 20:35:44 +0200
commit3470e2605595bf52b3ba07bf0b3886e5a61d3e06 (patch)
tree36e7fcf008183b464aca47b7eeba0953dd36feef /s/masterscript.js
downloadWebInterface-Perl-3470e2605595bf52b3ba07bf0b3886e5a61d3e06.tar.gz
WebInterface-Perl-3470e2605595bf52b3ba07bf0b3886e5a61d3e06.zip
first version of masterinterface
Diffstat (limited to 's/masterscript.js')
-rwxr-xr-xs/masterscript.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/s/masterscript.js b/s/masterscript.js
new file mode 100755
index 0000000..ce849bc
--- /dev/null
+++ b/s/masterscript.js
@@ -0,0 +1,37 @@
+//==============================================================================
+// 333networks & subs
+// Written by Darkelarious.
+//
+// This script belongs to 333networks. See
+// 333networks.com for license and copyright.
+//
+//==============================================================================
+
+// advanced search box
+function toggleAdvanced ()
+{
+ var box = document.getElementById("advancedsearch");
+ box.style.display = (box.style.display == "block" ? "none" : "block" );
+}
+
+// search box
+{
+ var qbox = document.getElementById('q');
+ qbox.onclick = function ()
+ {
+ if ( this.value == 'search...' )
+ {
+ this.value = '';
+ this.style.fontStyle = 'normal'
+ }
+ };
+
+ qbox.onblur = function ()
+ {
+ if ( this.value.length < 1 )
+ {
+ this.value = 'search...';
+ this.style.fontStyle = 'italic';
+ }
+ };
+}