summaryrefslogtreecommitdiffstats
path: root/media/js
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:50:12 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:50:12 +0100
commit5dfbb187a15200904e459303032e4bbc25b7d4f4 (patch)
tree81c6342e8b055b68a68bee5b018646b105cece64 /media/js
parentb4d82ddeea4d231d1c5af8b7bba523ece5822364 (diff)
downloadtroggle-5dfbb187a15200904e459303032e4bbc25b7d4f4.tar.gz
troggle-5dfbb187a15200904e459303032e4bbc25b7d4f4.tar.bz2
troggle-5dfbb187a15200904e459303032e4bbc25b7d4f4.zip
[svn] Had forgotten to add these.
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8237 by aaron @ 1/31/2009 9:19 PM
Diffstat (limited to 'media/js')
-rw-r--r--media/js/survey.js42
1 files changed, 42 insertions, 0 deletions
diff --git a/media/js/survey.js b/media/js/survey.js
new file mode 100644
index 0000000..30305dc
--- /dev/null
+++ b/media/js/survey.js
@@ -0,0 +1,42 @@
+
+ mnuItmLst=document.getElementsByClassName("menuBarItem")
+ function highlight(div){
+ for (var i = 0, divIter; divIter = mnuItmLst[i]; i++) {
+ if (divIter.style.backgroundColor!="rgb(102, 102, 102)"){
+ divIter.style.backgroundColor="#EBEBEB";
+ }
+ }
+ if (div.style.backgroundColor!="rgb(102, 102, 102)"){
+ div.style.backgroundColor="#B0B0B0";
+ }
+ }
+
+ function unhighlight(div){
+ if (div.style.backgroundColor=="#EBEBEB"){
+ div.style.backgroundColor="#EBEBEB";
+ }
+ }
+
+ function choose(div){
+ for (var i = 0, divIter; divIter = mnuItmLst[i]; i++) {
+ document.getElementById(divIter.id+"Content").style.display="none";
+ }
+ document.getElementById(div.id+"Content").style.display="block";
+ for (var i = 0, divIter; divIter = mnuItmLst[i]; i++) {
+ document.getElementById(divIter.id).style.backgroundColor="#EBEBEB";
+ }
+ div.style.backgroundColor="#666666";
+ }
+
+ function redirectSurvey(){
+ window.location = "{{ settings.URL_ROOT }}/survey/" + document.getElementById("expeditionChooser").value + "%23" + document.getElementById("surveyChooser").value;
+ document.getElementById("progressTableContent").style.display='hidden'
+ }
+
+ function redirectYear(){
+ window.location = "{{ settings.URL_ROOT }}/survey/" + document.getElementById("expeditionChooser").value + "%23"
+ }
+
+
+
+