4 ms·
https://github.com/oscarmorrison/md-page/blob/master/script.js https://github.com/oscarmorrison/md-page/blob/master/script.... Line 43 to 48, I am not entirely
by Kagerjay 8y ago
https://github.com/oscarmorrison/md-page/blob/master/script.js https://github.com/oscarmorrison/md-page/blob/master/script....
Line 43 to 48, I am not entirely sure what that hashlink does. What is the setTimeout function for? Could you expand on that?
- oscargeorge 8y agoIt's to make linking to headers work. Eg oscarmorridon.com/md-page#code As the element doesn't exist at time of first load this is a work around to focus on id once content is rendered in html
- oscargeorge 8y ago* https://oscarmorrison.com/md-page/#code https://oscarmorrison.com/md-page/#code