diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 05:25:17 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 05:25:17 +0100 |
commit | 7aee3fb920a1477332d78c8f3fb546da428be6e8 (patch) | |
tree | cdfacfc1ef181881d2ac1c7f4c8d4bce2ec917eb /media/js | |
parent | 8c818906b5c1228a6fb411cb96d1bd5f1663b49a (diff) | |
download | troggle-7aee3fb920a1477332d78c8f3fb546da428be6e8.tar.gz troggle-7aee3fb920a1477332d78c8f3fb546da428be6e8.tar.bz2 troggle-7aee3fb920a1477332d78c8f3fb546da428be6e8.zip |
[svn] QM parser now parses Hauchhoehle QMs.py
Photo model added.
Logbook parser now puts mugshots in as photo models, and descriptions from the old folk html pages in as "blurbs" on the person model.
Experimented with eye candy and a random logbook quote generator.
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8094 by aaron @ 12/31/2008 2:59 AM
Diffstat (limited to 'media/js')
-rw-r--r-- | media/js/base.js | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/media/js/base.js b/media/js/base.js new file mode 100644 index 0000000..17a664e --- /dev/null +++ b/media/js/base.js @@ -0,0 +1,46 @@ +
+ function showDiv(collapsed,expanded){
+ document.getElementById(collapsed).style.display = 'none';
+ document.getElementById(expanded).style.display = 'block';
+ }
+
+ function hideDiv(collapsed,expanded){
+ document.getElementById(collapsed).style.display = 'block';
+ document.getElementById(expanded).style.display = 'none';
+ }
+
+ function makeDivTransparent(div){
+ document.getElementById(div).style.backgroundColor = 'transparent';
+ }
+
+
+
+hex=0 // Initial color value.
+leftPos=25
+year=1976
+currentDate= new Date()
+currentYear = currentDate.getFullYear()
+function fadeText(){
+if(hex<153) { //If color is not black yet
+ hex=hex+10; // increase color darkness
+ leftPos-=1;
+ document.getElementById("expoHeader").style.color="rgb("+0+","+hex+","+0+")";
+// document.getElementById("expoFinalDate").style.color="rgb("+0+","+hex+","+0+")";
+ document.getElementById("expoHeader").style.left=leftPos;
+ setTimeout("fadeText()",50)
+ setTimeout("countUpYear()",1000)
+}
+else {
+ hex=0;
+ leftPos=25;
+}
+}
+
+function countUpYear(){
+ if (year<currentYear) {
+// alert (year+''+currentYear)
+ year=year+1
+ document.getElementById("expoFinalDate").innerHTML="<h1>"+year+"</h1>"
+ setTimeout("countUpYear()",1000)
+ }
+}
\ No newline at end of file |