adding a previous button

This commit is contained in:
manetta 2020-02-28 13:17:40 +01:00
parent 1d2ffaf4d5
commit 8de99d0930
2 changed files with 9 additions and 1 deletions

View File

@ -22,5 +22,5 @@ input.button{
display: inline-block;
font-size: 100%;
padding:1em;
margin:2em;
margin:2em 0;
}

View File

@ -104,6 +104,7 @@
</tr>
</tbody>
</table>
<input class="button" type="button" onclick="prevScreen('choose','intro')" value="previous">
<input class="button" type="button" onclick="nextScreen('choose','identify')" value="next">
</div>
<!-- ********************* -->
@ -124,6 +125,7 @@
</tr>
</tbody>
</table>
<input class="button" type="button" onclick="prevScreen('identify','choose')" value="previous">
<input class="button" type="button" onclick="nextScreen('identify','operate')" value="next">
</div>
<!-- ********************* -->
@ -150,6 +152,7 @@
</div>
</div>
<br>
<input class="button" type="button" onclick="prevScreen('operate','identify')" value="previous">
<input class="button" type="button" onclick="nextScreen('operate','describe')" value="next">
</div>
<!-- ********************* -->
@ -163,6 +166,7 @@
</tr>
</tbody>
</table>
<input class="button" type="button" onclick="prevScreen('describe','operate')" value="previous">
<input class="button" type="button" onclick="nextScreen('describe','share')" value="next">
</div>
<!-- ********************* -->
@ -188,5 +192,9 @@
document.getElementById(current).style.display = 'none';
document.getElementById(next).style.display = 'block';
}
function prevScreen(current, previous) {
document.getElementById(current).style.display = 'none';
document.getElementById(previous).style.display = 'block';
}
</script>
{% endblock %}