File Editor
Directories:
.. (Back)
dev
vendors
Files:
sinatra-slider.js
sinatra-slider.min.js
sinatra-wc.js
sinatra-wc.min.js
sinatra.js
sinatra.min.js
skip-link-focus-fix.js
skip-link-focus-fix.min.js
Create New File
Create
Edit File: sinatra-slider.min.js
"use strict";var sinatraHoverSlider=function(e){var t=0,r=e.querySelector(".si-spinner"),o=function(){r.classList.remove("visible"),setTimeout((function(){r.style.display="none"}),300),e.querySelector(".hover-slider-backgrounds").classList.add("loaded")};return e.querySelector(".hover-slide-bg").classList.add("active"),e.querySelectorAll(".hover-slider-backgrounds .hover-slide-bg").forEach((function(t,r){t.style.backgroundImage="url("+t.getAttribute("data-background")+")",e.querySelector(".hover-slider-items > div:nth-child("+(r+1)+")").style.setProperty("--bg-image",'url("'+t.getAttribute("data-background")+'")'),t.removeAttribute("data-background")})),imagesLoaded(e.querySelectorAll(".hover-slider-backgrounds"),{background:".hover-slide-bg"},(function(){null===document.getElementById("si-preloader")||document.body.classList.contains("si-loaded")?setTimeout((function(){o()}),300):document.body.addEventListener("si-preloader-done",(function(){setTimeout((function(){o()}),300)}))})),e.querySelectorAll(".hover-slider-item-wrapper").forEach((function(r){r.addEventListener("mouseenter",(function(){t!==sinatraGetIndex(r)&&(t=sinatraGetIndex(r),e.querySelectorAll(".hover-slide-bg").forEach((function(e,r){e.classList.remove("active"),r===t&&e.classList.add("active")})))}))})),e};document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".si-hover-slider").forEach((function(e){sinatraHoverSlider(e)}))}));
Save Changes
Rename File
Rename