diff options
Diffstat (limited to 'templates/survey.html')
-rw-r--r-- | templates/survey.html | 68 |
1 files changed, 9 insertions, 59 deletions
diff --git a/templates/survey.html b/templates/survey.html index a0395b6..9d677e5 100644 --- a/templates/survey.html +++ b/templates/survey.html @@ -11,57 +11,7 @@ blankColor = "rgb(153, 153, 153)"
highlightedColor = "rgb(125, 125, 125)"
chosenColor = "rgb(255, 255, 255)"
- mnuItmLst=document.getElementsByClassName("menuBarItem")
- function highlight(div){
- for (var i = 0, divIter; divIter = mnuItmLst[i]; i++) {
- /*loop though all menuitems. blank them except ones that are toggled on*/
- if (divIter.style.backgroundColor!=chosenColor){
- divIter.style.backgroundColor=blankColor;
- }
- }
- /*highlight the mouseovered div unless it is toggled on*/
- if (div.style.backgroundColor!=chosenColor){
- div.style.backgroundColor=highlightedColor;
- }
- }
-
- function unhighlight(div){
- /*highlight the mouseovered div unless it is the chosen one*/
- if (div.style.backgroundColor!=chosenColor){
- div.style.backgroundColor=blankColor;
- }
- }
-
- function toggle(div){
- if (document.getElementById(div.id+"Content").style.display="none"){
- document.getElementById(div.id+"Content").style.display="block";
- div.style.backgroundColor=chosenColor;
- }
- else {
- document.getElementById(div.id+"Content").style.display="none";
- div.style.backgroundColor=blankColor;
- }
- }
-
-/* 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=blankColor;
- }
- div.style.backgroundColor=chosenColor;
- document.getElementById(progressTableContent).style.display="none";
- }*/
-
- function redirectSurvey(){
- window.location = "{% url survey %}" + '/' + document.getElementById("expeditionChooser").value + "%23" + document.getElementById("surveyChooser").value;
- }
-
- function redirectYear(){
- window.location = "{% url survey %}" + '/' + document.getElementById("expeditionChooser").value + "%23";
- }
+
</script>
{% endblock %}
@@ -95,7 +45,7 @@ <div>
<!-- <h4>Click to toggle:</h4>-->
- <div id="progressTable" class="menuBarItem" onMouseOver="highlight(this)" onMouseOut="unhighlight(this)" onClick="toggle(this)"> {% if current_expedition.survey_set.all %}✓{% endif %}
+ <div id="progressTable" class="menuBarItem" > {% if current_expedition.survey_set.all %}✓{% endif %}
survey progress table </div>
</div>
@@ -120,16 +70,16 @@ </center>
<!-- <h4>Click to toggle:</h4>-->
<div id="surveyWalletNav">
- <div id="notes" class="menuBarItem" onMouseOver="highlight(this)" onMouseOut="unhighlight(this)" onClick="toggle(this)"> {% if notes %}✓{% endif %}
+ <div id="notes" class="menuBarItem" > {% if notes %}✓{% endif %}
scanned notes </div>
- <div id="survexFile" class="menuBarItem" onMouseOver="highlight(this)" onMouseOut="unhighlight(this)" onClick="toggle(this)"> {% if current_survey.survex_file %}✓{% endif %}
+ <div id="survexFile" class="menuBarItem" > {% if current_survey.survex_file %}✓{% endif %}
survex file </div>
- <div id="printedCentreline" class="menuBarItem" onMouseOver="highlight(this)" onMouseOut="unhighlight(this)" onClick="toggle(this)"> {% if current_survey.centreline_printed_on %}✓{% endif %}
+ <div id="printedCentreline" class="menuBarItem" > {% if current_survey.centreline_printed_on %}✓{% endif %}
printed centreline </div>
- <div id="scannedPassageSketch" class="menuBarItem" onMouseOver="highlight(this)" onMouseOut="unhighlight(this)" onClick="toggle(this)"> {% if planSketches %}✓{% endif %}
+ <div id="scannedPassageSketch" class="menuBarItem" > {% if planSketches %}✓{% endif %}
scanned passage sketch </div>
- <div id="tunnelXMLfile" class="menuBarItem" onMouseOver="highlight(this)" onMouseOut="unhighlight(this)" onClick="toggle(this)">tunnel xml file</div>
- <div id="mainSketchIntegration" class="menuBarItem" onMouseOver="highlight(this)" onMouseOut="unhighlight(this)" onClick="toggle(this)">add to main sketch</div>
+ <div id="tunnelXMLfile" class="menuBarItem" >tunnel xml file</div>
+ <div id="mainSketchIntegration" class="menuBarItem" >add to main sketch</div>
</div>
</div>
{% endblock %}
@@ -191,7 +141,7 @@ </p>
</div>
{% endfor %}
- <div class="figure"> <a href="{{ settings.URL_ROOT }}admin/expo/scannedimage/add/"> <img src="{{ settings.URL_ROOT }}{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_addlink.gif" /> Add a new scanned notes page. </a> </div>
+ <div class="figure"> <a href="{{ settings.URL_ROOT }}admin/expo/scannedimage/add/" target="_blank"> <img src="{{ settings.URL_ROOT }}{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_addlink.gif" /> Add a new scanned notes page. </a> </div>
</div>
<br class="clearfloat" />
<div id="survexFileContent" class="behind"> survex file editor, keeping file in original structure <br />
|