Difference between revisions of "Team:UNSW Australia/Human Practices/Law"

Line 196: Line 196:
  
 
</div>
 
</div>
 +
 +
<script>
 +
function topFunction() {
 +
    document.body.scrollTop = 0;
 +
    document.documentElement.scrollTop = 0;
 +
}
 +
window.onscroll = function() {scrollFunction()};
 +
 +
function scrollFunction() {
 +
    if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
 +
        document.getElementById("topBtn").style.display = "block";
 +
    } else {
 +
        document.getElementById("topBtn").style.display = "none";
 +
    }
 +
}
 +
</script>
  
 
</html>
 
</html>

Revision as of 00:30, 18 October 2018

Law and Regulation