Simple little snippet for your website that adds a button to jump to the top
transistorsnack 22cd87624d Add LICENSE | 4 yıl önce | |
---|---|---|
LICENSE | 4 yıl önce | |
README.md | 4 yıl önce | |
main.txt | 4 yıl önce |
Simple little snippet for your website that adds a button to jump to the top
Just add the following code to the top of your HTML body
<tippytop id="tippytop"><!--Tippytop is distributed under the WTFPL v3.1 License, Read it at https://raw.githubusercontent.com/dtf0/wtfpl/master/wtfpl-v3_1.txt--><a name="thetop"></a><div class="tippytop-styletarget" style="position:-webkit-sticky;position:sticky;top:0;text-align:right;z-index:32767;"><a href="#thetop">↑</a></div></tippytop>
And then you'll have an arrow on the top-right of your website that can be clicked at any time to bring you back to the top.
(Licensed under WTFPL v3.1)
This code won't be updated unless I have to do so to keep it working when HTML6 comes out in the distant future.