We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 26faf17 + 0f48382 commit 6ff99d0Copy full SHA for 6ff99d0
index.html
@@ -29,6 +29,12 @@
29
setDisconnected(false);
30
socket.on('newContent', function(newHTML) {
31
document.querySelector(".markdown-body").innerHTML = newHTML;
32
+
33
+ // scroll to the hyperlink with id="marker"
34
+ let marker = document.getElementById("marker");
35
+ if(marker) {
36
+ marker.scrollIntoView();
37
+ }
38
});
39
socket.on('die', function(newHTML) {
40
window.open('', '_self', '');
0 commit comments