diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2021-04-01 02:44:49 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2021-04-01 02:44:49 +0100 |
commit | 4c0ad53b3a5e11be38a55564a0967029fbf4c4cc (patch) | |
tree | ae272021693e8f7ca53f431a23f10f65978924f0 /media/js/removed/survey.js | |
parent | 8f790309ce9123a0f1e7bafd63b2e5d5e9cf86c9 (diff) | |
download | troggle-4c0ad53b3a5e11be38a55564a0967029fbf4c4cc.tar.gz troggle-4c0ad53b3a5e11be38a55564a0967029fbf4c4cc.tar.bz2 troggle-4c0ad53b3a5e11be38a55564a0967029fbf4c4cc.zip |
culling unused JS
Diffstat (limited to 'media/js/removed/survey.js')
-rw-r--r-- | media/js/removed/survey.js | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/media/js/removed/survey.js b/media/js/removed/survey.js new file mode 100644 index 0000000..30305dc --- /dev/null +++ b/media/js/removed/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"
+ }
+
+
+
+
|