PageSourceSearch

https://www.idn-france.org/wp-content/plugins/jet-elements/assets/…/addons/jet-animated-box.min.js?ver=2.9.2.2

js idn-france.org collected 2026-10-02 16:37:39 UTC 13,896 bytes, 1 lines download raw bytes

1!function(e){"use strict";function t(t,o,n,i=75,a){var s,d=document.querySelector(t),c=document.querySelector(o),l=c.width,r=c.height,u=c.getContext("2d"),p=new Image,f=!1;function h(e,t){return{x:(e.pageX||e.touches[0].clientX)-0,y:(e.pageY||e.touches[0].clientY)-0}}function m(e){(e=e||0)>i&&n&&n.call(c)}function w(e){f=!0,s=h(e)}function v(e){var t,o,n=(t=c.getBoundingClientRect(),o=document.documentElement,{top:t.top,scrollTop:o.scrollTop}),i=0;if(a.top!=n.top&&(i=n.top+n.scrollTop-a),f){e.preventDefault();for(var d,w,v=h(e),b=(d=s,w=v,Math.sqrt(Math.pow(w.x-d.x,2)+Math.pow(w.y-d.y,2))),g=function(e,t){return Math.atan2(t.x-e.x,t.y-e.y)}(s,v),x=0,C=0,j=navigator.userAgent||navigator.vendor||window.opera,k=/iPad|iPhone|iPod/.test(j)&&!window.MSStream,y=JetElementsTools.mobileAndTabletcheck()&&!k?window.scrollY:0,T=0;T<b;T++)x=s.x+Math.sin(g)*T-40,C=s.y+Math.cos(g)*T-40+y-i,u.globalCompositeOperation="destination-out",u.drawImage(p,x,C,80,80);s=v,m(function(e){(!e||e<1)&&(e=1);for(var t=u.getImageData(0,0,l,r).data,o=t.length,n=o/4/e,i=0,a=i=0;a<o;a+=4*e)0===parseInt(t[a+3])&&i++;return Math.round(i/n*100)}(32))}}function b(e){f=!1}e(".jet-animated-box__button--back",d).on("focus",function(){m(100)}),p.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAxCAYAAABNuS5SAAAKFklEQVR42u2aCXCcdRnG997NJtlkk83VJE3apEma9CQlNAR60UqrGSqW4PQSO9iiTkE8BxWtlGMqYCtYrLRQtfVGMoJaGRFliijaViwiWgQpyCEdraI1QLXG52V+n/5nzd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KwhQFG5vfLfcwZsx2X92Jhje8/P8OI+TK/oO+zeA84WTzkvI/6RuB3y6f68qf11xnyMiuzMms4178AwArmZmkkdGcAAAAASUVORK5CYII=",c.addEventListener("mousedown",w,!1),c.addEventListener("mousemove",JetElementsTools.debounce(5,v),!1),c.addEventListener("mouseup",b,!1),c.addEventListener("touchstart",w,!1),c.addEventListener("touchmove",v,!1),c.addEventListener("touchend",b,!1)}window.widgetAnimatedBox=function(o){!function(e){if(window.elementor&&window.JetElementsEditor&&window.JetElementsEditor.activeSection){var t=window.JetElementsEditor.activeSection;-1!==["section_back_content","section_action_button_style"].indexOf(t)?(e.find(".jet-animated-box").addClass("flipped"),e.find(".jet-animated-box").addClass("flipped-stop")):(e.find(".jet-animated-box").removeClass("flipped"),e.find(".jet-animated-box").removeClass("flipped-stop"))}}(o),function(){function t(e){var t=e.closest?e.closest(".jet-animated-box"):null;return t&&(t.closest(".elementor-widget-loop-carousel")||t.closest('[data-widget_type^="loop-carousel"]')||t.closest(".e-loop-carousel"))?t:null}e(document).data("jetAnimatedBoxLoopCarouselFallback")||(e(document).data("jetAnimatedBoxLoopCarouselFallback",!0),document.addEventListener("touchstart",function(o){var n=t(o.target);n&&o.touches&&o.touches.length&&e(n).data("jetAnimatedBoxTouch",{x:o.touches[0].clientX,y:o.touches[0].clientY,scrollTop:e(window).scrollTop(),moved:!1})},!0),document.addEventListener("touchmove",function(o){var n=t(o.target),i=n?e(n).data("jetAnimatedBoxTouch"):null,a=o.touches&&o.touches.length?o.touches[0]:null;n&&i&&a&&(8<Math.abs(a.clientX-i.x)||8<Math.abs(a.clientY-i.y))&&(i.moved=!0,e(n).data("jetAnimatedBoxTouch",i))},!0),document.addEventListener("touchend",function(o){var n=t(o.target),i=e(n),a=e.extend({},{switchEventType:"hover"},i.data("settings")),s=i.data("jetAnimatedBoxTouch");n&&s&&(i.removeData("jetAnimatedBoxTouch"),o.target.closest(".jet-animated-box__button--back")||("toggle"!==a.switchEventType||o.target.closest(".jet-animated-box__toggle"))&&-1!==["hover","click","toggle"].indexOf(a.switchEventType)&&(s.moved||5<Math.abs(s.scrollTop-e(window).scrollTop())||i.hasClass("flipped-stop")||(o.cancelable&&o.preventDefault(),o.stopPropagation(),setTimeout(function(){i.toggleClass("flipped")},10))))},!0))}();var n,i,a=o.find(".jet-animated-box"),s=a.data("settings"),d=(s=e.extend({},{widgetId:null,switchEventType:"hover",paperFoldDirection:"left",slideOutDirection:"left",peelCornerPosition:"right"},s),e(window).scrollTop()),c=!0,l=Boolean(elementorFrontend.isEditMode()),r=e(".jet-animated-box__button--back",o);if(a.length)switch(a.data("jetAnimatedBoxInitialized",!0),r.on("touchend",function(e){e.stopPropagation()}),s.switchEventType){case"hover":l?u():"ontouchend"in window||"ontouchstart"in window?(a.on("touchstart",function(t){d=e(window).scrollTop()}),a.on("touchend",function(t){if(d!==e(window).scrollTop())return!1;var o=e(this);o.hasClass("flipped-stop")||(setTimeout(function(){o.toggleClass("flipped")},10),o.find(".jet-animated-box__button--back").on("focus",function(){o.hasClass("flipped-stop")||o.addClass("flipped")}),o.find(".jet-animated-box__button--back").on("focusout",function(){o.removeClass("flipped")}))}),e(document).on("touchend",function(t){e(t.target).closest(a).length||a.not(".flipped-stop").filter(".flipped").removeClass("flipped")})):(a.on("mouseenter mouseleave",function(t){c&&"mouseleave"===t.type?e(this).hasClass("flipped-stop")||e(this).removeClass("flipped"):c&&"mouseenter"
1===t.type&&(e(this).hasClass("flipped-stop")||e(this).addClass("flipped"))}),r.on("focus",function(){var t=e(this).closest(".jet-animated-box");t.hasClass("flipped-stop")||t.addClass("flipped")}),r.on("focusout",function(){e(this).closest(".jet-animated-box").removeClass("flipped")}));break;case"click":u();break;case"toggle":"ontouchend"in window||"ontouchstart"in window?a.on("touchstart",".jet-animated-box__toggle",function(t){var o=e(this).closest(".jet-animated-box");o.hasClass("flipped-stop")||o.toggleClass("flipped")}):a.on("click",".jet-animated-box__toggle",function(t){var o=e(this).closest(".jet-animated-box");o.hasClass("flipped-stop")||o.toggleClass("flipped")}),r.on("focus",function(){var t=e(this).closest(".jet-animated-box");t.hasClass("flipped-stop")||t.addClass("flipped")}),r.on("focusout",function(){e(this).closest(".jet-animated-box").removeClass("flipped")});break;case"scratch":!function(){var o=e(a).closest(".jet-popup").data("settings"),n=window.requestIdleCallback||function(e){return window.setTimeout(e,120)},i=window.requestAnimationFrame||function(e){return window.setTimeout(e,16)};function d(o){o=o||0,i(function(){i(function(){a.is(":visible")&&a.outerWidth()&&a.outerHeight()?function(){var o=document.querySelector("#jet-animated-box-"+s.widgetId).getBoundingClientRect().top;if(l)return!1;var n=e(window).width();html2canvas(document.querySelector("#jet-animated-box__front-"+s.widgetId),{allowTaint:!0,backgroundColor:null,windowWidth:e(window).width(),windowHeight:e(window).height(),scrollX:0,scrollY:-window.scrollY}).then(function(i){i.setAttribute("id","jet-animated-box-canvas-"+s.widgetId),a.prepend(i),e(".jet-animated-box__front",a).fadeOut(300,function(){e(this).remove()}),e(window).one("resize.jetScratch",function(){e(window).width()!==n&&(n=e(window).width(),e(i).fadeOut(250,function(){e(this).remove()}))}),new t("#jet-animated-box-"+s.widgetId,"#jet-animated-box-canvas-"+s.widgetId,function(){e(i).fadeOut(300,function(){e(this).remove(),a.removeClass("back-events-inactive")})},s.scratchFillPercent,o)})}():o<10&&d(o+1)})})}(function(){var t,o=window.requestIdleCallback||function(e){return window.setTimeout(e,100)};e(document).data("jetScratchRendererWarmed")||e(document).data("jetScratchRendererWarming")||"function"!=typeof html2canvas||(e(document).data("jetScratchRendererWarming",!0),o(function(){t=e('<div class="jet-scratch-warmup"></div>').css({position:"fixed",top:"-9999px",left:"-9999px",width:"2px",height:"2px",opacity:0,pointerEvents:"none",zIndex:-1}),e("body").append(t),html2canvas(t[0],{allowTaint:!0,backgroundColor:null,windowWidth:e(window).width(),windowHeight:e(window).height(),scrollX:0,scrollY:0}).then(function(){e(document).data("jetScratchRendererWarmed",!0)}).finally(function(){e(document).removeData("jetScratchRendererWarming"),t.remove()})}))})(),e(a).closest(".jet-popup").length&&o&&!1===o["use-ajax"]?e(window).one("jet-popup-open-trigger",function(){window.setTimeout(function(){n(function(){d()})},420)}):d()}();break;case"fold":!function(){if(l)return a.addClass("fold-init"),!1;var t=null,o="#jet-animated-box__front-"+s.widgetId;t=new OriDomi(document.querySelector(o),{vPanels:5,hPanels:5,speed:500,ripple:!0,shadingIntensity:.9,perspective:1e3,shading:!1,gapNudge:0,touchSensitivity:.25,touchMoveCallback:function(t,n){89.5<t&&e(o).remove()}}).accordion(0,s.paperFoldDirection),a.addClass("fold-init"),r.on("focus",function(){t.foldUp()}),r.on("focusout",function(){t.accordion(0,s.paperFoldDirection)})}();break;case"peel":!function(t){if(l)return a.addClass("peel-ready"),!1;var o=e(".jet-animated-box__front",a).clone();e(".jet-animated-box__front",a).addClass("peel-top"),o.removeAttr("id"),o.addClass("peel-back"),o.insertAfter("#jet-animated-box__front-"+s.widgetId),e(".jet-animated-box__back",a).addClass("peel-bottom");var n=a.width();if(a.height(),"left"===t){var i=new Peel("#jet-animated-box-"+s.widgetId,{corner:Peel.Corners.TOP_LEFT});i.setPeelPosition(30,40)}else{var i=new Peel("#jet-animated-box-"+s.widgetId,{corner:Peel.Corners.TOP_RIGHT});i.setPeelPosition(n-30,40)}i.setFadeThreshold(.8),r.on("focus",function(){i.removeEvents(),e(".peel-top, .peel-back, .peel-bottom-shadow",a).remove()}),i.handleDrag(function(t,o,n){var s=a.offset(),d=s.left,c=s.top,l=o-d,r=n-c;l=l<0?l*=3:l,r=r<0?r*=3:r,.98<this.getAmountClipped()&&(this.removeEvents(),e(".peel-top, .peel-back, .peel-bottom-shadow",a).remove()),i.setPeelPosition(Math.round(l),Math.round(r))})}(s.peelCornerPosition);break;case"slide-out":n=e(".jet-animated-box__front",a),e(".jet-animated-box__back",a),a.width(),a.height(),i="left"===s.slideOutDirection||"right"===s.slideOutDirection?"x":"y",n.draggable({axis:i,drag:function(e,t){var o=t.position;switch(s.slideOutDirection){case"left":o.left>
1=0&&(t.position.left=0);break;case"right":o.left<=0&&(t.position.left=0);break;case"top":o.top>=0&&(t.position.top=0);break;case"bottom":o.top<=0&&(t.position.top=0)}}}),r.on("focus",function(){n.draggable("disable"),n.hide()})}function u(){"ontouchend"in window||"ontouchstart"in window?(a.on("touchstart",function(t){d=e(window).scrollTop()}),a.on("touchend",function(t){if(d!==e(window).scrollTop())return!1;var o=e(this);o.hasClass("flipped-stop")||setTimeout(function(){o.toggleClass("flipped")},10)}),e(document).on("touchend",function(t){e(t.target).closest(a).length||a.not(".flipped-stop").filter(".flipped").removeClass("flipped")})):(a.on("click",function(t){var o=e(this);o.hasClass("flipped-stop")||o.toggleClass("flipped")}),r.on("focus",function(){var t=e(this).closest(".jet-animated-box");t.hasClass("flipped-stop")||t.addClass("flipped")}),r.on("focusout",function(){e(this).closest(".jet-animated-box").removeClass("flipped")}))}}}(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.