Removed old script.
authorEugen Sawin <sawine@me73.com>
Tue, 06 Jul 2010 00:07:46 +0200
changeset 189ed757b7339a
parent 17 a264da3d80be
child 19 31c7acfbf85c
Removed old script.
backup.script.js
chrome.html
     1.1 --- a/backup.script.js	Tue Jul 06 00:05:38 2010 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,139 +0,0 @@
     1.4 -var QUOTES_NUMBER = 25;
     1.5 -
     1.6 -function load_page(html, params)
     1.7 -{
     1.8 -	if (params != "")
     1.9 -		html += "?";	
    1.10 -	window.location = html + params;	
    1.11 -	//window.location.reload();
    1.12 -}
    1.13 -
    1.14 -function google_an1()
    1.15 -{
    1.16 -    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    1.17 -    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));    
    1.18 -}
    1.19 -
    1.20 -function google_an2()
    1.21 -{
    1.22 -    var pageTracker = _gat._getTracker("UA-2137333-1");
    1.23 -    pageTracker._initData();
    1.24 -    pageTracker._trackPageview();
    1.25 -}
    1.26 -
    1.27 -function google_an()
    1.28 -{	    
    1.29 -	google_an1();
    1.30 -	if (typeof(_gat) == "object")
    1.31 -	    google_an2();	
    1.32 -}
    1.33 -
    1.34 -function http_request_object()
    1.35 -{
    1.36 -    var xmlHttpObject = null;
    1.37 -    
    1.38 -    if (typeof(XMLHttpRequest) != "undefined") 
    1.39 -    {
    1.40 -        xmlHttpObject = new XMLHttpRequest();
    1.41 -    }
    1.42 -    
    1.43 -    //For IE6 and IE5
    1.44 -    if (xmlHttpObject == null) 
    1.45 -    {
    1.46 -        try 
    1.47 -        {
    1.48 -            xmlHttpObject = new ActiveXObject("Microsoft.XMLHTTP");
    1.49 -        }   
    1.50 -        catch(e) 
    1.51 -        {
    1.52 -            try 
    1.53 -            {
    1.54 -                xmlHttpObject = new ActiveXObject("Msxml2.XMLHTTP");
    1.55 -            }
    1.56 -            catch(e) 
    1.57 -            {
    1.58 -                xmlHttpObject = null;
    1.59 -            }
    1.60 -        }
    1.61 -    }
    1.62 -    return xmlHttpObject;
    1.63 -}
    1.64 -
    1.65 -function load_header(current)
    1.66 -{
    1.67 -    var file;
    1.68 -	if (current == "home")
    1.69 -        file = "/homenav.html";
    1.70 -    else if (current == "resume")
    1.71 -        file = "/resumenav.html";
    1.72 -    else if (current == "howiwork")
    1.73 -        file = "/howiworknav.html";
    1.74 -    else if (current == "personalwork")
    1.75 -        file = "/personalworknav.html";
    1.76 -    else if (current == "tutorials")
    1.77 -        file = "/tutorialsnav.html";
    1.78 -    else if (current == "contact")
    1.79 -        file = "/contactnav.html";
    1.80 -	
    1.81 -	var currentFile = self.location.hostname + self.location.pathname;		
    1.82 -	var request = http_request_object();
    1.83 -	var url  = "http://" + self.location.hostname + file;
    1.84 -	request.open("GET", url, false);
    1.85 -	request.setRequestHeader("User-Agent", navigator.userAgent);
    1.86 -	request.send(null)
    1.87 -	// if (oRequest.status == 200) alert(oRequest.responseText);
    1.88 -	// else alert("Error executing XMLHttpRequest call!");	
    1.89 -	//document.write(url);
    1.90 -    document.getElementById('header').innerHTML = request.responseText;
    1.91 -    //document.write(request.responseText);
    1.92 -    
    1.93 -    //alert(request.responseText);
    1.94 -}
    1.95 -
    1.96 -function load_sidebar()
    1.97 -{
    1.98 -    var file = "/sidebar.html";
    1.99 -	var currentFile = self.location.hostname + self.location.pathname;		
   1.100 -	var request = http_request_object();
   1.101 -	var url  = "http://" + self.location.hostname + file;	
   1.102 -	request.open("GET", url, false);
   1.103 -	request.setRequestHeader("User-Agent", navigator.userAgent);
   1.104 -	request.send(null)
   1.105 -	// if (oRequest.status == 200) alert(oRequest.responseText);
   1.106 -	// else alert("Error executing XMLHttpRequest call!");	
   1.107 -	//document.write(url);
   1.108 -	//document.write(request.responseText);
   1.109 -    document.getElementById('sidebar').innerHTML = request.responseText;
   1.110 -}
   1.111 -
   1.112 -function load_random_quote()
   1.113 -{   
   1.114 -   var file = "/quotes/quote" + Math.floor(Math.random() * QUOTES_NUMBER + 1) + ".html";
   1.115 -	var currentFile = self.location.hostname + self.location.pathname;		
   1.116 -	var request = http_request_object();
   1.117 -	var url  = "http://" + self.location.hostname + file;	
   1.118 -	request.open("GET", url, false);
   1.119 -	request.setRequestHeader("User-Agent", navigator.userAgent);
   1.120 -	request.send(null)
   1.121 -	// if (oRequest.status == 200) alert(oRequest.responseText);
   1.122 -	// else alert("Error executing XMLHttpRequest call!");	
   1.123 -	//document.write(url);
   1.124 -	//document.write(request.responseText);
   1.125 -    document.getElementById('random_quote').innerHTML = request.responseText;
   1.126 -}
   1.127 -
   1.128 -function load_footer()
   1.129 -{
   1.130 -	var file = "/footer.html";
   1.131 -	var currentFile = self.location.hostname + self.location.pathname;		
   1.132 -	var request = http_request_object();
   1.133 -	var url  = "http://" + self.location.hostname + file;	
   1.134 -	request.open("GET", url, false);
   1.135 -	request.setRequestHeader("User-Agent", navigator.userAgent);
   1.136 -	request.send(null)
   1.137 -	// if (oRequest.status == 200) alert(oRequest.responseText);
   1.138 -	// else alert("Error executing XMLHttpRequest call!");	
   1.139 -	//document.write(url);
   1.140 -	//document.write(request.responseText);
   1.141 -    document.getElementById('footer').innerHTML = request.responseText;
   1.142 -}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/chrome.html	Tue Jul 06 00:07:46 2010 +0200
     2.3 @@ -0,0 +1,94 @@
     2.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     2.5 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
     2.6 +
     2.7 +<head>
     2.8 +<title>ME73 - A Programmer's Playground</title><meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
     2.9 +<meta name="author" content="Eugen Sawin - me73.com" />
    2.10 +<meta name="description" content="A Digital Playground" />
    2.11 +<meta name="robots" content="index, follow, noarchive" />
    2.12 +<meta name="googlebot" content="noarchive" />
    2.13 +<script src="script.js" type="text/javascript"></script>
    2.14 +<link rel="stylesheet" href="dark.css" type="text/css" />
    2.15 +</head>
    2.16 +
    2.17 +<body onload="draw(0, 0, 0, 0, 0);">
    2.18 +<div id="wrap">
    2.19 +	<div id="header">			
    2.20 +    	<h1 id="logo-text"><a href="index.html" title="">ME73</a></h1>		
    2.21 +	    <p id="intro">A Programmer's Playground.</p>
    2.22 +        <div id="nav">
    2.23 +			<ul>
    2.24 +				<li><a href="index.html">Home</a></li>
    2.25 +				<li><a href="chrome.html">Chrome</a></li>
    2.26 +				<li><a href="resume.html">Resume</a></li>
    2.27 +				<li><a href="howiwork.html">How I Work</a></li>
    2.28 +				<li><a href="personalwork.html">Personal Work</a></li>
    2.29 +            	<li><a href="books.html">Books</a></li>
    2.30 +	         	<li><a href="links.html">Links</a></li>			
    2.31 +				<li><a href="contact.html">Contact</a></li>		
    2.32 +			</ul>		
    2.33 +	    </div>	
    2.34 +	</div>
    2.35 +	<div id="content-wrap">				
    2.36 +		<div id="main">
    2.37 +			<p>
    2.38 +<!--<img src="images/world.png" alt="world map" height="280" width="100%" />
    2.39 +-->
    2.40 +<canvas id="mandelbrot" width="670" height="280"></canvas> 
    2.41 +<button onclick="draw(0, -1, 0, 0, 0);">Left</button>
    2.42 +<button onclick="draw(0, 1, 0, 0, 0);">Right</button>
    2.43 +<button onclick="draw(0, 0, -1, 0, 0)">Up</button>
    2.44 +<button onclick="draw(0, 0, 1, 0, 0);">Down</button>
    2.45 +<button onclick="draw(0, 0, 0, 1, 0);">Zoom in</button>
    2.46 +<button onclick="draw(0, 0, 0, -1, 0);">Zoom out</button>
    2.47 +<button onclick="draw(10, 0, 0, 0, 0);">Inc Iterations</button>
    2.48 +<button onclick="draw(-10, 0, 0, 0, 0);">Dec Iterations</button>
    2.49 +<button onclick="draw(0, 0, 0, 0, -1);">Inc Resolution</button>
    2.50 +<button onclick="draw(0, 0, 0, 0, 1);">Dec Resolution</button>
    2.51 +<label>
    2.52 +<input size="600" type="text" id="l1" name="contact_name" value="Name angeben" />
    2.53 +</label>
    2.54 +</form> 
    2.55 +</p>
    2.56 +           
    2.57 +      
    2.58 +		</div>
    2.59 +		<div id="sidebar">
    2.60 +	        <p>
    2.61 +				<img src="images/me2.png" alt="me" class="float-left" height="70" width="70" />		
    2.62 +			ME73 is my digital playground.
    2.63 +            I'm a programmer, a student of computer science, a music enthusiast.
    2.64 +            This site serves as a portfolio for my work, private and professional.
    2.65 +	        </p>
    2.66 +			<div id="random_quote"></div>	        	
    2.67 +        </div>	
    2.68 +	</div>
    2.69 +  <div id="footer">
    2.70 +	<div id="footer-left">
    2.71 +		<p>
    2.72 +      	<a href="http://creativecommons.org/licenses/by/3.0/"><img src="images/cc.png" alt="CC" style="float:left" /></a>
    2.73 +		Except where otherwise noted, content on this site is licensed under a 			<a href="http://creativecommons.org/licenses/by/3.0">Creative Commons Attribution 3.0 License.</a> Site Design is based on a template by <a href="http://www.styleshout.com/">Styleshout.</a>
    2.74 +		</p>	
    2.75 +	</div>
    2.76 +	
    2.77 +	<div id="footer-right">
    2.78 +		<p class="align-right">
    2.79 +		<a href="index.html">Home</a> | <a href="#top">Top</a>
    2.80 +		</p>
    2.81 +	</div>	
    2.82 +</div> 
    2.83 +</div>
    2.84 +<script type="text/javascript">
    2.85 +    javascript:load_random_quote();        
    2.86 +</script>
    2.87 +<script type="text/javascript">
    2.88 +var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    2.89 +document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    2.90 +</script>
    2.91 +<script type="text/javascript">
    2.92 +var pageTracker = _gat._getTracker("UA-2137333-1");
    2.93 +pageTracker._trackPageview();
    2.94 +</script>
    2.95 +</body>
    2.96 +</html>
    2.97 +