PageSourceSearch

https://www.olympus88.com/files/js/product-list-toolbar-form.min_7d97ea58.js

js olympus88.com collected 2026-10-05 06:20:21 UTC 2,177 bytes, 4 lines download raw bytes

1(function(){'use strict';$.widget('productListToolbarForm',{component:'productListToolbarForm',options:{modeControl:'[data-role="mode-switcher"]',directionControl:'[data-role="direction-switcher"]',orderControl:'[data-role="sorter"]',limitControl:'[data-role="limiter"]',mode:'product_list_mode',direction:'product_list_dir',order:'product_list_order',limit:'product_list_limit',page:'p',modeDefault:'grid',directionDefault:'asc',orderDefault:'position',limitDefault:'9',url:''},create:function(){var self=this,controls=['mode','direction','order','limit'];$.each(controls,function(i,param){self.addEventListener($(self.options[param+'Control'],self.element),self.options[param],self.options[param+'Default']);});},addEventListener:function(element,paramName,defaultValue){var self=this;if(element.is('select')){element.on('change',function(){self.changeUrl(paramName,element.val(),defaultValue);});}else{element.on('click',function(event){event.preventDefault();self.changeUrl(paramName,$(event.currentTarget).data('value'),defaultValue);});}},getUrlParams:function(){var decode=window.decodeURIComponent,urlPaths=this.options.url.split('?'),urlParam
1s=urlPaths[1]?urlPaths[1].split('&'):[],params={},parameters,i;for(i=0;i<urlParams.length;i++){parameters=urlParams[i].split('=');params[decode(parameters[0])]=parameters[1]!==undefined?decode(parameters[1].replace(/\+/g,'%20')):'';}
2return params;},getCurrentLimit:function(){return this.getUrlParams()[this.options.limit]||this.options.limitDefault;},getCurrentPage:function(){return this.getUrlParams()[this.options.page]||1;},changeUrl:function(paramName,paramValue,defaultValue){var urlPaths=this.options.url.split('?'),baseUrl=urlPaths[0],paramData=this.getUrlParams(),currentPage=this.getCurrentPage(),newPage;if(currentPage>1&&paramName===this.options.limit){newPage=Math.floor(this.getCurrentLimit()*(currentPage-1)/ paramValue)+1;if(newPage>1){paramData[this.options.page]=newPage;}else{delete paramData[this.options.page];}}
3paramData[paramName]=paramValue;if(paramValue==defaultValue){delete paramData[paramName];}
4paramData=$.params(paramData);$.breeze.visit(baseUrl+(paramData.length?'?'+paramData:''));}});})();

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.