PageSourceSearch

https://www.lihus.fr/wp-content/themes/visibilite/assets/js/inc/back-to-top.js

js lihus.fr collected 2026-10-03 02:47:28 UTC 500 bytes, 17 lines download raw bytes

1const backToTop = document.querySelector('#boutonTop')
2
3window.addEventListener('scroll', function () {
4    if (
5        document.body.scrollTop > 250 ||
6        document.documentElement.scrollTop > 250
7    ) {
8        backToTop.style.display = "flex";
9    } else {
10        backToTop.style.display = "none";
11    }
12});
13
14backToTop.addEventListener('click', function () {
15    document.body.scrollTop = 0; // For Safari
16    document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
17});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.