Skip to content

Commit

Permalink
Improved auto-scroll button
Browse files Browse the repository at this point in the history
  • Loading branch information
Ole Henrik Stabell committed Oct 14, 2017
1 parent 0f49c97 commit 1c11832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/mainview.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<body>

<div class="container">
<h1>Live Chat Comments:</h1> <button onclick="autoScrollEnabled= !autoScrollEnabled">Disable/Enable Auto-Scroll</button>
<h1>Live Chat Comments:</h1> <button id="auto-scroll-button" onclick="autoScrollEnabled= !autoScrollEnabled; if (autoScrollEnabled) {$('#auto-scroll-button').html('Disable Auto-Scroll')} else {$('#auto-scroll-button').html('Enable Auto-Scroll')}">Enable Auto-Scroll</button>
<div id="messages">
</div>
</div>
Expand Down

0 comments on commit 1c11832

Please sign in to comment.