Файловый менеджер - Редактировать - /home/digitalm/www/zetaworks/wp-content/themes/uncode/library/js/rotateIt.min.js
Назад
(function($){"use strict";UNCODE.rotateIt=function(){if($("body").hasClass("compose-mode"))return;var loadRotateIt=function(){var $toRotate=$(".uncode-rotate");$toRotate.each(function(){var $rotate=$(this),deg=0,dir=!0,coeff=1,lastOffset=0,lastDate=Date.now(),checkScroll=function($rotate){var now=Date.now(),delayInMs=now-lastDate,offset=window.pageYOffset||window.document.documentElement.scrollTop,newOffset=offset-lastOffset,speed=newOffset/delayInMs*5,body=document.body,html=document.documentElement,docH=Math.max(body.scrollHeight,body.offsetHeight,html.clientHeight,html.scrollHeight,html.offsetHeight);lastDate=now,lastOffset=offset;if(Math.abs(deg)>359||isNaN(deg))deg=0;if($rotate.hasClass("uncode-rotate-scroll")||$rotate.hasClass("uncode-rotate-speed"))deg=parseFloat(deg)+parseFloat(speed);$rotate.hasClass("uncode-rotate-hover")&&$rotate.hover(function(){coeff=1.75},function(){coeff=1}),$rotate.hasClass("uncode-rotate-scroll")||(deg+=coeff),$rotate[0].style.transform="rotate("+deg+"deg)",requestAnimationFrame(function(){checkScroll($rotate)})};checkScroll($rotate)})};$(window).on("load",loadRotateIt)}})(jQuery)
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.03 |
proxy
|
phpinfo
|
Настройка