summaryrefslogtreecommitdiff
path: root/javascript/developer-functions.js
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/developer-functions.js')
-rwxr-xr-xjavascript/developer-functions.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/javascript/developer-functions.js b/javascript/developer-functions.js
new file mode 100755
index 0000000..244c900
--- /dev/null
+++ b/javascript/developer-functions.js
@@ -0,0 +1,24 @@
+function fullscreen() {
+ var a = document.getElementsByTagName("a");
+ for (var i = 0; i < a.length;i++) {
+ if (a[i].className.match("noeffect")) {
+ }
+ else {
+ a[i].onclick = function () {
+ window.location = this.getAttribute("href");
+ return false;
+ };
+ }
+ }
+}
+
+function hideURLbar() {
+ window.scrollTo(0, 0.9);
+}
+
+
+window.onload = function () {
+ fullscreen();
+ hideURLbar();
+};
+