Ngiler SH3LL 360
Home
Information
Create File
Create Folder
:
/
home
/
tbf
/
tbf.ro
/
razvan
/
dist_old
/
js
/
Information Server
MySQL :
OFF
Perl :
OFF
CURL :
ON
WGET :
OFF
PKEXEC :
OFF
Directive
Local Value
IP Address
89.40.16.97
System
Linux server.atelieruldeit.ro 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
User
tbf
PHP Version
7.3.33
Software
Apache
Doc root
Writable
close
Edit File :
scripts.js
| Size :
2.68
KB
Copy
// ================================================================================================== // ================================================================================================== // Scroll Reveal document.addEventListener('DOMContentLoaded', () => { const elements = document.querySelectorAll("[class^='reveal-']"); var mql = window.matchMedia("(max-width: 480px)"); elements.forEach(element => { const className = element.classList[0]; const [delay, duration, opacity] = className.split('-').slice(1).map(num => parseInt(num)); // If It's mobile if(mql.matches) { ScrollReveal().reveal(element, { opacity: 0, delay: 100, distance: '30px', duration: 1000, easing: 'ease-out', interval: 600 }); } else { ScrollReveal().reveal(element, { opacity: opacity ? 100 : 0, delay: delay, distance: '30px', duration: duration, easing: 'ease-out', interval: 600 }); } }); const ulElement = document.querySelector('#testimonial-list'); if (ulElement) { const liElements = ulElement.querySelectorAll('li'); const delayList = [100, 125, 150, 175, 200, 225, 250, 275, 300]; liElements.forEach(function(li) { const randomDelayIndex = Math.floor(Math.random() * delayList.length); const randomDelay = delayList[randomDelayIndex]; ScrollReveal().reveal(li, { opacity: 0, delay: randomDelay, distance: '30px', duration: 1000 }); }); } }); // ================================================================================================== // ================================================================================================== // Load Video Player function loadVideoPlayer(vimeoId) { var options = { id: vimeoId, responsive: true, }; var videoPlayer = new Vimeo.Player('testimonialVideo', options); return videoPlayer; } function loadMisiuneVideoPlayer(vimeoId) { var options = { id: vimeoId, responsive: true, }; var videoPlayer = new Vimeo.Player('misiuneVideo', options); return videoPlayer; } function loadClientVideo(vimeoId) { var options = { id: vimeoId, responsive: true, }; var videoPlayer = new Vimeo.Player('clientVideo', options); return videoPlayer; }
Back