PageSourceSearch

https://teich-filter.de/js/smartstore.core.js?v=6.4.52

js teich-filter.de collected 2026-10-08 09:39:20 UTC 14,465 bytes, 477 lines download raw bytes

1
2(function($,undefined){
3var shakeOpts={direction:"right",distance:4,times:3,easing:"easeInOutCubic"};
4$.Utils={
5doQuickSearch:function(frm){
6var box=frm.find("input.searchterm");
7var value=box.val();
8if(_.isBlank(value)){
9frm.stop(true,true)
10.effect("shake",shakeOpts,100,function(){box.trigger("focus").removeClass("placeholder")});
11}
12else{
13SMShop.xml.setAttribute('search-query','searchterm='+_.encodeUri(value)+'&dosearch=1');
14SMShop.update();
15location.href=$.Cfg.searchPage;
16}
17return false;
18},
19showInfoPopup:function(pagehref,popwidth,popheight){
20var opts={
21width:popwidth||600,
22height:popheight||500,
23showScroll:true,
24targetUrl:pagehref,
25isResizeable:true
26};
27showInfoPopup2(pagehref,opts);
28},
29showInfoPopup2:function(pagehref,options){
30var opts=$.extend({},$.Cfg.infoPopupOptions,options||{});
31var oPopup=new SMPopup();
32oPopup.pWidth=opts.width;
33oPopup.pHeight=opts.height;
34$.extend(oPopup,opts);
35if(opts.left)oPopup.pLeft=opts.left;
36if(opts.top)oPopup.pTop=opts.top;
37oPopup.targetUrl=pagehref;
38oPopup.openPage();
39},
40formatPrice:function(price,taxKey){
41var inGross=toBool(SMShop.getAttribute(_SMAInGross));
42var outGross=toBool(SMShop.getAttribute(_SMAOutGross));
43oPrice=new cSMPrice();
44oPrice.calculate(price,!inGross,taxKey);
45return cprimary.format(outGross?oPrice.gross:oPrice.net,SM_CGROUP+SM_CSYMBOL);
46},
47getVar:function(name){
48var result=$_GET[name];
49if(result){
50return result.replace("/","%2F").replace("+","%2B");
51}
52else{
53return "";
54}
55},
56initGetVars:function(getVars,arrTarget){
57var arrVars=arrVal=null;
58if(!_.isEmpty(getVars.length)){
59arrVars=getVars.replace(/\?/g,'').split('&');
60for(var i=0;i<arrVars.length;++i){
61arrVal=arrVars[i].split('=');
62arrTarget[arrVal[0].toString()]=unescape(arrVal[1]).toString();
63}
64}
65return arrTarget;
66}
67};
68window.showInfoPopup=$.Utils.showInfoPopup;
69window.showInfoPopup2=$.Utils.showInfoPopup2;
70window.printBackButton=function(){return ""};
71window.printOrderId=function(){return ""};
72window.formatPrice=$.Utils.formatPrice;
73window.getVar=$.Utils.getVar;
74window.initGetVars=$.Utils.initGetVars;
75})(jQuery);
76var $_GET=[];
77window.initGetVars(window.location.search.toString(),$_GET);
78(function($){
79$.provide("$.Renderers");
80var Paginator=$.Renderers.PaginatorRenderer=function(options){
81this.options={
82pageCount:1,
83currentPage:1,
84navbarAlign:"center",
85maxElements:12,
86target:0,
87linkClasses:null
88};
89if(options)this.options=$.extend(this.options,options);
90this.htmlCode="";
91}
92Paginator.fn=Paginator.prototype={
93getHtml:function(){
94var	opts=this.options,
95link='';
96this.htmlCode='';
97if(opts.pageCount>1){
98this.htmlCode+='<nav class="paginator-init" data="{maxElements:{0}, horizontalAlign:\'{1}\'}"><ul>'.format(opts.maxElements,opts.navbarAlign);
99for(var i=1;i<=opts.pageCount;++i){
100link=(opts.target==='javascript:void(0)'?opts.target:'{0}={1}'.format(opts.target,i));
101this.htmlCode+='<li{0}><a href="{1}" data-page="{3}"{2}>{3}</a></li>'.format((opts.currentPage==i)?' class="selected"':'',
102link,_.setAttr('class',opts.linkClasses),i);
103}
104this.htmlCode+='</ul></nav>';
105}
106return this.htmlCode;
107}
108};
109var BasketPanel=$.Renderers.BasketPanelRenderer=function(options){
110this.options={
111da:null,
112caption:'',
113showCaption:true,
114showQtyField:true,
115showAddToBag:true,
116showDetail:true,
117showQtyUnit:true,
118displaySmallInfoButton:true,
119displaySmallAddButton:true,
120isSmallAddCaption:true,
121onClickHandler:true,
122detailsLink:''
123};
124if(options)this.options=$.extend(this.options,options);
125this.htmlCode="";
126}
127BasketPanel.fn=BasketPanel.prototype={
128getHtml:function(){
129var	opts=this.options,
130da=opts.da;
131var pkid=parseInt(da.val("PKID")),
132QtyStep=parseInt(da.val("OrderQtyStep")),
133QtyMin=parseInt(da.val("MinOrderQty")),
134QtyMax=parseInt(da.val("MaxOrderQty")),
135QtyType=parseInt(da.val("OQType")),
136QtyDef=parseInt(da.val("OQDefValue")),
137OptCount=parseInt(da.val("OQDDOptionsCount")),
138QtyUnit=da.val("QtyUnit"),
139showPanel=(parseInt(da.val("PricingConfiguration"))==0),
140sButtonAlt=getLocalValue('btn.add-to-bag'),
141sDetailCaption=getLocalValue('btn.details'),
142sArrayIndex="",
143onClick='';
144if(showPanel&&opts.showAddToBag){
145if(opts.showQtyField&&opts.showCaption){
146this.htmlCode+='<div class="pnl-addtobasket-caption">{0}</div>'.format(opts.caption);
147}
148this.htmlCode+='<div class="pnl-addtobasket" class="noprint">';
149QtyDef=QtyDef>QtyMin?QtyDef:QtyMin;
150if(opts.showQtyField){
151this.htmlCode+='<div class="pnl-quantity ui-corner-all">';
152switch(QtyType){
153case 0:
154this.htmlCode+='<input class="pnl-addtobasket-qty prompt" id="PD{0}Amount" type="text" size="1" value="{1}" onchange="this.value=fnSMNum(this.value)">'.format(pkid,QtyDef);
155break;
156case 1:
157this.htmlCode+='<input class="pnl-addtobasket-qty" type="number" min="{0}"{1} step="{2}" id="PD{3}Amount" size="5" value="{4}" onchange="this.value=fnSMNum(this.value)">'.format(
158Math.max(QtyMin,QtyDef)||1,
159(QtyMax>0&&QtyMax>=QtyMin)?' max="'+QtyMax+'"':'',
160QtyStep||1,
161pkid,
162QtyDef);
163break;
164case 2:
165this.htmlCode+='<select class="pnl-addtobasket-qty" id="PD'+pkid+'Amount">';
166for(var i=QtyStep;i<=parseInt(OptCount*QtyStep);i+=QtyStep){
167this.htmlCode+='<option value="'+i+'"';
168if(i==QtyDef)this.htmlCode+=' selected';
169this.htmlCode+='>'+i;
170};
171this.htmlCode+='</select>';
172break;
173};
174if(opts.showQtyUnit)
175this.htmlCode+='<span class="pnl-addtobasket-qtyunit">&nbsp;{0}&nbsp;</span>'.format(QtyUnit);
176this.htmlCode+='</div>';
177};
178this.htmlCode+='<span style="vertical-align:middle">';
179if(!opts.showQtyField)
180this.htmlCode+='<input id="PD{0}amount" type="hidden" value="{1}">'.format(pkid,QtyDef);
181if(opts.onClickHandler){
182onClick=' onclick="SMShop.basket.add(SMProductList[{0}])"'.format(pkid);
183}
184this.htmlCode+='<a class="btn special addtobasket" href="javascript:void(0);" alt="'+sButtonAlt+'" title="'+sButtonAlt
185+'" data="{text:'+String(!opts.displaySmallAddButton).toLowerCase()+', icons:{primary:\'ui-icon-cart\'}}"'+onClick+' data-id="'
186+pkid+'">'+(opts.isSmallAddCaption?getLocalValue('btn.add-to-bag-short'):getLocalValue('btn.add-to-bag'))+'</a>';
187this.htmlCode+='</span>';
188if(opts.showDetail){
189this.htmlCode+='<span style="padding-left:4px"><a class="btn" id="btn-product-details" data="{text:{0}, icons:{secondary:\'ui-icon-info\'}}" href="{1}" title="{2}">{2}</a></span>'.format(String(!opts.displaySmallInfoButton).toLowerCase(),opts.detailsLink==''?'product:'+pkid:opts.detailsLink,sDetailCaption);
190};
191this.htmlCode+='</div>';
192}else{
193if(opts.showDetail){
194this.htmlCode+='<div class="noprint"><a class="btn" id="btn-product-details" data="{text:{0}, icons:{secondary:\'ui-icon-info\'}}" href="{1}" title="{2}">{2}</a></div>'.format(String(!opts.displaySmallInfoButton).toLowerCase(),opts.detailsLink==''?'product:'+pkid:opts.detailsLink,sDetailCaption);
195};
196};
197return this.htmlCode;
198}
199};
200})(_inBrowser?jQuery:global['System']);
201(function($){
202$.provide("$.Renderers");
203var List=$.Renderers.ListRenderer=function(options){
204this.options={
205itemsInRow:3,
206itemsInPage:9,
207sortBy:"manufacturer",
208alternateItems:false,
209showRowSeparator:true,
210showItemBorders:true,
211animateItemOnHover:true,
212headerText:"",
213footerText:"",
214navBarHtml:"",
215navBarPos:"bottom",
216navBarAlign:"right",
217groupBy:"",
218contextType:"xml"
219};
220if(options)this.options=$.extend(this.options,options);
221this.settings={
222plRow:{css:"",className:"pl-row clearfix"},
223plCellParent:{css:"",className:"pl-cell-parent"},
224plCell:{css:"",className:"pl-cell content-fill"},
225plElement:{css:"",className:"pl-element"}
226};
227this.pageCount=1;
228this.htmlCode="";
229}
230List.fn=List.prototype={
231getHtml:function(dataAdapter,itemCallback,currentPage){
232var	opts=this.options,
233settings=this.settings,
234row=[],
235item={},
236itemCount=0,
237itemsInRowCount=0,
238isLastRow=false,
239isEndOfRow=false;
240if(opts.itemsInPage!=-1){
241var da=dataAdapter;
242this.pageCount=da.pageCount();
243if(da.hasData()){
244da.pageSize(opts.itemsInPage);
245da.absolutePage(currentPage);
246}
247if(opts.itemsInRow>1){
248settings.plCell.css="float: left;width: {0}%;".format((100/opts.itemsInRow).toFixed(3));
249}
250if(opts.showItemBorders){
251settings.plElement.className+=" border";
252if(opts.animateItemOnHover)
253settings.plElement.className+=" animate";
254}
255this.renderNavBar("top");
256this.renderHeaderText();
257var currentPageSize=this.calculateCurrentPageSize(da.length(),da.pageCount(),da.pageSize(),da.absolutePage());
258for(var i=0,length=da.pageSize();i<length;i++){
259if(!da.eof()||(opts.itemsInRow==0&&!da.eof()&&da.pos()<50)){
260this.tempCellClasses=settings.plCell.className;
261this.tempElementClasses=settings.plElement.className;
262if(itemsInRowCount==0){
263this.htmlCode+='<div class="pl-row clearfix">';
264this.tempCellClasses+=" alpha";
265}
266else if(itemsInRowCount+1==opts.itemsInRow){
267this.tempCellClasses+=" omega";
268}
269this.tempElementClasses+=(opts.alternateItems&&(i%2!=0)?" alt":"");
270this.renderCell(da,itemCallback);
271isEndOfRow=((itemsInRowCount+1)==opts.itemsInRow||(i+1)==currentPageSize||opts.itemsInRow==0&&(da.pos()+1)==da.length());
272if(isEndOfRow){
273this.htmlCode+='</div>';
274this.renderRowSeparator(opts.showRowSeparator,i+1==da.pageSize());
275itemsInRowCount=-1;
276}
277itemsInRowCount++;
278da.moveNext();
279}
280}
281if(opts.itemsInRow==0){
282var controls="";
283controls+='<a class="sb invisible pl-scroll-prev" data="{direction:\'left\', enabled: false}" href="#">Zurück</a>';
284controls+='<a class="sb invisible pl-scroll-next" data="{direction:\'right\'}" href="#">Weiter</a>';
285this.htmlCode+=controls;
286}
287this.renderFooterText();
288this.renderNavBar("bottom");
289}
290return this.htmlCode;
291},
292renderCell:function(da,itemCallback){
293var htmlCode='<div class="{0}" style="{1}" data-pkid="{2}">'.format(this.tempCellClasses,this.settings.plCell.css,da.val("PKID"));
294htmlCode+='<article class="{0}">'.format(this.tempElementClasses);
295htmlCode+=itemCallback.call(this,da);
296htmlCode+='</article>';
297htmlCode+='</div>';
298this.htmlCode+=htmlCode;
299},
300renderRowSeparator:function(show,isLastRow){
301if(show&&!isLastRow)
302this.htmlCode+="<hr />";
303},
304renderHeaderText:function(){
305if(!_.isBlank(this.options.headerText))
306this.htmlCode+='<div class="list-header x-ui-widget-content ui-corner-all ac bold">{0}</div>'.format(this.options.headerText);
307},
308renderFooterText:function(){
309if(!_.isBlank(this.options.footerText))
310this.htmlCode+='<div class="list-footer x-ui-widget-content ui-corner-all ac">{0}</div>'.format(this.options.footerText);
311},
312renderNavBar:function(position){
313var opts=this.options;
314if(this.pageCount>1&&
315(position==='top'&&(opts.navBarPos==='top'||opts.navBarPos==='both'))||
316(position==='bottom'&&(opts.navBarPos==='bottom'||opts.navBarPos==='both'))){
317this.htmlCode+='<div align="{0}" id="paginator-{1}">{2}</div>'.format(opts.navBarAlign,position,opts.navBarHtml);
318}
319},
320calculateCurrentPageSize:function(recordCount,pageCount,pageSize,absolutePage){
321if(pageCount==absolutePage&&(recordCount%pageSize!=0)){
322return recordCount%pageSize;
323}
324else{
325return pageSize;
326}
327}
328};
329})(_inBrowser?jQuery:global['System']);
330(function($){
331$.provide("$.DataAdapters");
332var da=$.DataAdapters.JsonAdapter=function(arr,pageSize){
333this.type=function(){return "json"};
334this.storage=arr;
335this._curSlice=arr;
336this._idx=0;
337this._pageSize=pageSize||0;
338this._pageCount=1;
339this._absolutePage=1;
340this._refreshSlice=function(){
341var isPageable=(this._pageSize>0&&_.isArray(this.storage)&&this.storage.length>0);
342if(isPageable){
343this._pageCount=Math.ceil(this.storage.length/this._pageSize);
344var startPos=(this._absolutePage-1)*this._pageSize;
345var endPos=startPos+this._pageSize;
346this._curSlice=this.storage.slice(startPos,endPos);
347}
348else{
349this._curSlice=arr;
350this._pageCount=1;
351this._absolutePage=1;
352}
353};
354this._refreshSlice();
355}
356da.fn=da.prototype={
357hasData:function(){
358return(_.isArray(this.storage)&&this.storage.length>0);
359},
360dispose:function(){
361},
362length:function(){
363return this.storage.length;
364},
365pos:function(idx){
366if(!_.isNumber(idx)){
367return this._idx;
368}
369this._idx=idx;
370},
371bof:function(){return this._idx<0;},
372eof:function(){return this._idx>=this._curSlice.length;},
373moveFirst:function(){this._idx=0;},
374moveNext:function(){this._idx++;},
375moveLast:function(){this._idx=this._curSlice.length-1;},
376movePrev:function(){this._idx--;},
377pageCount:function(){
378return this._pageCount;
379},
380pageSize:function(size){
381if(!_.isNumber(size)){
382return this._pageSize;
383}
384if(size!==this._pageSize){
385this._pageSize=size;
386this._absolutePage=1;
387this._refreshSlice();
388}
389},
390absolutePage:function(idx){
391if(!_.isNumber(idx)){
392return this._absolutePage;
393}
394var isValidIndex=(idx>=1&&idx<=this._pageCount&&idx!==this._absolutePage);
395if(isValidIndex){
396this._absolutePage=idx;
397this._refreshSlice();
398}
399},
400val:function(idx){
401return this._curSlice[this._idx][idx];
402}
403}
404})(_inBrowser?jQuery:global['System']);
405function ScriptInclude(){
406this.src="";
407this.args=new Array();
408this.set=ScriptInclude_Set;
409};
410function ScriptInclude_Set(){
411var tmpHTML="";
412var tmpArgs="";
413tmpHTML="<script type='text\/javascript'"
414+" src='"+this.src+"?";
415for(var i=0;i<this.args.length;i++){
416tmpArgs+=this.args[i].replace("/","\/")+"&";
417};
418tmpHTML+=tmpArgs;
419tmpHTML+="'><\/script>";
420document.write(tmpHTML);
421};
422function createInputElement(name,value){
423var InputElementItemNumber;
424InputElementItemNumber=document.createElement('input');
425InputElementItemNumber.name=name;
426InputElementItemNumber.setAttribute("value",value);
427InputElementItemNumber.type="hidden";
428return InputElementItemNumber;
429};
430;(function($){
431$.fn.adjustContainerHeight=function(height){
432if(height==-1)return;
433if(height==0){
434height=this.max(function(){return $(this).outerHeight(true);});
435}
436this.each(function(index){
437var $this=$(this),
438verticalCushioning=$this.verticalCushioning(),
439targetHeight=height-verticalCushioning,
440header=$this.children(".header"),
441body=$this.children(".body"),
442footer=$this.children(".footer");
443if(body.length==0)return;
444if(header.length!=0)targetHeight-=header.outerHeight(true);
445if(footer.length!=0)targetHeight-=footer.outerHeight(true);
446targetHeight-=body.verticalCushioning();
447body.height(targetHeight);
448});
449}
450})(jQuery);
451;(function($){
452$(function(){
453var html=$("html");
454$(window).load(function(){
455html.removeClass("loading").addClass("loaded");
456var doEllipsis=function(){
457$('.ellipsis').ellipsis();
458};
459_.defer(doEllipsis,100);
460if($.Grid.stretchLevel>1){
461var lazyEllipsis=_.debounce(doEllipsis,300);
462$(window).bind('resize',lazyEllipsis);
463}
464$('#old-browser-hint').html('Ihr Browser ist nicht aktuell! Für eine optimale Darstellung dieses Shops führen Sie bitte ein Update durch.');
465});
466html.removeClass("not-ready").addClass("ready");
467if(html.hasClass("ie7")){
468$.fixIE7ZIndexBug();
469}
470$.metadata.setType("attr","data");
471$.extend($.ui.dialog.prototype.options,{
472closeText:T['lbl.close'],
473show:'scale',
474zIndex:999999
475});
476});
477})(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.