From 5cf654e0f2859c2d2a48be749fe34257615779fe Mon Sep 17 00:00:00 2001 From: Alib Date: Mon, 22 Feb 2010 17:28:09 +0100 Subject: moved all javascript functions to function.js --- javascript/developer-functions.js | 24 -------- javascript/functions.js | 125 +++++++++++++++++++++++++++++++++++++- 2 files changed, 124 insertions(+), 25 deletions(-) delete mode 100755 javascript/developer-functions.js (limited to 'javascript') diff --git a/javascript/developer-functions.js b/javascript/developer-functions.js deleted file mode 100755 index 244c900..0000000 --- a/javascript/developer-functions.js +++ /dev/null @@ -1,24 +0,0 @@ -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(); -}; - diff --git a/javascript/functions.js b/javascript/functions.js index 65d0f2f..fc9e082 100755 --- a/javascript/functions.js +++ b/javascript/functions.js @@ -1 +1,124 @@ -function fullscreen(){var a=document.getElementsByTagName("a");for(var i=0;i