Sid Gifari File Manager
🏠 Root
/
home
/
ailwtbdh
/
public_html
/
wp-content
/
plugins
/
element-ready-lite
/
assets
/
js
/
widgets
/
Editing: threesixty-rotation.js
!function($){var a=function(g,$){var a=g.find(".er-three-sixty"),d=a.attr("id"),h=parseInt(a.attr("data-height")),i=parseInt(a.attr("data-width")),j=parseInt(a.attr("data-perrow")),k=parseInt(a.attr("data-count")),l=parseInt(a.attr("data-speed"));a.attr("data-controls");var m=a.attr("data-autoplay"),n=a.attr("data-toggle_play"),b=a.attr("data-urls");let o=document.querySelector("#"+d+" .er-rotate-image"),e=document.querySelector("#"+d+" .er-rotate-prev"),p=document.querySelector("#"+d+" .er-rotate-next"),f=document.querySelector("#"+d+" .er-rotate-play");var c={image:"https://s3.eu-central-1.amazonaws.com/threesixty.js/watch.jpg",width:i,height:h,count:k,perRow:j,speed:l};1==(b=b.split("||")).length?c.image=b[0]:b.length>1&&(c.image=b),e&&(c.prev=e,c.next=p);var q=new ThreeSixty(o,c);"yes"==m&&q.play(),f&&"yes"==n&&f.addEventListener("click",function(){q.toggle()})};$(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/Element_Ready_ThreeSixty_Rotation.default",a)})}(jQuery);
Save
Cancel