PageSourceSearch

https://www.catalogue-fr.com/js/extend-cash.min.js

js catalogue-fr.com collected 2026-10-02 12:53:12 UTC 5,060 bytes, 21 lines download raw bytes

1(function(){'use strict';var methods=['click','select','submit','blur','focus'];$.each(methods,function(){var method=this;$.fn[method]=function(callback){if(callback){return this.on(method,callback);}
2return this.each(function(){var event=document.createEvent('Event');event.initEvent(method,true,true);$(this).trigger(event);if(!event.defaultPrevented&&method!=='click'&&this[method]){this[method]();}});};});function isVisible(i,el){return el.offsetWidth||el.offsetHeight||el.getClientRects().length;}
3function isHidden(i,el){return!isVisible(i,el);}
4$.fn.visible=function(){return this.filter(isVisible);};$.fn.isVisible=function(){return this.visible().length>0;};$.fn.hidden=function(){return this.filter(isHidden);};$.fn.isHidden=function(){return this.hidden().length>0;};function inViewport(i,el){var rect=el.getBoundingClientRect();return(rect.top>=0&&rect.left>=0&&rect.bottom<=$(window).height()&&rect.right<=$(window).width());}
5$.fn.inViewport=function(){return this.filter(inViewport);};$.fn.isInViewport=function(){return this.inViewport().length>0;};$.fn.spinner=function(flag,settings){return this.each(function(){if(flag){$.fn.blockLoader().show($(this),settings);}else{$.fn.blockLoader().hide($(this));}});};$.fn.fadeIn=$.fn.show;$.fn.fadeOut=$.fn.hide;$.fn.scrollTop=function(val){var el=this.get(0),isWindow=el===window,prop=isWindow?'pageYOffset':'scrollTop';if(val===undefined){return el?el[prop]:null;}
6if(el){if(isWindow){el.scroll({top:val});}else{el[prop]=val;}}
7return this;};$.fn.applyBindings=function(){return this.each(function(){ko.applyBindings(ko.contextFor(this),this);});};$.fn.is=_.wrap($.fn.is,function(original,selector){switch(selector){case':visible':return this.isVisible();case':hidden':return this.isHidden();case':selected':return this.filter(function(){return this.selected;}).length>0;case':checked':return this.filter(function(){return this.checked;}).length>0;}
8return original.bind(this)(selector);});$.fn.data=_.wrap($.fn.data,function(original,key,value){var collection=this,result,cleanKey,keys=[];if(value===undefined){this.each(function(){if(this.__breeze&&this.__breeze[key]){result=this.__breeze[key];return false;}});if(result!==undefined){return result;}}else if(value instanceof Node||value instanceof $){return this.each(function(){this.__breeze=this.__breeze||{};this.__breeze[key]=value;});}
9result=original.apply(this,Array.prototype.slice.call(arguments,1));if(result===undefined){cleanKey=key.replace(/^[^A-Z]+/,'');keys=[key,cleanKey,cleanKey.charAt(0).toLowerCase()+cleanKey.slice(1)];$.each(keys,function(i,widgetName){if(typeof collection[widgetName]!=='function'){return;}
10result=collection[widgetName]('instance');return false;});}
11return result;});$.fn.hover=function(mouseenter,mouseleave){this.on('mouseenter',mouseenter).on('mouseleave',mouseleave);};$.fn.zIndex=function(zIndex){var elem=$(this[0]),position,value;if(zIndex!==undefined){return this.css('zIndex',zIndex);}
12if(!this.length){return 0;}
13while(elem.length&&elem[0]!==document){position=elem.css('position');value=parseInt(elem.css('zIndex'),10);elem=elem.parent();if(position==='static'){continue;}
14if(!isNaN(value)&&value!==0){return value;}}
15return 0;};$.fn.contstraint=function(){var viewportWidth=$(window).width(),width=this.outerWidth(),left,right;if(!this.length){return this;}
16left=Math.round(this.offset().left);right=left+width;if(left<0){this.css({left:'auto',right:parseFloat(this.css('right'))+(left-10)});}else if(left>0&&right>viewportWidth){this.css({left:'auto',right:Math.min(parseFloat(this.css('right'))+left,0)});}
17return this;};$.fn.var=function(name,value){var el=this[0];if(value!==undefined){el.style.setProperty(name,value);return this;}
18return getComputedStyle(el).getPropertyValue(name);};$.proxy=_.bind;$.params=function(params,prefix){if(params instanceof FormData){return new URLSearchParams(params).toString();}
19var query=Object.keys(params).map(function(key){var value=params[key];if(params.constructor===Array){key=`${prefix}[]`;}else if(params.constructor===Object){key=(prefix?`${prefix}[${key}]`:key);}
20if(typeof value==='object'){return $.params(value,key);}else{return`${key}=${encodeURIComponent(value)}`;}});return[].concat.apply([],query).join('&');};$.param=$.params;$.parseQuery=function(query){var result={};query=query||window.location.search;query=query.replace(/^\?/,'');$.each(query.split('&'),function(i,param){var pair=param.split('='),key=decodeURIComponent(pair.shift().replace('+',' ')).toString(),value=decodeURIComponent(pair.length?pair.join('=').replace('+',' '):null);result[key]=value;});return result;};$.extendProps=function(own,inherited){var destination={};$.each(own,function(key,value){if($.isPlainObject(value)){destination[key]=$.extendProps(own[key],inherited[key]||{});}else{destination[key]=value;}});$.each(inherited,function(key,value){if(typeof own[key]!=='undefined'){return;}
21if($.isPlainObject(value)){destination[key]=$.extendProps(own[key]||{},inherited[key]);}else{destination[key]=value;}});return destination;};$.focusTrap=focusTrap;})();

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.