PageSourceSearch

https://www.resanoma.com/wp-content/cache/minify/1b110.js?x74498

js resanoma.com collected 2026-10-05 03:40:48 UTC 8,006 bytes, 25 lines download raw bytes

1(function($){window.SelectBoxManager=function(options){var sbs=[],self=this;$(document).click(function(e){if($(e.target).parents(".customSelect").size()===0){self.close();}});this.add=function(sb){sbs.push(sb);};this.close=function(){$(sbs).each(function(){this.close();});};};var sb_manager=new SelectBoxManager();window.SelectBox=function(options){var self=this,cfg=$.extend(true,{manager:sb_manager,customScrollbar:true,zIndex:100,changeCallback:function(val){},truncate:function(str){return str;},scrollOptions:{}},options);var $customSelect,$selectedValue,$selectValueWrap,$selectList,$dl,$options,FOCUSED_CLASS="focused",SELECTED_CLASS="selected",SELECT_OPEN_CLASS="select-open",DISABLED_CLASS="disabled",HOVERED_CLASS="hovered",_useDefaultBehavior=false,_isOpen=false,_isEnabled=true,_isFocused=false,_selectedValue="";function init(){_useDefaultBehavior=navigator.userAgent.match(/iPad|iPhone|Android|IEMobile|BlackBerry/i)?true:false;if(_useDefaultBehavior){cfg.selectbox.addClass("use-default");}
2var selectId="",selectedClass=cfg.selectbox.attr("class");if(typeof cfg.selectbox.attr("id")!=="undefined"){selectId='id="select-'+cfg.selectbox.attr("id")+'"';}
3cfg.selectbox.wrap('<div  tabindex="0" class="customSelect '+selectedClass+'" '+selectId+' />');$customSelect=cfg.selectbox.parents(".customSelect");$options=cfg.selectbox.find("option");var selectListHTML=['<div class="selectList"><div class="selectListOuterWrap"><div class="selectListInnerWrap"><div class="selectListTop"></div><dl>'];selectListHTML.push(_renderOptions());selectListHTML.push('</dl><div class="selectListBottom"></div></div></div></div>');$customSelect.append('<div class="selectValueWrap"><div class="selectedValue">'+_selectedValue+'</div> <span class="caret"></span> </div>'+selectListHTML.join(""));$dl=$customSelect.find("dl");$selectedValue=$customSelect.find(".selectedValue");$selectValueWrap=$customSelect.find(".selectValueWrap");$selectList=$customSelect.find(".selectList");$customSelect.width(cfg.width);$dl.width(cfg.width-2);_bindEvents();sb_manager.add(self);}
4function _bindEvents(){$selectValueWrap.click(function(){if(_isOpen){cfg.selectbox.focus();self.close();}else if(_isEnabled){if(_useDefaultBehavior){cfg.selectbox.focus();}else{self.open();}}});$dl.click(function(e){var $target=$(e.target);if($target.is("dd")||$target.parents("dd")){if(e.target.tagName.toLowerCase()!="dd"){$target=$target.parents("dd");}
5if(!$target.hasClass(DISABLED_CLASS)&&$target.get(0)){self.jumpToIndex($target.get(0).className.split(" ")[0].split("-")[1]);self.close();if(!_useDefaultBehavior){cfg.selectbox.focus();}}}});cfg.selectbox.focus(function(e){_isFocused=true;$customSelect.addClass(FOCUSED_CLASS);}).blur(function(e){_isFocused=false;$customSelect.removeClass(FOCUSED_CLASS);});if(_useDefaultBehavior){cfg.selectbox.change(function(e){_updateValue($(this).find("option:selected").html());});}
6cfg.selectbox.keyup(function(e){self.close();$options.each(function(i,itm){if(itm.selected){self.jumpToIndex(i);return false;}});});_bindHover();}
7function _bindHover(){var $dds=$(".customSelect dd");$dds.off("mouseover");$dds.off("mouseout");$dds.on("mouseover",function(e){var $target=$(e.target);if(e.target.tagName.toLowerCase()!="dd"){$target=$target.parents("dd");}
8$target.addClass(HOVERED_CLASS);});$dds.on("mouseout",function(e){var $target=$(e.target);if(e.target.tagName.toLowerCase()!="dd"){$target=$target.parents("dd");}
9$target.removeClass(HOVERED_CLASS);});}
10function _updateValue(val){if($selectedValue.html()!=val){$selectedValue.html(_truncate(val));cfg.changeCallback(cfg.selectbox.val());}}
11function _renderOptions(){var optionHTML=[];$options.each(function(i,itm){var $this=$(this),optgroup=$this.parents('optgroup'),addlOptClasses="",iconMarkup="";if(optgroup.length>0&&$this.prev().length===0){optionHTML.push('<dt>'+optgroup.attr('label')+'</dt>');}
12if(itm.className!==""){$(itm.className.split(" ")).each(function(){iconMarkup+='<span class="'+this+'"></span>';});}
13if(itm.selected&&!itm.disabled){_selectedValue=iconMarkup+_truncate($(itm).html());addlOptClasses=" "+SELECTED_CLASS;}
14if(itm.disabled){addlOptClasses+=" "+DISABLED_CLASS;}
15optionHTML.push('<dd class="itm-'+i+' '+addlOptClasses+'">'+iconMarkup+itm.innerHTML+'</dd>');});if($selectedValue&&$selectedValue.get(0)!==null){$selectedValue.html(_selectedValue);}
16return optionHTML.join("");}
17function _setupScrollbar(){$dl.css("height","auto");if(cfg.height&&$dl.height()>cfg.height){$dl.css("height",cfg.height);if(cfg.customScrollbar){self.scrollpane=$dl.jScrollPane($.extend({contentWidth:200,autoReinitialise:true},cfg.scrollOptions));}else{$dl.addClass("defaultScrollbar");}}else{$dl.css({overflow:"hidden"});}}
18function _truncate(str){var arr=str.split("</span>");var valToTrunc=arr[arr.length-1];arr[arr.length-1]="";var spans=arr.join("</SPAN>");return spans+cfg.truncate(valToTrunc);}
19this.sync=function(){$options=cfg.selectbox.find("option");$dl.html(_renderOptions());_bindHover();_setupScrollbar();};this.disable=function(){_isEnabled=false;$customSelect.addClass(DISABLED_CLASS);cfg.selectbox.attr("disabled","disabled");};this.enable=function(){_isEnabled=true;$customSelect.removeClass(DISABLED_CLASS);cfg.selectbox.removeAttr("disabled");};this.close=function(){$customSelect.removeClass(SELECT_OPEN_CLASS);$customSelect.css({"z-index":cfg.zIndex});_isOpen=false;};this.open=function(){_setupScrollbar();if(cfg.manager){cfg.manager.close();}
20$customSelect.addClass(SELECT_OPEN_CLASS);if(self.scrollpane){self.scrollpane.data('jsp').scrollToY($customSelect.find(".selected").position().top);}
21$customSelect.css({"z-index":cfg.zIndex+1});_isOpen=true;};this.jumpToIndex=function(index){cfg.selectbox.get(0).selectedIndex=index;$customSelect.find(".selected").removeClass(SELECTED_CLASS);
21$customSelect.find(".itm-"+index).addClass(SELECTED_CLASS);_updateValue($customSelect.find(".itm-"+index).html());};this.jumpToValue=function(value){var index=-1;$options.each(function(i){if(this.innerHTML==value){index=i;return false;}});if(index!=-1){self.jumpToIndex(index);}
22return index;};init();};})(jQuery);;var dp=[],sltbx;$(document).ready(function(){formInputFocus();loadSearchFilters()
23$("body").addClass('hasJS');$("select#blog_category").each(function(e){sltbx=new SelectBox({selectbox:$(this),changeCallback:function(value){if(value){$(this.selectbox).addClass('select_active');document.location.href=$("select option:selected").val();}else{$(this.selectbox).removeClass('select_active');}}});dp.push(sltbx);});$('a.nextpostslink').on('click',function(e){$('a.nextpostslink').removeClass('userway-s1-selected');$('infscr-loading').css({"display":"none"});$(this).blur();});$('.selectivo').selectivo();if($(".selectivo").length){$('.selectivo__dropdown').mCustomScrollbar();}
24$('.blog_category_select .selectivo__dropdown li').click(function(){var cat_link=$(this).attr('value');window.location.href=cat_link;});});function formInputFocus(){$('.top-bar form').on('focus','input[type="text"]',function(){$(this).parent().siblings('.control-label').addClass('field_focus');$(this).parent().parent().addClass('wrapper_focus');});$('.top-bar form').on('blur','input[type="text"]',function(){if(!$(this).val()){$(this).parent().siblings('.control-label').removeClass('field_focus');$(this).parent().parent().removeClass('wrapper_focus');}});}
25$(window).load(function(){$('input[type="text"]').focus(function(){});$('input[type="text"]').blur(function(){$(this).attr("value","");$(this).attr("placeholder",$(this).attr('data-placeholder'));});});function loadSearchFilters(){var cat_type=jQuery('input[name=hidden_cat_type]').val();if(cat_type){setTimeout(function(){jQuery('div#select-blog_category li').removeClass('selectivo__option--selected');jQuery('div#select-blog_category').find("li[data-value='"+cat_type+"']").addClass('selectivo__option--selected');jQuery('div#select-blog_category button.selectivo__label').html(jQuery('div#select-blog_category').find("li[data-value='"+cat_type+"']").html());},200);}}

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.