trAvis - MANAGER
Edit File: plus-row-background.min.js
function background_accordion_tabs_conn(e,t){var a=jQuery;0<a("#"+t).length&&e&&((t=a("#"+t+" .bg-carousel-slide")).removeClass("bg-active-slide"),t.length>=e?t.eq(e-1).addClass("bg-active-slide"):(e=e%t.length,t.eq(e-1).addClass("bg-active-slide")))}!function(){function e(e,s){var t,a,n,o,i,r,l=e.find(".pt-plus-row-set").eq(0),d=l.closest("section.elementor-element"),c=e.closest("section.elementor-element");c.length&&(s(c).find("> .pt-plus-row-set").remove(),e.closest(".elementor").find("> .plus-row-bg-gradient").remove(),e.closest(".elementor").find("> .plus-scroll-sections-bg").remove()),"yes"==e.find(".pt-plus-row-set .plus-row-bg-gradient").data("full-page")&&(a=(t=e.find(".plus-row-bg-gradient")).data("position"),l.closest(".elementor").prepend(t),l.closest(".elementor").css("position",a),plus_onscroll_bg()),d&&(0<e.find(".pt-plus-row-set .plus-scroll-sections-bg").length&&(a=(e=e.find(".plus-scroll-sections-bg")).data("position"),l.closest(".elementor").prepend(e),l.closest(".elementor").css("position",a),plus_onscroll_bg()),s(d).prepend(l),d.css("position","relative"),null==(l=s(c).find("> .pt-plus-row-set")).data("section-hidden")&&""==l.data("section-hidden")||d.hasClass("elementor-element-edit-mode")||d.css("overflow",l.attr("data-section-hidden"))),c.find(".snow-particles").length&&(o=document.querySelector(".snow-particles"),snow_particles_background(s(".snow-particles").parent(),o)),c.find(".columns-bg-image.columns_animated_bg,.image-bgscroll").length&&s(".columns-bg-image.columns_animated_bg,.image-bgscroll").each(function(){var e=s(this),t=e.data("direction"),a=100-e.data("parallax_sense"),n=0;e.data("mobile_enable")&&e.data("mobile_enable");setInterval(function(){"left"==t||"bottom"==t?--n:n+=1,"left"==t||"right"==t?e.css("backgroundPosition",n+"px 50%"):e.css("backgroundPosition","50% "+n+"px")},a)}),c.find(".pt_plus_image_parallax_inner_hover").length&&(s(".pt_plus_image_parallax_inner_hover").each(function(){var e=s(this).attr("data-opacity"),t=s(this).attr("data-amount"),a=s(this).attr("data-perspective"),n=s(this).attr("data-scale"),o=s(this).attr("data-type");s(this).css("opacity",e);e=0,e="tilt"===o?.6*-parseInt(t)+"%":-parseInt(t)+"px";s(this).css("top",e),s(this).css("left",e),s(this).css("right",e),s(this).css("bottom",e),s(this).css("width","auto"),s(this).css("height","auto"),s(this).css("transform","scale("+n+") perspective("+a+"px)")}),i=document.querySelectorAll(".pt_plus_image_mouse_hover"),Array.prototype.forEach.call(i,function(e,t){e.parentNode.classList.add("image_parallax_row")}),i=document.querySelectorAll(".image_parallax_row"),Array.prototype.forEach.call(i,function(e,t){e.addEventListener("mousemove",function(e){for(var t=e.target.parentNode;!t.classList.contains("image_parallax_row");){if("HTML"===t.tagName)return;t=t.parentNode}var a=t.getBoundingClientRect(),d=e.pageY-(a.top+window.pageYOffset),c=e.pageX-(a.left+window.pageXOffset);d/=t.clientHeight,c/=t.clientWidth;a=t.querySelectorAll(".pt_plus_image_parallax_inner_hover");Array.prototype.forEach.call(a,function(e,t){var a,n,o,i=parseFloat(e.getAttribute("data-amount")),s=parseFloat(e.getAttribute("data-perspective")),r=parseFloat(e.getAttribute("data-scale")),l="true"===e.getAttribute("data-inverted");"tilt"===e.getAttribute("data-type")?(n=c*i-i/2,o=(1-d)*i-i/2,l&&(n=(1-c)*i-i/2,o=d*i-i/2),a="scale("+r+") perspective("+s+"px) ",a+="rotateY("+n+"deg) ",a+="rotateX("+o+"deg) "):(o=c*i-i/2,i=d*i-i/2,l&&(o*=-1,i*=-1),a="scale("+r+") translate3D("+o+"px, "+i+"px, 0) "),e.style.transition="all 0s",e.style.webkitTransform=a,e.style.transform=a})}),e.addEventListener("mouseout",function(e){for(var t=e.target.parentNode;!t.classList.contains("image_parallax_row");){if("HTML"===t.tagName)return;t=t.parentNode}e=t.querySelectorAll(".pt_plus_image_parallax_inner_hover");Array.prototype.forEach.call(e,function(e,t){parseFloat(e.getAttribute("data-amount"));var a=parseFloat(e.getAttribute("data-scale")),n=parseFloat(e.getAttribute("data-perspective"));e.style.transition="all 3s ease-in-out","tilt"===e.getAttribute("data-type")?(e.style.webkitTransform="scale("+a+") perspective("+n+"px) rotateY(0) rotateX(0)",e.style.transform="scale("+a+") perspective("+n+"px) rotateY(0) rotateX(0)"):(e.style.webkitTransform="scale("+a+") translate3D(0, 0, 0)",e.style.transform="scale("+a+") translate3D(0, 0, 0)")})})})),c.find(".pt_plus_mordern_image_parallax").length&&(i=document.querySelectorAll(".pt_plus_mordern_image_parallax"),Array.prototype.forEach.call(i,function(e,t){e.parentNode.parentElement.classList.add("image_parallax_row")}),i=document.querySelectorAll(".image_parallax_row"),Array.prototype.forEach.call(i,function(e,t){e.addEventListener("mousemove",function(n){for(var e=n.target.parentNode;!e.classList.contains("image_parallax_row");){if("HTML"===e.tagName)return;e=e.parentNode}var t=e.getBoundingClientRect(),t=(n.pageY,t.top,window.pageYOffset,n.pageX,t.left,window.pageXOffset,0);e.clientHeight,e.clientWidth;t=e.querySelectorAll(".parallax_image");Array.prototype.forEach.call(t,function(e,t){var a=parseFloat(e.getAttribute("data-parallax"));TweenLite.to(e,.2,{x:-(n.clientX-window.innerWidth/2)/a,y:-(n.clientY-window.innerHeight/2)/a})})}),e.addEventListener("mouseout",function(n){for(var e=n.target.parentNode;!e.classList.contains("image_parallax_row");){if("HTML"===e.tagName)return;e=e.parentNode}var t=e.querySelectorAll(".parallax_image");Array.prototype.forEach.call(t,function(e,t){var a=parseFloat(e.getAttribute("data-parallax"));TweenLite.to(e,.2,{x:-(n.clientX-window.innerWidth/2)/a,y:-(n.clientY-window.innerHeight/2)/a})})})})),c.find(".row-parallax-bg-img").length&&(n=new ScrollMagic.Controller,s(".row-parallax-bg-img").each(function(e,t){new TimelineMax,s(t).find(".parallax-bg-img").length;e=s(t).find(".parallax-bg-img"),new ScrollMagic.Scene({triggerElement:t,triggerHook:1,duration:"200%"}).setTween(TweenMax.fromTo(e,1,{delay:.5,backgroundPositionY:"20%",ease:Power0.easeNone},{delay:.5,backgroundPositionY:"80%",ease:Power0.easeNone})).addTo(n)})),c.find(".row-animated-bg").length&&s(".row-animated-bg").each(function(){var e=s(this).data("id"),t=s(this).data("bg-time"),a=s(this).data("bg");s("."+e).animatedBG({colorSet:a,speed:t})}),c.find(".columns-video-bg video, .columns-video-bg .columns-bg-frame").length&&(setTimeout(function(){s(".columns-video-bg video, .columns-video-bg .columns-bg-frame").pt_plus_VideoBgInit(),s(".self-hosted-videos").each(function(){s(this)[0].play()})},100),s.fn.pt_plus_VideoBgInit=function(){return this.each(function(){function e(){a=o/1.778<i?(t=Math.ceil(1.778*i),i):(t=o,Math.ceil(o/1.778)),n.css({width:t,height:a})}var t,a,n=s(this),o=n.parent().width(),i=n.parent().height();e(),s(window).on("resize",e)})}),0<s(".pt-plus-row-set .pt-plus-bg-video .self-hosted-videos").length&&s(".pt-plus-row-set .pt-plus-bg-video .self-hosted-videos").each(function(){var e,t=window.innerWidth,a=s(this).data("dk-mp4"),n=s(this).data("dk-webm"),o=s(this).data("tb-mp4"),i=s(this).data("mb-mp4");t<=767&&null!=i&&""!=i?(e='<source src="'+i+'" type="video/mp4">',s(this).append(e)):768<=t&&t<=1024&&null!=o&&""!=o?(e='<source src="'+o+'" type="video/mp4">',s(this).append(e)):(null!=a&&""!=a&&(e='<source src="'+a+'" type="video/mp4">',s(this).append(e)),null!=n&&""!=n&&(n='<source src="'+n+'" type="video/webm">',s(this).append(n)))}),c.find(".columns-youtube-bg").length&&((o=document.createElement("script")).src="//www.youtube.com/iframe_api",(i=document.getElementsByTagName("script")[0]).parentNode.insertBefore(o,i),r={},window.onYouTubeIframeAPIReady=function(){s(".columns-youtube-bg iframe").each(function(){var t=s(this),a=t.attr("id");r[a]=new YT.Player(a,{playerVars:{autoplay:1},events:{onReady:function(e){t.data("muted")&&"1"==t.data("muted")&&e.target.mute(),e.target.playVideo()},onStateChange:function(e){var t;e&&1===e.data?(t=document.getElementById("wrapper-"+a))&&t.id&&t.classList.remove("tp-loading"):e&&0===e.data&&e.target.playVideo()}}})})}),c.find(".columns-vimeo-bg").length&&s(document).ready(function(){s(".columns-vimeo-bg iframe").each(function(){var a=s(this);function e(e){var t;"https://player.vimeo.com"===e.origin&&(t=JSON.parse(e.data),e=a.attr("id"),"ready"===t.event&&(a[0].contentWindow.postMessage('{"method":"play", "value":1}',"https://player.vimeo.com"),a.data("muted")&&"1"==a.data("muted")&&a[0].contentWindow.postMessage('{"method":"setVolume", "value":0}',"https://player.vimeo.com"),(e=document.getElementById("wrapper-"+e))&&e.id&&e.classList.remove("tp-loading")))}window.addEventListener?window.addEventListener("message",e,!1):window.attachEvent("onmessage",e,!1)})}),c.find("#pt-plus-row-canvas-2").length&&s(document).ready(function(){var e;s("#pt-plus-row-canvas-2").length&&(e=s("#pt-plus-row-canvas-2").attr("data-color"),particlesJS("pt-plus-row-canvas-2",{particles:{number:{value:80,density:{enable:!0,value_area:800}},color:{value:e},shape:{type:"circle",stroke:{width:0,color:"#000000"},polygon:{nb_sides:5},image:{src:"img/github.svg",width:100,height:100}},opacity:{value:.5,random:!1,anim:{enable:!1,speed:1,opacity_min:.1,sync:!1}},size:{value:2,random:!0,anim:{enable:!1,speed:40,size_min:.1,sync:!1}},line_linked:{enable:!0,distance:150,color:e,opacity:.4,width:1},move:{enable:!0,speed:2,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:600,rotateY:1200}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!0,mode:"grab"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:150,line_linked:{opacity:1}},bubble:{distance:400,size:40,duration:2,opacity:8,speed:3},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0}))}),c.find("#pt-plus-row-canvas-3").length&&s(document).ready(function(){var e,t;s("#pt-plus-row-canvas-3").length&&(e=s("#pt-plus-row-canvas-3").attr("data-color"),t=s("#pt-plus-row-canvas-3").attr("data-type"),particlesJS("pt-plus-row-canvas-3",{particles:{number:{value:80,density:{enable:!0,value_area:800}},color:{value:e},shape:{type:t,stroke:{width:4,color:e},polygon:{nb_sides:8},image:{src:"",width:100,height:100}},opacity:{value:.5,random:!1,anim:{enable:!1,speed:1,opacity_min:.1,sync:!1}},size:{value:2,random:!0,anim:{enable:!1,speed:102.321728,size_min:25.174393,sync:!0}},line_linked:{enable:!0,distance:150,color:e,opacity:.4,width:1},move:{enable:!0,speed:6,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:600,rotateY:1200}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!1,mode:"grab"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:923.076923,line_linked:{opacity:1}},bubble:{distance:287.712287,size:40,duration:3.916083,opacity:1,speed:3},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0}))}),c.find("#pt-plus-row-canvas-4").length&&s(document).ready(function(){var e,t;s("#pt-plus-row-canvas-4").length&&(e=s("#pt-plus-row-canvas-4").attr("data-color"),t=s("#pt-plus-row-canvas-4").attr("data-type"),particlesJS("pt-plus-row-canvas-4",{particles:{number:{value:10,density:{enable:!0,value_area:800}},color:{value:e},shape:{type:t,stroke:{width:0,color:e},polygon:{nb_sides:5},image:{src:"",width:100,height:100}},opacity:{value:.505074,random:!0,anim:{enable:!1,speed:1,opacity_min:.1,sync:!1}},size:{value:100.213253,random:!0,anim:{enable:!0,speed:10,size_min:40,sync:!1}},line_linked:{enable:!1,distance:481.023618,color:e,opacity:1,width:2},move:{enable:!0,speed:8,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:600,rotateY:1200}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!1,mode:"bubble"},onclick:{enable:!1,mode:"push"},resize:!0},modes:{grab:{distance:431.568431,line_linked:{opacity:.364281}},bubble:{distance:263.73626373626377,size:55.944055,duration:2.157842,opacity:.335664,speed:3},repulse:{distance:239.760239,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0}))}),c.find("#pt-plus-row-canvas-5").length&&s(document).ready(function(){var e;s("#pt-plus-row-canvas-5").length&&(e=s("#pt-plus-row-canvas-5").attr("data-color"),particlesJS("pt-plus-row-canvas-5",{particles:{number:{value:600,density:{enable:!0,value_area:800}},color:{value:e},shape:{type:"circle",stroke:{width:0,color:"#000000"},polygon:{nb_sides:5},image:{src:"",width:100,height:100}},opacity:{value:0,random:!1,anim:{enable:!1,speed:0,opacity_min:0,sync:!1}},size:{value:3,random:!0,anim:{enable:!1,speed:40,size_min:.1,sync:!1}},line_linked:{enable:!0,distance:32.068241,color:e,opacity:.8,width:1},move:{enable:!0,speed:4,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:600,rotateY:1200}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!0,mode:"repulse"},onclick:{enable:!1,mode:"push"},resize:!0},modes:{grab:{distance:400,line_linked:{opacity:1}},bubble:{distance:200,size:140,duration:2,opacity:8,speed:2},repulse:{distance:100,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0}))}),c.find(".canvas-style-6").length&&s(document).ready(function(){var e=s(".canvas-style-6").attr("data-canvas-color");s(".canvas-style-6").particleground({minSpeedX:.1,maxSpeedX:.3,minSpeedY:.1,maxSpeedY:.3,directionX:"center",directionY:"up",density:1e4,dotColor:e,lineColor:e,particleRadius:7,lineWidth:1,curvedLines:!1,proximity:100,parallax:!0,parallaxMultiplier:5,onInit:function(){},onDestroy:function(){}})}),c.find("#pt-plus-row-canvas-7").length&&s(document).ready(function(){var e,t;s("#pt-plus-row-canvas-7").length&&(e=s("#pt-plus-row-canvas-7").attr("data-color"),t=s("#pt-plus-row-canvas-7").attr("data-type"),particlesJS("pt-plus-row-canvas-7",{particles:{number:{value:400,density:{enable:!0,value_area:2840.9315098761817}},color:{value:e},shape:{type:t,stroke:{width:0,color:e},polygon:{nb_sides:5},image:{src:"",width:100,height:100}},opacity:{value:.5,random:!0,anim:{enable:!1,speed:1,opacity_min:.1,sync:!1}},size:{value:11,random:!0,anim:{enable:!1,speed:40,size_min:.1,sync:!1}},line_linked:{enable:!1,distance:224.4776885211732,color:e,opacity:.1683582663908799,width:1.2827296486924182},move:{enable:!0,speed:3,direction:"bottom",random:!0,straight:!1,out_mode:"bounce",bounce:!1,attract:{enable:!1,rotateX:881.8766334760375,rotateY:1200}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!0,mode:"bubble"},onclick:{enable:!0,mode:"repulse"},resize:!0},modes:{grab:{distance:400,line_linked:{opacity:.5}},bubble:{distance:400,size:4,duration:.3,opacity:1,speed:3},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0}))}),c.find(".parallax_image").length&&s(".parallax_image").each(function(){var e=s(window).width(),t=s(this).attr("data-tablet-width"),a=s(this).attr("data-mobile-width");e<768&&s(this).css("width",t),e<480&&s(this).css("width",a),768<=e&&s(this).css("width","auto")})}jQuery(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/tp-row-background.default",e),elementorFrontend.isEditMode()&&elementorFrontend.hooks.addAction("frontend/element_ready/tp-row-background.default",e)})}(),function(n){"use strict";n(window).on("resize",function(){n(".mordern-image-effect").each(function(){var e=n(window).width(),t=n(this).attr("data-tablet-width"),a=n(this).attr("data-mobile-width");e<768&&n(this).css("width",t),e<480&&n(this).css("width",a),768<=e&&n(this).css("width","auto")})})}(jQuery),function(o){"use strict";var i=0,s=0,r=0;o(window).on("load resize",function(){var n=window.innerWidth;0<o("body").find(".plus-video-poster").length&&o(".plus-video-poster").each(function(){var e=o(this).data("desktop-poster"),t=o(this).data("tablet-poster"),a=o(this).data("mobile-poster");null!=t&&""!=t||(t=e),null!=a&&""!=a||(a=t),n<=1024&&768<=n&&null!=t&&0==s&&(o(this).hasClass("self-hosted-video-bg")?(o(this).css("background-image","url("+t+")"),o("video",this).attr("poster",t)):o(this).css("background-image","url("+t+")"),s++,r=i=0),n<=767&&null!=a&&0==r&&(o(this).hasClass("self-hosted-video-bg")?(o(this).css("background-image","url("+a+")"),o("video",this).attr("poster",a)):o(this).css("background-image","url("+a+")"),s=i=0,r++),1025<=n&&null!=e&&0==i&&(o(this).hasClass("self-hosted-video-bg")?(o(this).css("background-image","url("+e+")"),o("video",this).attr("poster",e)):o(this).css("background-image","url("+e+")"),i++,r=s=0)})})}(jQuery);