lexipython/resources/contents.html

22 lines
645 B
HTML
Raw Normal View History

<script type="text/javascript">
contentsToggle = function() {
var b = document.getElementById("toggle-button")
var i = document.getElementById("index-order");
var t = document.getElementById("turn-order");
if (t.style.display == "none") {
i.style.display = "none"
t.style.display = "block"
b.innerText = "Switch to index order"
} else {
i.style.display = "block"
t.style.display = "none"
2017-12-11 07:04:43 +00:00
b.innerText = "Switch to turn order"
}
}
window.onload = function(){
if (location.search.search("byturn") > 0)
contentsToggle();
}
</script>
<button id="toggle-button" onClick="javascript:contentsToggle()">Switch to turn order</button>