diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2021-10-26 01:02:27 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2021-10-26 01:02:27 +0300 |
commit | c774b14e04d3bf57c337a5b6a6f8d871e0160e80 (patch) | |
tree | a58281c0800a6f25c698b1c6d2d4c3a60ddb3fa9 /media/js/unused-or-removed/survey.js | |
parent | b6bbec235c2f14f058b25ed82644f37013872ee3 (diff) | |
download | troggle-c774b14e04d3bf57c337a5b6a6f8d871e0160e80.tar.gz troggle-c774b14e04d3bf57c337a5b6a6f8d871e0160e80.tar.bz2 troggle-c774b14e04d3bf57c337a5b6a6f8d871e0160e80.zip |
remove unused JS code after checking it is redundant
Diffstat (limited to 'media/js/unused-or-removed/survey.js')
-rw-r--r-- | media/js/unused-or-removed/survey.js | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/media/js/unused-or-removed/survey.js b/media/js/unused-or-removed/survey.js deleted file mode 100644 index bcf208f..0000000 --- a/media/js/unused-or-removed/survey.js +++ /dev/null @@ -1,42 +0,0 @@ - - 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" - } - - - - |