PATH:
home
/
lab2454c
/
foreclass.com
/
wp-content
/
plugins
/
ocean-elementor-widgets
/
assets
/
js
!function(g){g.fn.twentytwenty=function(m){m=g.extend({default_offset_pct:.5,orientation:"horizontal",before_label:"Before",after_label:"After",no_overlay:!1,move_slider_on_hover:!1,move_with_handle_only:!0,click_to_move:!1},m);return this.each(function(){var e=m.default_offset_pct,s=g(this),d=m.orientation,t="vertical"===d?"down":"left",n="vertical"===d?"up":"right";s.wrap("<div class='twentytwenty-wrapper twentytwenty-"+d+"'></div>"),m.no_overlay||s.append("<div class='twentytwenty-overlay'></div>");var r=s.find("img:first"),l=s.find("img:last");s.append("<div class='twentytwenty-handle'></div>");var c=s.find(".twentytwenty-handle");c.append("<span class='twentytwenty-"+t+"-arrow'></span>"),c.append("<span class='twentytwenty-"+n+"-arrow'></span>"),s.addClass("twentytwenty-container"),r.addClass("twentytwenty-before"),l.addClass("twentytwenty-after");var a=s.find(".twentytwenty-overlay");a.append("<div class='twentytwenty-before-label' data-content='"+m.before_label+"'></div>"),a.append("<div class='twentytwenty-after-label' data-content='"+m.after_label+"'></div>");function i(t){var e,n,a,i,o=(e=t,n=r.width(),a=r.height(),{w:n+"px",h:a+"px",cw:e*n+"px",ch:e*a+"px"});c.css("vertical"===d?"top":"left","vertical"===d?o.ch:o.cw),i=o,"vertical"===d?(r.css("clip","rect(0,"+i.w+","+i.ch+",0)"),l.css("clip","rect("+i.ch+","+i.w+","+i.h+",0)")):(r.css("clip","rect(0,"+i.cw+","+i.h+",0)"),l.css("clip","rect(0,"+i.w+","+i.h+","+i.cw+")")),s.css("height",i.h)}function o(t,e){var n,a,i;return n="vertical"===d?(e-p)/u:(t-y)/h,a=0,i=1,Math.max(a,Math.min(i,n))}g(window).on("resize.twentytwenty",function(t){i(e)}),g(window).on("load.twentytwenty",function(t){i(e)});function w(t){(t.distX>t.distY&&t.distX<-t.distY||t.distX<t.distY&&t.distX>-t.distY)&&"vertical"!==d?t.preventDefault():(t.distX<t.distY&&t.distX<-t.distY||t.distX>t.distY&&t.distX>-t.distY)&&"vertical"===d&&t.preventDefault(),s.addClass("active"),y=s.offset().left,p=s.offset().top,h=r.width(),u=r.height()}function f(t){s.hasClass("active")&&(e=o(t.pageX,t.pageY),i(e))}function v(){s.removeClass("active")}var y=0,p=0,h=0,u=0,_=m.move_with_handle_only?c:s;_.on("movestart",w),_.on("move",f),_.on("moveend",v),m.move_slider_on_hover&&(s.on("mouseenter",w),s.on("mousemove",f),s.on("mouseleave",v)),c.on("touchmove",function(t){t.preventDefault()}),s.find("img").on("mousedown",function(t){t.preventDefault()}),m.click_to_move&&s.on("click",function(t){y=s.offset().left,p=s.offset().top,h=r.width(),u=r.height(),e=o(t.pageX,t.pageY),i(e)}),g(window).trigger("load.twentytwenty"),g(window).trigger("resize.twentytwenty")})}}(jQuery);
[-] scroll-up.js
[edit]
[-] appear.js
[edit]
[-] off-canvas.js
[edit]
[-] member.min.js
[edit]
[-] alert.min.js
[edit]
[-] typed.min.js
[edit]
[-] navbar.js
[edit]
[-] hotspots.js
[edit]
[-] asPieProgress.min.js
[edit]
[-] blog-grid.js
[edit]
[-] hotspots.min.js
[edit]
[+]
..
[-] modal.js
[edit]
[-] blog-grid.min.js
[edit]
[-] instagram.js
[edit]
[-] twentytwenty.js
[edit]
[-] countdown.min.js
[edit]
[-] woo-slider.min.js
[edit]
[-] modal.min.js
[edit]
[-] google-map.min.js
[edit]
[-] image-comparison.js
[edit]
[-] blog-carousel.js
[edit]
[-] search.min.js
[edit]
[-] image-comparison.min.js
[edit]
[-] skillbar.js
[edit]
[-] event.move.js
[edit]
[-] instagram.min.js
[edit]
[-] skillbar.min.js
[edit]
[-] toggle.js
[edit]
[-] tabs.js
[edit]
[-] circle-progress.min.js
[edit]
[-] accordion.js
[edit]
[-] accordion.min.js
[edit]
[-] morphext.min.js
[edit]
[-] alert.js
[edit]
[-] navbar.min.js
[edit]
[-] morphext.js
[edit]
[-] search.js
[edit]
[-] countdown.js
[edit]
[-] image-gallery.js
[edit]
[-] off-canvas.min.js
[edit]
[-] appear.min.js
[edit]
[-] isotope.min.js
[edit]
[-] tooltip.min.js
[edit]
[-] newsletter.min.js
[edit]
[-] query-post.js
[edit]
[-] event.move.min.js
[edit]
[-] query-post.min.js
[edit]
[-] member.js
[edit]
[-] search-icon.js
[edit]
[-] slick.js
[edit]
[-] woo-slider.js
[edit]
[-] isotope.js
[edit]
[-] blog-carousel.min.js
[edit]
[-] tabs.min.js
[edit]
[-] asPieProgress.js
[edit]
[-] circle-progress.js
[edit]
[-] image-gallery.min.js
[edit]
[-] twentytwenty.min.js
[edit]
[-] search-icon.min.js
[edit]
[-] toggle.min.js
[edit]
[-] google-map.js
[edit]
[-] scroll-up.min.js
[edit]
[-] typed.js
[edit]
[-] newsletter.js
[edit]
[-] tooltip.js
[edit]