PageSourceSearch

https://www.feim.sk/scripts/_main.js.min.js?1791356261

js feim.sk collected 2026-10-07 20:15:21 UTC 9,749 bytes, 38 lines download raw bytes

1$.extend({nette:{updateSnippet:function(id,html){$("#"+id).html(html);},success:function(payload){if(typeof payload==='undefined'){return;}
2if(typeof payload.redirect!=='undefined'){if(payload.redirect){window.location.href=payload.redirect;return;}}
3if(typeof payload.snippets!=='undefined'){if(payload.snippets){for(var i in payload.snippets){$.nette.updateSnippet(i,payload.snippets[i]);}}}}},slider:function(){}});$.ajaxSetup({success:$.nette.success,dataType:"json"});$.fn.extend({slider:function(){}});$.fn.extend({ajaxSubmit:function(callback){var form;var sendValues={};if(this.is(":submit")){form=this.parents("form");var submitName=this.attr("name");var submitValue=this.val()||"";}else if(this.is("form")){form=this;}else{return null;}
4if(form.get(0).onsubmit&&form.get(0).onsubmit()===false){return null;}
5var hasFile=form.find('input[type="file"]').length>0;if(hasFile){var formData=new FormData(form.get(0));if(submitName){formData.append(submitName,submitValue);}
6for(const[k,v]of formData.entries()){console.log(k,v);}
7return $.ajax({url:form.attr("action"),data:formData,type:form.attr("method")||"post",processData:false,contentType:false,complete:function(){form.data("ajaxSubmitCalled",false);},success:typeof callback==='function'?callback:null});}
8var values=form.serializeArray();for(var i=0;i<values.length;i++){var name=values[i].name;if(name in sendValues){var val=sendValues[name];if(!(val instanceof Array)){val=[val];}
9val.push(values[i].value);sendValues[name]=val;}else{sendValues[name]=values[i].value;}}
10if(submitName){if(sendValues[submitName]!==undefined){var v=sendValues[submitName];if(!(v instanceof Array)){v=[v];}
11v.push(submitValue);sendValues[submitName]=v;}else{sendValues[submitName]=submitValue;}}
12return $.ajax({url:form.attr("action"),data:sendValues,type:form.attr("method")||"get",complete:function(){form.data("ajaxSubmitCalled",false);},success:typeof callback==='function'?callback:null});}});if(!Array.prototype.indexOf){Array.prototype.indexOf=function(obj,start){for(var i=(start||0),j=this.length;i<j;i++){if(this[i]===obj){return i;}}
13return-1;};}
14if(!String.prototype.startsWith){String.prototype.startsWith=function(searchString,position){position=position||0;return this.indexOf(searchString,position)===position;};}
15if(!Array.prototype.includes){Array.prototype.includes=function(search){for(var i in this){if(this[i]===search){return true;}}
16return false;};}
17$.getCachedScript=function(url,success){return $.ajax({dataType:"script",cache:true,url:url,success:success});};function up(){this.validateSelector=function(sel){return!(sel instanceof $)?$(sel):sel;};this.elExist=function(sel){return this.validateSelector(sel).length>0;};this.scrollToEl=function(el,offset=undefined,callback=undefined){let elToScroll=this.validateSelector(el);if(this.elExist(elToScroll)){let
18topOffset=elToScroll.offset().top,menu=$('.MenuOnTop');if(this.elExist(menu)){topOffset-=this.col.xs?menu.height():menu.outerHeight();}
19if(offset!==undefined){topOffset+=offset;}
20$('html, body').animate({scrollTop:topOffset},500,'swing',callback);}
21return false;};this.elVisibleOnScreen=function(el){el=this.validateSelector(el);if(!(el instanceof $)){return false;}
22let
23docViewTop=$(window).scrollTop(),docViewBottom=docViewTop+$(window).outerHeight(),elTop=el.offset().top,elBot=elTop+el.outerHeight();return!((elBot>docViewBottom&&elTop>docViewBottom)||(elBot<docViewTop&&elTop<docViewTop));};this.elVisible=function(el){var el=this.validateSelector(el);return el.is(':visible')&&el.css('visibility')!=='hidden'&&el.css('opacity')!=='0';};this.formatNumber=function(n,s){if(isNaN(n)){return n;}
24if(typeof n==='string'){n=n.replace(',','.');}
25var rP=isNaN(rP=Math.abs(rP))?0:rP,dP=typeof currency.decimal_point==='undefined'?",":currency.decimal_point,tSep=typeof currency.thousands_separator==='undefined'?" ":currency.thousands_separator,sign=n<0?"-":"",i=String(parseInt(n=Math.abs(Number(n)||0).toFixed(rP))),j=(j=i.length)>3?j%3:0,rP=Math.abs(n-i)===0?0:rP;return sign+(j?i.substr(0,j)+tSep:"")+i.substr(j).replace(/(\d{3})(?=\d)/g,"$1"+tSep)+(rP?dP+Math.abs(n-i).toFixed(rP).slice(2):"");};this.formatCurrency=function(n,f){var sL=typeof currency.symbol_left
25==='undefined'?"":currency.symbol_left,sR=typeof currency.symbol_right==='undefined'?"":currency.symbol_right;if(f!==false){n=this.formatNumber(n);}
26return(sL.length>0?sL+" ":"")+n+(sR.length>0?" "+sR:"");};this.dump=function(){$.each(arguments,function(i,e){console.log(e);});};this.on=function(e,handler){this._body.on('up.'+e,handler);};this.trigger=function(e){var params=[];for(var i=1;i<arguments.length;i++){params.push(arguments[i]);}
27this._body.trigger('up.'+e,params);};this.off=function(e){this._body.off('up.'+e);};this.sleep=function(ms){var start=new Date().getTime();for(var i=0;i<1e7;i++){if((new Date().getTime()-start)>ms){break;}}};this.setCookie=function(cname,cvalue,exseconds){var d=new Date();d.setTime(d.getTime()+(exseconds*1000));let cookieValue=cname+"="+cvalue+"; expires="+d.toUTCString()+"; path=/";if(window.hasOwnProperty('isLoadedInDesigner')&&window.isLoadedInDesigner===true){cookieValue+='; SameSite=None; Secure';}
28document.cookie=cookieValue;};this.getCookie=function(cname){var name=cname+"=",ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)===' '){c=c.substring(1);}
29if(c.indexOf(name)===0){return c.substring(name.length,c.length);}}
30return"";};this.isSlider=function(){return this.elExist('#price-slider, #price-slider-2, .AttributeSlider');};this.error=function(){return function(){console.log(error_ajax);};};this._observers=[];this.observe=function(items,callback){if(!('IntersectionObserver'in window)){items.each(function(){callback(this);});}else{var observer=new IntersectionObserver(function(entries){$.each(entries,function(i,o){if(o.intersectionRatio>0){if(callback(o.target)){observer.unobserve(o.target);}}});},{rootMargin:'150px 0px'});items.each(function(){observer.observe(this);});this._observers.push(observer);}};this.unobserve=function(){$.each(this._observers,function(i,o){o.disconnect();});this._observers=[];};this.ajaxRequest;this.width;this.isTouchDevice='ontouchstart'in document.documentElement;this.spinnerDisabled=false;this._body=$('body');function getCssNumber(varName,fallback){const computedStyle=getComputedStyle(document.documentElement);const raw=computedStyle.getPropertyValue(varName);const num=parseFloat(raw);return Number.isFinite(num)?num:fallback;}
31this.breakpoint={mobile:getCssNumber('--breakpoint-sm',576),tablet:getCssNumber('--breakpoint-md',768),desktop:getCssNumber('--breakpoint-lg',992),gridFloat:getCssNumber('--breakpoint-lg',992),largeDesktop:getCssNumber('--breakpoint-xl',1204),largeDesktop1:1321,largeDesktop2:getCssNumber('--breakpoint-xxl',1502),largeDesktop3:1811,largeDesktop4:2116,largeDesktop5:2425,largeDesktop6:2734,isGridFloat:false};this.cls={hidden:'hidden',hide:'hide',active:'active',disabled:'disabled',product:'page-product',compare:'page-compare',search:'page-search',favourites:'page-favourites',watched:'page-watched',profile:'page-profile',registration:'page-registration',cart:'page-cart',shipment:'page-shipment',checkout:'page-checkout',paymentGateway:'page-payment-gateway',recieved:'page-recieved',rating:'page-rating'};this.col={};this.pluggins={};this.inits={bootstrap:false,typeahead:false};this.filterSettings={firstLoad:true,timer:null,horizontal:'#filter',vertical:'#filter-2',priceSlider:'#price-slider, #price-slider-2',URL:typeof filterURL==='undefined'?'':filterURL,priceDefault:true,defMinPrice:typeof minPrice==='undefined'?0:minPrice,defMa
31xPrice:typeof maxPrice==='undefined'?0:maxPrice,defSort:typeof defaultSorting==='undefined'?'recommended':defaultSorting};this.filters={page:1,sort:this.filterSettings.defSort,min_price:this.filterSettings.defMinPrice,max_price:this.filterSettings.defMaxPrice};this.setFilter=function(key,value){var o={};o[key]=value;up.setFilters(o);};this.setFilters=function(filters){$.each(filters,function(id,value){up.filters[id]=value;});this.trigger('filtersChange');};var self=this;$('.AttributeSlider').each(function(){var $this=$(this),attribute_id=$this.data('attribute_id');self.filterSettings['attrSl-'+attribute_id]=self.filters['attrSl-'+attribute_id]=$this.data('min')+'-'+$this.data('max');});const DebounceCancellationTokens=new Map();this.debounceWithToken=function(token,handler,timeout=undefined,...args){if(typeof handler!=='function'){throw new TypeError('handler must be a function.');}
32if(timeout!==undefined&&typeof timeout!=='number'){throw new TypeError('timeout must be a number.');}
33if(DebounceCancellationTokens.has(token)){clearTimeout(DebounceCancellationTokens.get(token));}
34const timeoutId=setTimeout((token,handler,...args)=>{DebounceCancellationTokens.delete(token);handler(...args);},timeout,token,handler,...args);DebounceCancellationTokens.set(token,timeoutId);return timeoutId;}
35this.init=function(){this.width=window.innerWidth;this.breakpoint.isGridFloat=this.width>=this.breakpoint.gridFloat;this.col={xs:false,ms:false,sm:false,md:false,lg:false};if(this.width<this.breakpoint.mobile){this.col.xs=true;}else if(this.width<this.breakpoint.tablet&&this.width>=this.breakpoint.mobile){this.col.ms=true;}else if(this.width<this.breakpoint.desktop&&this.width>=this.breakpoint.tablet){this.col.sm=true;}else if(this.width<this.breakpoint.largeDesktop&&this.width>=this.breakpoint.desktop){this.col.md=true;}else{this.col.lg=true;}
36this.pluggins={spinnerUpDownButtons:true,imageZoom:true,sidebarMenu:true,jqScrollbar:true};if(this.col.xs||this.col.ms||this.col.sm){this.pluggins.imageZoom=false;}else if(this.col.lg){this.pluggins.sidebarMenu=false;}
37this.pluggins.imageZoom=true;};}
38var up=new up();up.init();

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.