File manager - Edit - /var/www/html/visiteAngra/temp/assets/js/main.js
Back
'use strict'; function BACK2TOP(selector,offset,prop='all',time='300',effect='ease',delay=0){ const WIN_SCROLLED = function(){ if(document.body.scrollTop > offset || document.documentElement.scrollTop > offset){ const STYLES = { opacity : '1', visibility : 'visible', transform : 'translateY(0)', transition: `${prop} ${time}ms ${effect} ${delay}ms` } Object.assign(selector.style, STYLES); }else{ const STYLES = { opacity : '0', visibility : 'hidden', transform : 'translateY(100%)', transition: `${prop} ${time}ms ${effect} ${delay}ms` } Object.assign(selector.style, STYLES); } }; const SCROLL_EVT = function(){ document.documentElement.scrollTo({ top: 0, left:0, behavior: 'smooth' }); }; const SELECTOR_LISTENER = selector.addEventListener("click", SCROLL_EVT); const WINDOW_LISTENER = window.addEventListener('scroll', WIN_SCROLLED); return SELECTOR_LISTENER; return WINDOW_LISTENER; } const button=document.querySelector(".go-top"); BACK2TOP(button,200); AOS.init();
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings