PageSourceSearch

https://www.junhaoyue.com/wp-content/uploads/bb-plugin/cache/45-layout.js?ver=8a03943b826c355878fe38daaf81c76a

js junhaoyue.com collected 2026-09-24 11:12:17 UTC 33,313 bytes, 96 lines download raw bytes

1var wpAjaxUrl='https://www.junhaoyue.com/wp-admin/admin-ajax.php';var flBuilderUrl='https://www.junhaoyue.com/wp-content/plugins/bb-plugin/';var FLBuilderLayoutConfig={anchorLinkAnimations:{duration:1000,easing:'swing',offset:100},paths:{pluginUrl:'https://www.junhaoyue.com/wp-content/plugins/bb-plugin/',wpAjaxUrl:'https://www.junhaoyue.com/wp-admin/admin-ajax.php'},breakpoints:{small:768,medium:992,large:1200},waypoint:{offset:80}};(function($){if(typeof FLBuilderLayout!='undefined'){return;}
2FLBuilderLayout={init:function(){FLBuilderLayout._destroy();FLBuilderLayout._initClasses();FLBuilderLayout._initBackgrounds();FLBuilderLayout._initRowShapeLayerHeight();if(0===$('.fl-builder-edit').length){FLBuilderLayout._initModuleAnimations();FLBuilderLayout._initAnchorLinks();FLBuilderLayout._initHash();FLBuilderLayout._initForms();FLBuilderLayout._reorderMenu();}},refreshGalleries:function(element){var $element='undefined'==typeof element?$('body'):$(element),mfContent=$element.find('.fl-mosaicflow-content'),wmContent=$element.find('.fl-gallery'),mfObject=null;if(mfContent){mfObject=mfContent.data('mosaicflow');if(mfObject){mfObject.columns=$([]);mfObject.columnsHeights=[];mfContent.data('mosaicflow',mfObject);mfContent.mosaicflow('refill');}}
3if(wmContent){wmContent.trigger('refreshWookmark');}},refreshGridLayout:function(element){var $element='undefined'==typeof element?$('body'):$(element),msnryContent=$element.find('.masonry');if(msnryContent.length){msnryContent.masonry('layout');}},reloadSlider:function(content){var $content='undefined'==typeof content?$('body'):$(content);if($content.find('.bx-viewport > div').length>0){$.each($content.find('.bx-viewport > div'),function(key,slider){setTimeout(function(){$(slider).data('bxSlider').reloadSlider();},100);});}},resizeAudio:function(element){var $element='undefined'==typeof element?$('body'):$(element),audioPlayers=$element.find('.wp-audio-shortcode.mejs-audio'),player=null,mejsPlayer=null,rail=null,railWidth=400;if(audioPlayers.length&&typeof mejs!=='undefined'){audioPlayers.each(function(){player=$(this);mejsPlayer=mejs.players[player.attr('id')];rail=player.find('.mejs-controls .mejs-time-rail');var innerMejs=player.find('.mejs-inner'),total=player.find('.mejs-controls .mejs-time-total');if(typeof mejsPlayer!=='undefined'){railWidth=Math.ceil(player.width()*0.8);if(innerMejs.length){rail.css('width',railWidth+'px!important');mejsPlayer.options.autosizeProgress=true;setTimeout(function(){mejsPlayer.setControlsSize();},50);player.find('.mejs-inner').css({visibility:'visible',height:'inherit'});}}});}},preloadAudio:function(element){var $element='undefined'==typeof element?$('body'):$(element),contentWrap=$element.closest('.fl-accordion-item'),audioPlayers=$element.find('.wp-audio-shortcode.mejs-audio');if(!contentWrap.hasClass('fl-accordion-item-active')&&audioPlayers.find('.mejs-inner').length){audioPlayers.find('.mejs-inner').css({visibility:'hidden',height:0});}},resizeSlideshow:function(){if(typeof YUI!=='undefined'){YUI().use('node-event-simulate',function(Y){Y.one(window).simulate("resize");});}},reloadGoogleMap:function(element){var $element='undefined'==typeof element?$('body'):$(element),googleMap=$element.find('iframe[src*="google.com/maps"]');if(googleMap.length){googleMap.attr('src',function(i,val){return val;});}},_destroy:function(){var win=$(window);win.off('scroll.fl-bg-parallax');win.off('resize.fl-bg-video');},_isTouch:function(){if(('ontouchstart'in window)||(window.DocumentTouch&&document instanceof DocumentTouch)){return true;}
4return false;},_isMobile:function(){return/Mobile|Android|Silk\/|Kindle|BlackBerry|Opera Mini|Opera Mobi|webOS/i.test(navigator.userAgent);},_initClasses:function(){var body=$('body'),ua=navigator.userAgent;if(!body.hasClass('archive')&&$('.fl-builder-content-primary').length>0){body.addClass('fl-builder');}
5if(FLBuilderLayout._isTouch()){body.addClass('fl-builder-touch');}
6if(FLBuilderLayout._isMobile()){body.addClass('fl-builder-mobile');}
7if($(window).width()<FLBuilderLayoutConfig.breakpoints.small){body.addClass('fl-builder-breakpoint-small');}
8if($(window).width()>FLBuilderLayoutConfig.breakpoints.small&&$(window).width()<FLBuilderLayoutConfig.breakpoints.medium){body.addClass('fl-builder
8-breakpoint-medium');}
9if($(window).width()>FLBuilderLayoutConfig.breakpoints.medium&&$(window).width()<FLBuilderLayoutConfig.breakpoints.large){body.addClass('fl-builder-breakpoint-large');}
10if($(window).width()>FLBuilderLayoutConfig.breakpoints.large){body.addClass('fl-builder-breakpoint-default');}
11if(ua.indexOf('Trident/7.0')>-1&&ua.indexOf('rv:11.0')>-1){body.addClass('fl-builder-ie-11');}},_initBackgrounds:function(){var win=$(window);if($('.fl-row-bg-parallax').length>0&&!FLBuilderLayout._isMobile()){FLBuilderLayout._scrollParallaxBackgrounds();FLBuilderLayout._initParallaxBackgrounds();win.on('resize.fl-bg-parallax',FLBuilderLayout._initParallaxBackgrounds);win.on('scroll.fl-bg-parallax',FLBuilderLayout._scrollParallaxBackgrounds);}
12if($('.fl-bg-video').length>0){FLBuilderLayout._initBgVideos();FLBuilderLayout._resizeBgVideos();var resizeBGTimer=null;win.on('resize.fl-bg-video',function(e){clearTimeout(resizeBGTimer);resizeBGTimer=setTimeout(function(){FLBuilderLayout._resizeBgVideos(e);},100);});}},_initParallaxBackgrounds:function(){$('.fl-row-bg-parallax').each(FLBuilderLayout._initParallaxBackground);},_initParallaxBackground:function(){var row=$(this),content=row.find('> .fl-row-content-wrap'),winWidth=$(window).width(),screenSize='',imageSrc={default:'',medium:'',responsive:'',};imageSrc.default=row.data('parallax-image')||'';imageSrc.medium=row.data('parallax-image-medium')||imageSrc.default;imageSrc.responsive=row.data('parallax-image-responsive')||imageSrc.medium;if(winWidth>FLBuilderLayoutConfig.breakpoints.medium){screenSize='default';}else if(winWidth>FLBuilderLayoutConfig.breakpoints.small&&winWidth<=FLBuilderLayoutConfig.breakpoints.medium){screenSize='medium';}else if(winWidth<=FLBuilderLayoutConfig.breakpoints.small){screenSize='responsive';}
13content.css('background-image','url('+imageSrc[screenSize]+')');row.data('current-image-loaded',screenSize);},_scrollParallaxBackgrounds:function(){$('.fl-row-bg-parallax').each(FLBuilderLayout._scrollParallaxBackground);},_scrollParallaxBackground:function(){var win=$(window),row=$(this),content=row.find('> .fl-row-content-wrap'),speed=row.data('parallax-speed'),offset=content.offset(),yPos=-((win.scrollTop()-offset.top)/ speed),initialOffset=(row.data('parallax-offset')!=null)?row.data('parallax-offset'):0,totalOffset=yPos-initialOffset;content.css('background-position','center '+totalOffset+'px');},_initBgVideos:function(){$('.fl-bg-video').each(FLBuilderLayout._initBgVideo);},_initBgVideo:function(){var wrap=$(this),width=wrap.data('width'),height=wrap.data('height'),mp4=wrap.data('mp4'),youtube=wrap.data('youtube'),vimeo=wrap.data('vimeo'),mp4Type=wrap.data('mp4-type'),webm=wrap.data('webm'),webmType=wrap.data('webm-type'),fallback=wrap.data('fallback'),loaded=wrap.data('loaded'),videoMobile=wrap.data('video-mobile'),fallbackTag='',videoTag=null,mp4Tag=null,webmTag=null;if(loaded){return;}
14videoTag=$('<video autoplay loop muted playsinline></video>');if('undefined'!=typeof fallback&&''!=fallback){videoTag.attr('poster','data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7')
15videoTag.css({backgroundImage:'url("'+fallback+'")',backgroundColor:'transparent',backgroundRepeat:'no-repeat',backgroundSize:'cover',backgroundPosition:'center center',})}
16if('undefined'!=typeof mp4&&''!=mp4){mp4Tag=$('<source />');mp4Tag.attr('src',mp4);mp4Tag.attr('type',mp4Type);videoTag.append(mp4Tag);}
17if('undefined'!=typeof webm&&''!=webm){webmTag=$('<source />');webmTag.attr('src',webm);webmTag.attr('type',webmType);videoTag.append(webmTag);}
18if(!FLBuilderLayout._isMobile()||(FLBuilderLayout._isMobile()&&"yes"==videoMobile)){if('undefined'!=typeof youtube){FLBuilderLayout._initYoutubeBgVideo.apply(this);}
19else if('undefined'!=typeof vimeo){FLBuilderLayout._initVimeoBgVideo.apply(this);}
20else{wrap.append(videoTag);}}
21else{videoTag.attr('src','')
22wrap.append(videoTag);}
23wrap.data('loaded',true);},_initYoutubeBgVideo:function(){var playerWrap=$(this),videoId=playerWrap.data('video-id'),videoPlayer=playerWrap.find('.fl-bg-video-player'),enableAudio=playerWrap.data('enable-audio'),audioButton=playerWrap.find('.fl-bg-video-audio'),startTime='undefined'!==typeof playerWrap.data('start')?playerWrap.data('start'):0,startTime='undefined'!==typeof playerWrap.data('t')&&startTime===0?playerWrap.data('t'):startTime,endTime='undefined'!==typeof playerWrap.data('end')?playerWrap.data('end'):0,loop='undefined'!==typeof playerWrap.data('loop')?playerWrap.data('loop'):1,stateCount=0,player,fallback_showing;if(videoId){fallback=playerWrap.data('fallback')||false
24if(fallback){playerWrap.find('iframe').remove()
25fallbackTag=$('<div></div>');fallbackTag.addClass('fl-bg-video-fallback');fallbackTag.css('background-image','url('+playerWrap.data('fallback')+')');fallbackTag.css('background-size','cover');fallbackTag.css('transition','background-image 1s')
26playerWrap.append(fallbackTag);fallback_showing=true;}
27FLBuilderLayout._onYoutubeApiReady(function(YT){setTimeout(function(){player=new YT.Player(videoPlayer[0],{videoId:videoId,events:{onReady:function(event){if("no"===enableAudio||FLBuilderLayout._isMobile()){event.target.mute();}
28else if("yes"===enableAudio&&event.target.isMuted){event.target.unMute();}
29playerWrap.data('YTPlayer',player);FLBuilderLayout._resizeYoutubeBgVideo.apply(playerWrap);event.target.playVideo();if(audioButton.length>
290&&!FLBuilderLayout._isMobile()){audioButton.on('click',{button:audioButton,player:player},FLBuilderLayout._toggleBgVideoAudio);}},onStateChange:function(event){if(event.data===1){if(fallback_showing){$('.fl-bg-video-fallback').css('background-image','url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)')}}
30if(stateCount<4){stateCount++;}
31if(stateCount>1&&(-1===event.data||2===event.data)&&"yes"===enableAudio){player.mute();player.playVideo();audioButton.show();}
32if(event.data===YT.PlayerState.ENDED&&1===loop){if(startTime>0){player.seekTo(startTime);}
33else{player.playVideo();}}},onError:function(event){console.info('YT Error: '+event.data)
34FLBuilderLayout._onErrorYoutubeVimeo(playerWrap)}},playerVars:{playsinline:FLBuilderLayout._isMobile()?1:0,controls:0,showinfo:0,rel:0,start:startTime,end:endTime,}});},1);});}},_onErrorYoutubeVimeo:function(playerWrap){fallback=playerWrap.data('fallback')||false
35if(!fallback){return false;}
36playerWrap.find('iframe').remove()
37fallbackTag=$('<div></div>');fallbackTag.addClass('fl-bg-video-fallback');fallbackTag.css('background-image','url('+playerWrap.data('fallback')+')');playerWrap.append(fallbackTag);},_onYoutubeApiReady:function(callback){if(window.YT&&YT.loaded){callback(YT);}else{setTimeout(function(){FLBuilderLayout._onYoutubeApiReady(callback);},350);}},_initVimeoBgVideo:function(){var playerWrap=$(this),videoId=playerWrap.data('video-id'),videoPlayer=playerWrap.find('.fl-bg-video-player'),enableAudio=playerWrap.data('enable-audio'),audioButton=playerWrap.find('.fl-bg-video-audio'),player,width=playerWrap.outerWidth(),ua=navigator.userAgent;if(typeof Vimeo!=='undefined'&&videoId){player=new Vimeo.Player(videoPlayer[0],{id:videoId,loop:true,title:false,portrait:false,background:true,autopause:false,muted:true});playerWrap.data('VMPlayer',player);if("no"===enableAudio){player.setVolume(0);}
38else if("yes"===enableAudio){if(ua.indexOf("Safari")>-1||ua.indexOf("Chrome")>-1||ua.indexOf("Firefox")>-1){player.setVolume(0);audioButton.show();}
39else{player.setVolume(1);}}
40player.play().catch(function(error){FLBuilderLayout._onErrorYoutubeVimeo(playerWrap)});if(audioButton.length>0){audioButton.on('click',{button:audioButton,player:player},FLBuilderLayout._toggleBgVideoAudio);}}},_toggleBgVideoAudio:function(e){var player=e.data.player,control=e.data.button.find('.fl-audio-control');if(control.hasClass('fa-volume-off')){control.removeClass('fa-volume-off').addClass('fa-volume-up');e.data.button.find('.fa-times').hide();if('function'===typeof player.unMute){player.unMute();}
41else{player.setVolume(1);}}
42else{control.removeClass('fa-volume-up').addClass('fa-volume-off');e.data.button.find('.fa-times').show();if('function'===typeof player.unMute){player.mute();}
43else{player.setVolume(0);}}},_videoBgSourceError:function(e){var source=$(e.target),wrap=source.closest('.fl-bg-video'),vid=wrap.find('video'),fallback=wrap.data('fallback'),fallbackTag='';source.remove();if(vid.find('source').length){return;}else if(''!==fallback){fallbackTag=$('<div></div>');fallbackTag.addClass('fl-bg-video-fallback');fallbackTag.css('background-image','url('+fallback+')');wrap.append(fallbackTag);vid.remove();}},_resizeBgVideos:function(){$('.fl-bg-video').each(function(){FLBuilderLayout._resizeBgVideo.apply(this);if($(this).parent().find('img').length>0){$(this).parent().imagesLoaded($.proxy(FLBuilderLayout._resizeBgVideo,this));}});},_resizeBgVideo:function(){if(0===$(this).find('video').length&&0===$(this).find('iframe').length){return;}
44var wrap=$(this),wrapHeight=wrap.outerHeight(),wrapWidth=wrap.outerWidth(),vid=wrap.find('video'),vidHeight=wrap.data('height'),vidWidth=wrap.data('width'),newWidth=wrapWidth,newHeight=Math.round(vidHeight*wrapWidth/vidWidth),newLeft=0,newTop=0,iframe=wrap.find('iframe'),isRowFullHeight=$(this).closest('.fl-row-bg-video').hasClass('fl-row-full-height'),vidCSS={top:'50%',left:'50%',transform:'translate(-50%,-50%)',};if(vid.length){if(vidHeight===''||typeof vidHeight==='undefined'||vidWidth===''||typeof vidWidth==='undefined'){vid.css({'left':'0px','top':'0px','width':newWidth+'px'});vid.on('loadedmetadata',FLBuilderLayout._resizeOnLoadedMeta);return;}
45if(!isRowFullHeight){if(newHeight<wrapHeight){newHeight=wrapHeight;newLeft=-((newWidth-wrapWidth)/ 2);newWidth=vidHeight?Math.round(vidWidth*wrapHeight/vidHeight):newWidth;}
46else{newTop=-((newHeight-wrapHeight)/2);}
47vidCSS={left:newLeft+'px',top:newTop+'px',height:newHeight+'px',width:newWidth+'px',}}
48vid.css(vidCSS);}
49else if(iframe.length){if(typeof wrap.data('youtube')!=='undefined'){FLBuilderLayout._resizeYoutubeBgVideo.apply(this);}}},_resizeOnLoadedMeta:function(){var video=$(this),wrapHeight=video.parent().outerHeight(),wrapWidth=video.parent().outerWidth(),vidWidth=video[0].videoWidth,vidHeight=video[0].videoHeight,newHeight=Math.round(vidHeight*wrapWidth/vidWidth),newWidth=wrapWidth,newLeft=0,newTop=0;if(newHeight<wrapHeight){newHeight=wrapHeight;newWidth=Math.round(vidWidth*wrapHeight/vidHeight);newLeft=-((newWidth-wrapWidth)/2);}
50else{newTop=-((newHeight-wrapHeight)/2);}
51video.parent().data('width',vidWidth);video.parent().data('height',vidHeight);
51video.css({'left':newLeft+'px','top':newTop+'px','width':newWidth+'px','height':newHeight+'px'});},_resizeYoutubeBgVideo:function(){var wrap=$(this),wrapWidth=wrap.outerWidth(),wrapHeight=wrap.outerHeight(),player=wrap.data('YTPlayer'),video=player?player.getIframe():null,aspectRatioSetting='16:9',aspectRatioArray=aspectRatioSetting.split(':'),aspectRatio=aspectRatioArray[0]/ aspectRatioArray[1],ratioWidth=wrapWidth / aspectRatio,ratioHeight=wrapHeight*aspectRatio,isWidthFixed=wrapWidth / wrapHeight>aspectRatio,width=isWidthFixed?wrapWidth:ratioHeight,height=isWidthFixed?ratioWidth:wrapHeight;if(video){$(video).width(width).height(height);}},_initModuleAnimations:function(){if(typeof jQuery.fn.waypoint!=='undefined'){$('.fl-animation').each(function(){var node=$(this),nodeTop=node.offset().top,winHeight=$(window).height(),bodyHeight=$('body').height(),waypoint=FLBuilderLayoutConfig.waypoint,offset='80%';if(typeof waypoint.offset!==undefined){offset=FLBuilderLayoutConfig.waypoint.offset+'%';}
52if(bodyHeight-nodeTop<winHeight*0.2){offset='100%';}
53node.waypoint({offset:offset,handler:FLBuilderLayout._doModuleAnimation});});}},_doModuleAnimation:function(){var module='undefined'==typeof this.element?$(this):$(this.element),delay=parseFloat(module.data('animation-delay')),duration=parseFloat(module.data('animation-duration'));if(!isNaN(duration)){module.css('animation-duration',duration+'s');}
54if(!isNaN(delay)&&delay>0){setTimeout(function(){module.addClass('fl-animated');},delay*1000);}else{setTimeout(function(){module.addClass('fl-animated');},1);}},_initHash:function(){var hash=window.location.hash.replace('#','').split('/').shift(),element=null,tabs=null,responsiveLabel=null,tabIndex=null,label=null;if(''!==hash){try{element=$('#'+hash);if(element.length>0){if(element.hasClass('fl-accordion-item')){setTimeout(function(){element.find('.fl-accordion-button').trigger('click');},100);}
55if(element.hasClass('fl-tabs-panel')){setTimeout(function(){tabs=element.closest('.fl-tabs');responsiveLabel=element.find('.fl-tabs-panel-label');tabIndex=responsiveLabel.data('index');label=tabs.find('.fl-tabs-labels .fl-tabs-label[data-index='+tabIndex+']');label[0].click();FLBuilderLayout._scrollToElement(element);},100);}}}
56catch(e){}}},_initAnchorLinks:function(){$('a').each(FLBuilderLayout._initAnchorLink);},_initAnchorLink:function(){var link=$(this),href=link.attr('href'),loc=window.location,id=null,element=null,flNode=false;if('undefined'!=typeof href&&href.indexOf('#')>-1&&link.closest('svg').length<1){if(loc.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&loc.hostname==this.hostname){try{id=href.split('#').pop();if(!id){return;}
57element=$('#'+id);if(element.length>0){flNode=element.hasClass('fl-row')||element.hasClass('fl-col')||element.hasClass('fl-module');if(!element.hasClass('fl-no-scroll')&&(link.hasClass('fl-scroll-link')||flNode)){$(link).on('click',FLBuilderLayout._scrollToElementOnLinkClick);}
58if(element.hasClass('fl-accordion-item')){$(link).on('click',FLBuilderLayout._scrollToAccordionOnLinkClick);}
59if(element.hasClass('fl-tabs-panel')){$(link).on('click',FLBuilderLayout._scrollToTabOnLinkClick);}}}
60catch(e){}}}},_scrollToElementOnLinkClick:function(e,callback){var element=$('#'+$(this).attr('href').split('#').pop());FLBuilderLayout._scrollToElement(element,callback);e.preventDefault();},_scrollToElement:function(element,callback){var config=FLBuilderLayoutConfig.anchorLinkAnimations,dest=0,win=$(window),doc=$(document);if(element.length>0){if('fixed'===element.css('position')||'fixed'===element.parent().css('position')){dest=element.position().top;}
61else if(element.offset().top>doc.height()-win.height()){dest=doc.height()-win.height();}
62else{dest=element.offset().top-config.offset;}
63$('html, body').animate({scrollTop:dest},config.duration,config.easing,function(){if('undefined'!=typeof callback){callback();}
64if(undefined!=element.attr('id')){if(history.pushState){history.pushState(null,null,'#'+element.attr('id'));}
65else{window.location.hash=element.attr('id');}}});}}
65,_scrollToAccordionOnLinkClick:function(e){var element=$('#'+$(this).attr('href').split('#').pop());if(element.length>0){var callback=function(){if(element){element.find('.fl-accordion-button').trigger('click');element=false;}};FLBuilderLayout._scrollToElementOnLinkClick.call(this,e,callback);}},_scrollToTabOnLinkClick:function(e){var element=$('#'+$(this).attr('href').split('#').pop()),tabs=null,label=null,responsiveLabel=null;if(element.length>0){tabs=element.closest('.fl-tabs');responsiveLabel=element.find('.fl-tabs-panel-label');tabIndex=responsiveLabel.data('index');label=tabs.find('.fl-tabs-labels .fl-tabs-label[data-index='+tabIndex+']');if(responsiveLabel.is(':visible')){var callback=function(){if(element){responsiveLabel.trigger($.Event('click',{which:1}));}};FLBuilderLayout._scrollToElementOnLinkClick.call(this,e,callback);}
66else{label[0].click();FLBuilderLayout._scrollToElement(element);}
67e.preventDefault();}},_initForms:function(){if(!FLBuilderLayout._hasPlaceholderSupport){$('.fl-form-field input').each(FLBuilderLayout._initFormFieldPlaceholderFallback);}
68$('.fl-form-field input').on('focus',FLBuilderLayout._clearFormFieldError);},_hasPlaceholderSupport:function(){var input=document.createElement('input');return'undefined'!=input.placeholder;},_initFormFieldPlaceholderFallback:function(){var field=$(this),val=field.val(),placeholder=field.attr('placeholder');if('undefined'!=placeholder&&''===val){field.val(placeholder);field.on('focus',FLBuilderLayout._hideFormFieldPlaceholderFallback);field.on('blur',FLBuilderLayout._showFormFieldPlaceholderFallback);}},_hideFormFieldPlaceholderFallback:function(){var field=$(this),val=field.val(),placeholder=field.attr('placeholder');if(val==placeholder){field.val('');}},_showFormFieldPlaceholderFallback:function(){var field=$(this),val=field.val(),placeholder=field.attr('placeholder');if(''===val){field.val(placeholder);}},_clearFormFieldError:function(){var field=$(this);field.removeClass('fl-form-error');field.siblings('.fl-form-error-message').hide();},_initRowShapeLayerHeight:function(){FLBuilderLayout._adjustRowShapeLayerHeight();$(window).on('resize',FLBuilderLayout._adjustRowShapeLayerHeight);},_adjustRowShapeLayerHeight:function(){var rowShapeLayers=$('.fl-builder-shape-layer');$(rowShapeLayers).each(function(index){var rowShapeLayer=$(this),shape=$(rowShapeLayer).find('svg'),height=shape.height(),excludeShapes='.fl-builder-shape-circle, .fl-builder-shape-dot-cluster, .fl-builder-shape-topography, .fl-builder-shape-rect';if(!rowShapeLayer.is(excludeShapes)){$(shape).css('height',Math.ceil(height));}});},_string_to_slug:function(str){str=str.replace(/^\s+|\s+$/g,'');if('undefined'==typeof window._fl_string_to_slug_regex){regex=new RegExp('[^a-zA-Z0-9\'":() !.,-_|]','g');}else{regex=new RegExp('[^'+window._fl_string_to_slug_regex+'\'":\(\) !.,-_|\\\p{Letter}]','ug');}
69str=str.replace(regex,'').replace(/\s+/g,' ');return str;},_reorderMenu:function(){if($('#wp-admin-bar-fl-builder-frontend-edit-link-default li').length>1){$('#wp-admin-bar-fl-builder-frontend-duplicate-link').appendTo('#wp-admin-bar-fl-builder-frontend-edit-link-default').css('padding-top','5px').css('border-top','2px solid #1D2125').css('margin-top','5px')}}};$(function(){FLBuilderLayout.init();});})(jQuery);function inquireListCount(){var cart_products_str=jQuery.cookie(_cart_name);var cart_products=[];if(cart_products_str){cart_products=JSON.parse(cart_products_str);}
70var pL=cart_products.length;}
71(function($){window.onLoadYouFindReCaptcha=function(){let reCaptchaFields=$('.yf-grecaptcha'),widgetID;if(reCaptchaFields.length>0){reCaptchaFields.each(function(i){let self=$(this),attrWidget=self.attr('data-widgetid'),newID=$(this).attr('id')+'-'+i;if((typeof attrWidget!==typeof undefined&&attrWidget!==false)){return;}
72else{self.attr('id',newID);widgetID=grecaptcha.render(newID,{sitekey:self.data('sitekey'),theme:self.data('theme'),size:self.data('validate'),callback:function(response){if(response!=''){self.attr('data-yf-grecaptcha-response',response);}
73if('invisible'==self.data('validate')){self.closest('form').find('.fl-button-wrap a').trigger('click');}}});self.attr('data-widgetid',widgetID);}});}}
74YouFindForm=function(settings){this.settings=settings;
74this.nodeClass='.fl-node-'+settings.id;this.fields=settings.fields;this.submit_remove=settings.submit_remove;this.success_jump=settings.success_jump;this.success_jump_url=settings.success_jump_url;this._init();};YouFindForm.prototype={settings:{},nodeClass:'',_init:function(){$(this.nodeClass+' .fl-button').click($.proxy(this._submit,this));$(this.nodeClass+' .yf-file-btn').click($.proxy(this._file_upload,this));$(this.nodeClass+' .yf-agreement-popup').click($.proxy(this._agreement_popup,this));$(this.nodeClass+' .yf-agreement-close-btn').click($.proxy(this._agreement_close,this));$(this.nodeClass+' .yf-agreement-box').click($.proxy(this._agreement_self_close,this));$(document).on('keydown',$.proxy(this._agreement_keyupdown_close,this));$(this.nodeClass+' .yf-file-box input[type="file"]').on('change',$.proxy(this._file_change,this))
75$(this.nodeClass+' .fl-button').on('keydown, keyup',$.proxy(this._keyupdown,this));this._selectInit();},_selectInit:function(){let trigger=$(this.nodeClass+' .yf-input-select-wrapper .yf-select-trigger');let allOptions=$(this.nodeClass+' .yf-input-select-wrapper .yf-select-options');trigger.click(function(e){e.stopPropagation();allOptions.hide();let options=$(this).closest('.yf-input-select-wrapper').find('.yf-select-options');options.toggle();let search=$(this).closest('.yf-input-select-wrapper').find('.yf-select-search');search.val('').focus();$(this).closest('.yf-input-select-wrapper').find('.yf-select-option').show();});let option=$(this.nodeClass+' .yf-input-select-wrapper .yf-select-option');option.click(function(){let value=$(this).attr('data-value');let trigger=$(this).closest('.yf-input-select-wrapper').find('.yf-select-trigger span');trigger.text($(this).text());$(this).closest('.yf-input-select-wrapper').find('.yf-select-options').hide();$(this).closest('.yf-input-box').find('select').val(value).trigger('change');});let search=$(this.nodeClass+' .yf-input-select-wrapper .yf-select-search');search.on('input',function(){let keyword=$(this).val().toLowerCase();$(this).closest('.yf-input-select-wrapper').find('.yf-select-option').each(function(){let text=$(this).text().toLowerCase();$(this).toggle(text.indexOf(keyword)>-1);});});$(document).click(function(){$('.yf-input-select-wrapper .yf-select-options').hide();});},_keyupdown:function(e){if(e.keyCode===13||e.keyCode===32){e.preventDefault();this._submit(e);}},_valid_fields:function(){let theForm=$(this.nodeClass+' .yf-form');let valid=true;$.each(this.fields,function(k,field){if(theForm.find(field).length==0){valid=false;}});return valid;},_file_upload:function(e){e.preventDefault();$(e.target).closest('.yf-file-box').find('input').click();return;},_file_change:function(e){let _this=$(e.target);let fileName=_this.val().split('\\').pop();_this.closest('.yf-file-box').find('.yf-file-name').remove();_this.after('<span class="yf-file-name">'+fileName+'</span>');},_agreement_popup:function(e){e.preventDefault();$(e.target).closest('.agreement').find('.yf-agreement-box').show();$(e.target).closest('.agreement').find('input[type="checkbox"]').prop('checked',true);},_agreement_close:function(e){e.preventDefault();$(e.target).closest('.agreement').find('.yf-agreement-box').hide();},_agreement_self_close:function(e){e.preventDefault();if($(e.target).is('.yf-agreement-box')){$(e.target).hide();}},_agreement_keyupdown_close:function(e){if(e.key==='Escape'||e.keyCode===27){$(this.nodeClass+' .yf-agreement-box').hide();}},_submit:function(e){e.preventDefault();if(!this._valid_fields()){alert('Incomplete form! Please reload the page and submit again!');return false;}
76let theForm=$(this.nodeClass+' .yf-form'),submit=$(this.nodeClass+' .fl-button'),error=$(this.nodeClass+' .yf-error-msg'),ajaxUrl=yf_form_url,email_regex=/\S+@\S+\.\S+/,num_regex=/^-?\d*(\.\d+)?$/,reCaptchaField=$(this.nodeClass+' .yf-grecaptcha'),reCaptchaValue=reCaptchaField.data('yf-grecaptcha-response'),isValid=true;if(theForm.hasClass('yf-on-submit')){return false;}
77if(submit.hasClass('fl-disabled')){return false;}
78submit.addClass('fl-disabled');error.hide();theForm.find('.yf-input-group').removeClass('has-error');theForm.find('.yf-file-error').empty();let inputs=theForm.find('input.yf-input[required],textarea.yf-input[required],select.yf-input[required]');if(inputs.length>0){inputs.each(function(){let _inputValid=true;let _val=$(this).val();if(_val===""||_val===null){_inputValid=false;}else{_val=$(this).val().trim();let _type=$(this).attr('type');if(_val===""){_inputValid=false;}else if(_type==='email'&&!email_regex.test(_val)){_inputValid=false;}else if(_type==='number'&&!num_regex.test(_val)){_inputValid=false;}}
79if(!_inputValid){$(this).closest('.yf-input-group').addClass('has-error');isValid=false;}});}
80let input_items=theForm.find('.yf-input-items');if(input_items.length>0){input_items.each(function(){let error=false;let item_inputs=$(this).find('input[type=checkbox][required],input[type=radio][required]');if(item_inputs.length>0){let hasCheck=false;item_inputs.each(function(){if($(this).is(':checked')){hasCheck=true;}});if(!hasCheck){error=true;}}
81if(error){$(this).closest('.yf-input-group').addClass('has-error');isValid=false;}});}
82let input_file=theForm.find('input[type="file"]');
82if(input_file.length>0){input_file.each(function(){let _val=$(this).val().trim();let _accept=$(this).attr('accept');if(_accept!==undefined&&_accept!==""&&_val!==""){_accept=_accept.toLowerCase();let allowedExtensions=_accept.split(',').map(function(ext){return ext.trim();});let fileExtension=_val.substr(_val.lastIndexOf(".")).toLowerCase();if($.inArray(fileExtension,allowedExtensions)===-1){$(this).closest('.yf-input-group').addClass('has-error');$(this).after('<span class="yf-error yf-file-error">The file type is not accepted.</span>');isValid=false;}}});}
83let input_agreements=theForm.find('.yf-agreement-label input[required]');if(input_agreements.length>0){input_agreements.each(function(){if(!$(this).is(':checked')){$(this).closest('.yf-input-group').addClass('has-error');isValid=false;}});}
84let input_date_range=theForm.find('.yf-input-date-range');if(input_date_range.length>0){input_date_range.each(function(){let error=false;let date_inputs=$(this).find('input[type=date]');if(date_inputs.length==2){let date1=date_inputs.eq(0).val();let date2=date_inputs.eq(1).val();if(date1>date2){error=true;}}
85if(error){$(this).closest('.yf-input-group').addClass('has-error');isValid=false;}});}
86if(reCaptchaField.length>0){if('undefined'===typeof reCaptchaValue||reCaptchaValue===false){isValid=false;if('normal'==reCaptchaField.data('validate')){reCaptchaField.closest('.yf-input-group').addClass('has-error');}else if('invisible'==reCaptchaField.data('validate')){grecaptcha.execute(reCaptchaField.data('widgetid'));}}else{reCaptchaField.closest('.yf-input-group').removeClass('has-error');}}
87if(!isValid){submit.removeClass('fl-disabled');theForm.removeClass('yf-on-submit');if(theForm.closest('.pp-modal').length>0){return false;}
88let firstError=theForm.find('.has-error').first();if(firstError.length){let headerHeight=$('header').outerHeight()||0;let offsetTop=firstError.offset().top-headerHeight-50;let rect=firstError[0].getBoundingClientRect();let isInViewport=rect.top>=headerHeight&&rect.bottom<=window.innerHeight;if(!isInViewport){$('html, body').animate({scrollTop:offsetTop},300);}}
89return false;}
90theForm.addClass('yf-on-submit');let formData=new FormData(theForm[0]);$.ajax({url:ajaxUrl,type:'POST',data:formData,processData:false,contentType:false,success:$.proxy(this._submitComplete,this)});},_submitComplete:function(response){let theForm=$(this.nodeClass+' .yf-form'),submit=$(this.nodeClass+' .fl-button'),success=$(this.nodeClass+' .yf-success-msg'),error=$(this.nodeClass+' .yf-error-msg');submit.removeClass('fl-disabled');theForm.removeClass('yf-on-submit');if(response.status==200||response.msg=='Not Found'){if(this.submit_remove=='yes'){theForm.remove();}
91success.fadeIn();if(!$.isEmptyObject(response.callback)){try{eval(response.callback);}catch(e){console.log(e);}}
92if(this.submit_remove=='no'){if(this.success_jump=='yes'&&this.success_jump_url!=''){window.location.href=this.success_jump_url;}}}else{error.text(response.msg);error.fadeIn();}}};})(jQuery);(function($){$(function(){new YouFindForm({id:'28diqt7u5396',fields:["input[name=\"Name\"]","input[name=\"Email\"]","input[name=\"Phone\"]","textarea[name=\"Message\"]","input[name=\"_yfnonce\"]","input[name=\"_wp_http_referer\"]","input[name=\"action\"]"],submit_remove:'yes',success_jump:'yes',success_jump_url:'',});});})(jQuery);jQuery(document).ready(function($){loadProductInquiry();});jQuery(document).on('click','.option-del',function(){const id=jQuery(this).data('id');var cart_products_str=jQuery.cookie(_cart_name);var cart_products=[];if(cart_products_str){cart_products=JSON.parse(cart_products_str);var productIndex=cart_products.findIndex(function(product){return product.id===id;});if(productIndex!==-1){cart_products.splice(productIndex,1);}
93jQuery.cookie(_cart_name,JSON.stringify(cart_products),{path:'/'});inquireListCount();jQuery(this).parent().parent().remove();}
94var leng=jQuery('#productList table tbody tr').length;if(leng<=0){jQuery('#productList').empty();}
95return false;});function loadProductInquiry(){jQuery('#leaveYourMessageForm form .yf-form-wrapper').before("<div id='productList'></div>")
96jQuery('#productList').empty();var cart_products_str=jQuery.cookie(_cart_name);var cart_products=[];if(cart_products_str){cart_products=JSON.parse(cart_products_str);if(cart_products.length>0){var html="";html+="<table>";html+="<thead><tr><th class='tpimg'>Product Picture</th><th class='tpname'>Product Name</th><th class='tpoption'>Options</th></tr></thead>";html+='<tbody>';jQuery(cart_products).each(function(k,v){html+="<tr>";html+="<td><a href='"+v.link+"' class='pimg'><img src='"+v.img+"'></a></td>";html+="<td><a href='"+v.link+"' class='pname'>"+v.name+"</a></td>";var input="<input type='hidden' name='products["+k+"][name]' value='"+v.name+"'>";html+="<td>"+input+"<a href='#' data-id='"+v.id+"' class='option-del'>Delete</a></td>";html+="</tr>";});html+='</tbody>';html+="</table>";jQuery('#productList').html(html);}}}

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.