PageSourceSearch

https://classe-numerique.fr/wp-content/themes/monecole-one/js/StackSlider/stackslider.min.js?v=1.9.11

js classe-numerique.fr collected 2026-10-04 13:26:23 UTC 15,186 bytes, 1 lines download raw bytes

1window.Modernizr=function(t,d,s){function e(t){u.cssText=t}function o(t,e){return typeof t===e}function a(t,e){for(var i in t){var n=t[i];if(!~(""+n).indexOf("-")&&u[n]!==s)return"pfx"!=e||n}return!1}function n(t,e,i){var n=t.charAt(0).toUpperCase()+t.slice(1),r=(t+" "+v.join(n+" ")+n).split(" ");return o(e,"string")||o(e,"undefined")?a(r,e):function(t,e,i){for(var n in t){var r=e[t[n]];if(r!==s)return!1===i?t[n]:o(r,"function")?r.bind(i||e):r}return!1}(r=(t+" "+g.join(n+" ")+n).split(" "),e,i)}var i,r,c={},h=d.documentElement,f="modernizr",l=d.createElement(f),u=l.style,p=" -webkit- -moz- -o- -ms- ".split(" "),m="Webkit Moz O ms",v=m.split(" "),g=m.toLowerCase().split(" "),y={},w=[],b=w.slice,k=function(t,e,i,n){var r,s,o,a,c=d.createElement("div"),l=d.body,u=l||d.createElement("body");if(parseInt(i,10))for(;i--;)(o=d.createElement("div")).id=n?n[i]:f+(i+1),c.appendChild(o);return r=["&#173;",'<style id="s',f,'">',t,"</style>"].join(""),c.id=f,(l?c:u).innerHTML+=r,u.appendChild(c),l||(u.style.background="",u.style.overflow="hidden",a=h.style.overflow,h.style.overflow="hidden",h.appendChild(u)),s=e(c,t),l?c.parentNode.removeChild(c):(u.parentNode.removeChild(u),h.style.overflow=a),!!s},E={}.hasOwnProperty;for(var $ in r=o(E,"undefined")||o(E.call,"undefined")?function(t,e){return e in t&&o(t.constructor.prototype[e],"undefined")}:function(t,e){return E.call(t,e)},Function.prototype.bind||(Function.prototype.bind=function(n){var r=this;if("function"!=typeof r)throw new TypeError;var s=b.call(arguments,1),o=function(){if(this instanceof o){var t=function(){};t.prototype=r.prototype;var e=new t,i=r.apply(e,s.concat(b.call(arguments)));return Object(i)===i?i:e}return r.apply(n,s.concat(b.call(arguments)))};return o}
1),y.csstransforms3d=function(){var i=!!n("perspective");return i&&"webkitPerspective"in h.style&&k("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t,e){i=9===t.offsetLeft&&3===t.offsetHeight}),i},y.csstransitions=function(){return n("transition")},y)r(y,$)&&(i=$.toLowerCase(),c[i]=y[$](),w.push((c[i]?"":"no-")+i));return c.addTest=function(t,e){if("object"==typeof t)for(var i in t)r(t,i)&&c.addTest(i,t[i]);else{if(t=t.toLowerCase(),c[t]!==s)return c;e="function"==typeof e?e():e,h.className+=" "+(e?"":"no-")+t,c[t]=e}return c},e(""),l=null,function(t,c){function l(){var t=p.elements;return"string"==typeof t?t.split(" "):t}function u(t){var e=a[t[n]];return e||(e={},o++,t[n]=o,a[o]=e),e}function d(t,e,i){return e||(e=c),f?e.createElement(t):(i||(i=u(e)),(n=i.cache[t]?i.cache[t].cloneNode():s.test(t)?(i.cache[t]=i.createElem(t)).cloneNode():i.createElem(t)).canHaveChildren&&!r.test(t)?i.frag.appendChild(n):n);var n}function e(t){t||(t=c);var e,i,n,r,s,o,a=u(t);return p.shivCSS&&!h&&!a.hasCSS&&(a.hasCSS=(r="article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}",s=(n=t).createElement("p"),o=n.getElementsByTagName("head")[0]||n.documentElement,s.innerHTML="x<style>"+r+"</style>",!!o.insertBefore(s.lastChild,o.firstChild))),f||(e=t,(i=a).cache||(i.cache={},i.createElem=e.createElement,i.createFrag=e.createDocumentFragment,i.frag=i.createFrag()),e.createElement=function(t){return p.shivMethods?d(t,e,i):i.createElem(t)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/\w+/g,function(t){return i.createElem(t),i.frag.createElement(t),'c("'+t+'")'})+");return n}")(p,i.frag)),t}var h,f,i=t.html5||{},r=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,s=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,n="_html5shiv",o=0,a={};!function(){try{var t=c.createElement("a");t.innerHTML="<xyz></xyz>",h="hidden"in t,f=1==t.childNodes.length||function(){c.createElement("a");var t=c.createDocumentFragment();return void 0===t.cloneNode||void 0===t.createDocumentFragment||void 0===t.createElement}()}catch(t){f=h=!0}}();var p={elements:i.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:!1!==i.shivCSS,supportsUnknownElements:f,shivMethods:!1!==i.shivMethods,type:"default",shivDocument:e,createElement:d,createDocumentFragment:function(t,e){if(t||(t=c),f)return t.createDocumentFragment();for(var i=(e=e||u(t)).frag.cloneNode(),n=0,r=l(),s=r.length;n<s;n++)i.createElement(r[n]);return i}};t.html5=p,e(c)}(this,d),c._version="2.6.2",c._prefixes=p,c._domPrefixes=g,c._cssomPrefixes=v,c.testProp=function(t){return a([t])},c.testAllProps=n,c.testStyles=k,c.prefixed=function(t,e,i){return e?n(t,e,i):n(t,"pfx")},h.className=h.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+" js "+w.join(" "),c}(0,this.document),function(t,h,e){function d(t){return"[object Function]"==s.call(t)}function f(t){return"string"==typeof t}function p(){}function m(t){return!t||"loaded"==t||"complete"==t||"uninitialized"==t}function v(){var t=b.shift();k=1,t?t.t?y(function(){("c"==t.t?g.injectCss:g.injectJs)(t.s,0,t.a,t.x,t.e,1)},0):(t(),v()):k=0}function i(t,e,i,n,r){return k=0,e=e||"j",f(t)?function(i,n,t,e,r,s,o){function a(t){if(!l&&m(c.readyState)&&(d.r=l=1,!k&&v(),c.onload=c.onreadystatechange=null,t))for(var e in"img"!=i&&y(function(){$.removeChild(c)},50),S[n])S[n].hasOwnProperty(e)&&S[n][e].onload()}o=o||g.errorTimeout;var c=h.createElement(i),l=0,u=0,d={t:t,s:n,e:r,a:s,x:o};1===S[n]&&(u=1,S[n]=[]),"object"==i?c.data=n:(c.src=n,c.type=i),c.width=c.height="0",c.onerror=c.onload=c.onreadystatechange=function(){a.call(this,u)},b.splice(e,0,d),"img"!=i&&(u||2===S[n]?($.insertBefore(c,E?null:w),y(a,o)):S[n].push(c))}("c"==e?l:c,t,e,this.i++,i,n,r):(b.splice(this.i++,0,t),1==b.length&&v()),this}function a(){var t=g;return t.loader={load:i,i:0}
1,t}var n,g,r=h.documentElement,y=t.setTimeout,w=h.getElementsByTagName("script")[0],s={}.toString,b=[],k=0,o="MozAppearance"in r.style,E=o&&!!h.createRange().compareNode,$=E?r:w.parentNode,c=(r=t.opera&&"[object Opera]"==s.call(t.opera),r=!!h.attachEvent&&!r,o?"object":r?"script":"img"),l=r?"script":c,C=Array.isArray||function(t){return"[object Array]"==s.call(t)},T=[],S={},_={timeout:function(t,e){return e.length&&(t.timeout=e[0]),t}};(g=function(t){function u(t,e,i,n,r){var s=function(t){t=t.split("!");var e,i,n,r=T.length,s=t.pop(),o=t.length;for(s={url:s,origUrl:s,prefixes:t},i=0;i<o;i++)n=t[i].split("="),(e=_[n.shift()])&&(s=e(s,n));for(i=0;i<r;i++)s=T[i](s);return s}(t),o=s.autoCallback;s.url.split(".").pop().split("?").shift(),s.bypass||(e&&(e=d(e)?e:e[t]||e[n]||e[t.split("/").pop().split("?")[0]]),s.instead?s.instead(t,e,i,n,r):(S[s.url]?s.noexec=!0:S[s.url]=1,i.load(s.url,s.forceCSS||!s.forceJS&&"css"==s.url.split(".").pop().split("?").shift()?"c":void 0,s.noexec,s.attrs,s.timeout),(d(e)||d(o))&&i.load(function(){a(),e&&e(s.origUrl,r,n),o&&o(s.origUrl,r,n),S[s.url]=2})))}function e(t,e){function i(i,t){if(i){if(f(i))t||(a=function(){var t=[].slice.call(arguments);c.apply(this,t),l()}),u(i,a,e,0,s);else if(Object(i)===i)for(r in n=function(){var t,e=0;for(t in i)i.hasOwnProperty(t)&&e++;return e}(),i)i.hasOwnProperty(r)&&(!t&&!--n&&(d(a)?a=function(){var t=[].slice.call(arguments);c.apply(this,t),l()}:a[r]=function(e){return function(){var t=[].slice.call(arguments);e&&e.apply(this,t),l()}}(c[r])),u(i[r],a,e,r,s))}else!t&&l()}var n,r,s=!!t.test,o=t.load||t.both,a=t.callback||p,c=a,l=t.complete||p;i(s?t.yep:t.nope,!!o),o&&i(o)}var i,n,r=this.yepnope.loader;if(f(t))u(t,0,r,0);else if(C(t))for(i=0;i<t.length;i++)f(n=t[i])?u(n,0,r,0):C(n)?g(n):Object(n)===n&&e(n,r);else Object(t)===t&&e(t,r)}).addPrefix=function(t,e){_[t]=e},g.addFilter=function(t){T.push(t)},g.errorTimeout=1e4,null==h.readyState&&h.addEventListener&&(h.readyState="loading",h.addEventListener("DOMContentLoaded",n=function(){h.removeEventListener("DOMContentLoaded",n,0),h.readyState="complete"},0)),t.yepnope=a(),t.yepnope.executeStack=v,t.yepnope.injectJs=function(t,e,i,n,r,s){var o,a,c=h.createElement("script");n=n||g.errorTimeout;for(a in c.src=t,i)c.setAttribute(a,i[a]);e=s?v:e||p,c.onreadystatechange=c.onload=function(){!o&&m(c.readyState)&&(o=1,e(),c.onload=c.onreadystatechange=null)},y(function(){o||e(o=1)},n),r?c.onload():w.parentNode.insertBefore(c,w)},t.yepnope.injectCss=function(t,e,i,n,r,s){var o;n=h.createElement("link"),e=s?v:e||p;for(o in n.href=t,n.rel="stylesheet",n.type="text/css",i)n.setAttribute(o,i[o]);r||(w.parentNode.insertBefore(n,w),y(e,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},function(h,e,t){"use strict";var s,o,a=h.event;s=a.special.debouncedresize={setup:function(){h(this).on("resize",s.handler)},teardown:function(){h(this).off("resize",s.handler)},handler:function(t,e){var i=this,n=arguments,r=function(){t.type="debouncedresize",a.dispatch.apply(i,n)};o&&clearTimeout(o),e?r():o=setTimeout(r,s.threshold)},threshold:150};var f="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";h.fn.imagesLoaded=function(i){var n=this,r=h.isFunction(h.Deferred)?h.Deferred():0,s=h.isFunction(r.notify),o=n.find("img").add(n.filter("img")),a=[],c=[],l=[];function u(){var t=h(c),e=h(l);r&&(l.length?r.reject(o,t,e):r.resolve(o)),h.isFunction(i)&&i.call(n,o,t,e)}function d(t,e){t.src!==f&&-1===h.inArray(t,a)&&(a.push(t),e?l.push(t):c.push(t),h.data(t,"imagesLoaded",{isBroken:e,src:t.src}),s&&r.notifyWith(h(t),[e,o,h(c),h(l)]),o.length===a.length&&(setTimeout(u),o.unbind(".imagesLoaded")))}return h.isPlainObject(i)&&h.each(i,function(t,e){"callback"===t?i=e:r&&r[t](e)}),o.length?o.bind("load.imagesLoaded error.imagesLoaded",function(t){d(t.target,"error"===t.type)}).each(function(t,e){var i=e.src,n=h.data(e,"imagesLoaded");n&&n.src===i?d(e,n.isBroken):e.complete&&void 0!==e.naturalWidth?d(e,0===e.naturalWidth||0===e.naturalHeight):(e.readyState||e.complete)&&(e.src=f,e.src=i)}):u(),r?r.promise(n):n};var i=h(e),n=(h(document),e.Modernizr);h.StackSlider=function(t,e){this.$stack=h(e).hide(),this._init(t)},h.StackSlider.defaults={speed:600,easing:"ease-in-out",piles:!0},h.StackSlider.prototype={_init:function(t){this.options=h.extend(!0,{},h.StackSlider.defaults,t),this.support=n.csstransitions&&n.csstransforms3d;this.support&&(this.transEndEventName={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"}[n.prefixed("transition")]+".stackslider",this.transformName={WebkitTransform:"-webkit-transform",MozTransform:"-moz-transform",OTransform:"-o-transform",msTransform:"-ms-transform",transform:"transform"}[n.prefixed("transform")]),this.current=0;var e=this;this.$stack.imagesLoaded(function(){if(e._layout(),0===e.itemsCount)return!1;e._initEvents()})},_layout:function(){var t=this.$stack.children("li");this.itemsCount=t.length,this.$wrapper=h('<div class="st-wrapper"></div>'),this.options.piles&&(this.$lPile=h('<div class="st-stack st-stack-left"></div>'),this.$rPile=h('<div class="st-stack st-stack-right"></div>'),this.$wrapper.append(this.$lPile,this.$rPile)),this.$title=h('<div class="st-title"></div>').appendTo(this.$wrapper),1<this.itemsCount&&(this.$navigation=h("<nav><span>Previous</span><span>Next</span></nav>"),this.$wrapper.append(this.$navigation));var e="";t.each(function(){var t=h(this);e+='<div class="st-item" data-title="'+t.children("div.st-title").html()+'">'+t.children("div.st-item").html()+"</div>"}),this.$listitems=h("<div></div>").html(e),this.$items=this.$listitems.children("div").hide(),this.$wrapper.insertAfter(this.$stack).prepend(this.$listitems),this.$stack.remove(),this.options.piles&&this.$rPile.css("height","+="+5*(this.itemsCount-1)),this._setSize(),this._initItems()},_setSize:function(){var t=1.25*this.$items.height();this.radius=this.$wrapper.width()/2-t/2,this.options.piles&&(this.$lPile.css("width",t),this.$rPile.css("width",t))},_initEvents:function(t){var e=this;this.$navigation.children("span:last").on({"mousedown.stackslider":function(){e._navigate("next"),e.startflowtimeout=setTimeout(function(){e.flow=!0,e._flow("next")},600)}
1,"mouseup.stackslider mouseleave.stackslider":function(){e._mouseup("next")}}).end().children("span:first").on({"mousedown.stackslider":function(){e._navigate("prev"),e.startflowtimeout=setTimeout(function(){e.flow=!0,e._flow("prev")},600)},"mouseup.stackslider mouseleave.stackslider":function(){e._mouseup("prev")}}),i.on("debouncedresize.stackslider",function(){e._setSize(),e._initItems()})},_mouseup:function(t){var e=this;clearTimeout(this.startflowtimeout),clearTimeout(this.flowtimeout),this.flow&&(setTimeout(function(){0!==e.current&&e.current!==e.itemsCount-1&&e._navigate(t)},100),this.flow=!1)},_flow:function(t){var e=this;this._navigate(t,!0),this.flowtimeout=setTimeout(function(){e._flow(t)},150)},_navigate:function(t,e){var i,n,r,s,o=this,a="st-left st-center st-right st-leftflow st-rightflow",c=this.$items.eq(this.current);if("next"===t&&this.current<this.itemsCount-1)++this.current,n="st-left",i=e?"st-leftflow":n,r="right",s="left";else{if(!("prev"===t&&0<this.current))return!1;--this.current,n="st-right",i=e?"st-rightflow":n,r="left",s="right"}this._updatePile(r,"out");var l=this.$items.eq(this.current);c.removeClass(a).addClass(i),this.support?c.on(this.transEndEventName,function(){h(this).removeClass(a).addClass(n).off(o.transEndEventName),o._updatePile(s,"in")}):(c.removeClass(a).addClass(n),this._updatePile(s,"in")),l.show(),setTimeout(function(){(!e||0!==o.current&&o.current!==o.itemsCount-1)&&e||l.removeClass(a).addClass("st-center")},25),clearTimeout(this.titletimeout);var u=this.support?this.options.speed:0;this.titletimeout=setTimeout(function(){o.$title.html(l.data("title"))},u)},_updatePile:function(t,e){if(!this.options.piles)return!1;"right"===t?this.$rPile.css("height","in"===e?"+=5":"-=5"):"left"===t&&this.$lPile.css("height","in"===e?"+=5":"-=5")},_initItems:function(){var s=this,o=this.$wrapper.width(),a=this.$wrapper.height(),t=this.$items.eq(this.current).addClass("st-center").show(),c=this.options.piles?Math.max(this.$lPile.height(),this.$rPile.height())/2:0;this.$title.html(t.data("title")),this.$items.each(function(t){var e=h(this),i=e.height(),n=e.width(),r=a-s.radius-i/2;r=400<=a?15:a/2-i/2,e.index()!==s.current&&e.addClass("st-right"),s.support&&e.css({transition:s.transformName+" "+s.options.speed+"ms "+s.options.easing+", opacity "+s.options.speed+"ms "+s.options.easing,transformOrigin:"50% "+(s.radius+i/2-c)+"px"}),e.css({left:o/2-n/2,top:r})})}};var r=function(t){e.console&&e.console.error(t)};h.fn.stackslider=function(t){var e=h.data(this,"stackslider");if("string"==typeof t){var i=Array.prototype.slice.call(arguments,1);this.each(function(){e?h.isFunction(e[t])&&"_"!==t.charAt(0)?e[t].apply(e,i):r("no such method '"+t+"' for stackslider instance"):r("cannot call methods on stackslider prior to initialization; attempted to call method '"+t+"'")})}else this.each(function(){e?e._init():e=h.data(this,"stackslider",new h.StackSlider(t,this))});return e}}(jQuery,window);

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.