# HG changeset patch # User Eugen Sawin # Date 1278367666 -7200 # Node ID 9ed757b7339afd85d2edf1188f1a0990afc07691 # Parent a264da3d80be39f110abc93356b50932896caeb1 Removed old script. diff -r a264da3d80be -r 9ed757b7339a backup.script.js --- a/backup.script.js Tue Jul 06 00:05:38 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,139 +0,0 @@ -var QUOTES_NUMBER = 25; - -function load_page(html, params) -{ - if (params != "") - html += "?"; - window.location = html + params; - //window.location.reload(); -} - -function google_an1() -{ - var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); - document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); -} - -function google_an2() -{ - var pageTracker = _gat._getTracker("UA-2137333-1"); - pageTracker._initData(); - pageTracker._trackPageview(); -} - -function google_an() -{ - google_an1(); - if (typeof(_gat) == "object") - google_an2(); -} - -function http_request_object() -{ - var xmlHttpObject = null; - - if (typeof(XMLHttpRequest) != "undefined") - { - xmlHttpObject = new XMLHttpRequest(); - } - - //For IE6 and IE5 - if (xmlHttpObject == null) - { - try - { - xmlHttpObject = new ActiveXObject("Microsoft.XMLHTTP"); - } - catch(e) - { - try - { - xmlHttpObject = new ActiveXObject("Msxml2.XMLHTTP"); - } - catch(e) - { - xmlHttpObject = null; - } - } - } - return xmlHttpObject; -} - -function load_header(current) -{ - var file; - if (current == "home") - file = "/homenav.html"; - else if (current == "resume") - file = "/resumenav.html"; - else if (current == "howiwork") - file = "/howiworknav.html"; - else if (current == "personalwork") - file = "/personalworknav.html"; - else if (current == "tutorials") - file = "/tutorialsnav.html"; - else if (current == "contact") - file = "/contactnav.html"; - - var currentFile = self.location.hostname + self.location.pathname; - var request = http_request_object(); - var url = "http://" + self.location.hostname + file; - request.open("GET", url, false); - request.setRequestHeader("User-Agent", navigator.userAgent); - request.send(null) - // if (oRequest.status == 200) alert(oRequest.responseText); - // else alert("Error executing XMLHttpRequest call!"); - //document.write(url); - document.getElementById('header').innerHTML = request.responseText; - //document.write(request.responseText); - - //alert(request.responseText); -} - -function load_sidebar() -{ - var file = "/sidebar.html"; - var currentFile = self.location.hostname + self.location.pathname; - var request = http_request_object(); - var url = "http://" + self.location.hostname + file; - request.open("GET", url, false); - request.setRequestHeader("User-Agent", navigator.userAgent); - request.send(null) - // if (oRequest.status == 200) alert(oRequest.responseText); - // else alert("Error executing XMLHttpRequest call!"); - //document.write(url); - //document.write(request.responseText); - document.getElementById('sidebar').innerHTML = request.responseText; -} - -function load_random_quote() -{ - var file = "/quotes/quote" + Math.floor(Math.random() * QUOTES_NUMBER + 1) + ".html"; - var currentFile = self.location.hostname + self.location.pathname; - var request = http_request_object(); - var url = "http://" + self.location.hostname + file; - request.open("GET", url, false); - request.setRequestHeader("User-Agent", navigator.userAgent); - request.send(null) - // if (oRequest.status == 200) alert(oRequest.responseText); - // else alert("Error executing XMLHttpRequest call!"); - //document.write(url); - //document.write(request.responseText); - document.getElementById('random_quote').innerHTML = request.responseText; -} - -function load_footer() -{ - var file = "/footer.html"; - var currentFile = self.location.hostname + self.location.pathname; - var request = http_request_object(); - var url = "http://" + self.location.hostname + file; - request.open("GET", url, false); - request.setRequestHeader("User-Agent", navigator.userAgent); - request.send(null) - // if (oRequest.status == 200) alert(oRequest.responseText); - // else alert("Error executing XMLHttpRequest call!"); - //document.write(url); - //document.write(request.responseText); - document.getElementById('footer').innerHTML = request.responseText; -} diff -r a264da3d80be -r 9ed757b7339a chrome.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/chrome.html Tue Jul 06 00:07:46 2010 +0200 @@ -0,0 +1,94 @@ + + + + +ME73 - A Programmer's Playground + + + + + + + + + +
+ +
+
+

+ + + + + + + + + + + + + + +

+ + +
+ +
+ +
+ + + + + +