PageSourceSearch

https://roks.co.jp/wp-content/themes/dp-genique/inc/js/main.min.js?ver=20250319050200

js roks.co.jp collected 2026-10-04 13:29:24 UTC 23,645 bytes, 1 lines download raw bytes

1var j$=jQuery;let thisWindow=j$(window),thisHtml=j$("html"),thisBody=j$("body"),thisUA=window.navigator.userAgent.toLowerCase(),mainContent=document.getElementById("content"),single_article=j$(".single-article"),single_offset_top=single_article[0]?single_article.offset().top:null,single_nav=document.getElementById("single-nav"),single_float=document.getElementById("single_float_div"),sideBarEle=document.getElementById("sidebar"),footerEle=document.getElementById("footer"),fixWidget=j$("#dp_fix_widget"),headerBar=document.getElementById("header_bar"),dpWrapper=j$("#dp_main_wrapper"),hdBannerInner=document.getElementById("header-banner-inner"),hdBannerInnerHeight=hdBannerInner?hdBannerInner.offsetHeight:null,ctWhole=document.getElementById("ct-whole"),ctWholeHeight=ctWhole?ctWhole.offsetHeight:0,dpGotop=document.getElementById("gotop"),cpRight=document.getElementById("cpright"),isMqHiddenMenu=null;const pjax_time=200,mqHiddenMenuWidth=940;function dp_check_user_agent(){if(thisUA.indexOf("msie")!=-1||thisUA.indexOf("trident")!=-1){thisUA="ie"}else{if(thisUA.indexOf("edge")!=-1){thisUA="edge"}else{if(thisUA.indexOf("chrome")!=-1){thisUA="chrome"}else{if(thisUA.indexOf("safari")!=-1){thisUA="safari"}else{if(thisUA.indexOf("firefox")!=-1){thisUA="firefox"}else{if(thisUA.indexOf("opera")!=-1){thisUA="opera"}else{thisUA="unknown"}}}}}}}if("ontouchstart" in window){document.documentElement.classList.add("touch")}function dp_count_shares(){if(thisBody.hasClass("no-sns-count")||typeof j$.fn.dpShareCount!=="function"){return}let isCache=thisBody[0].dataset.ctSnsCache?true:false,cacheTime=thisBody[0].dataset.ctSnsCacheTime||86400000;j$(".ct-shares").dpShareCount({cache:isCache,cacheTime:parseInt(cacheTime),numSelector:".share-num"})}function dp_floating_widget(){if(!sideBarEle||!footerEle||!mainContent||!headerBar){return}if(fixWidget.length===0){return}let fixSidebarHeight=-180,stopY=0,stopElem=(document.getElementById("widget-container-bottom")!==null)?document.getElementById("widget-container-bottom"):footerEle,fixTopY=sideBarEle.offsetHeight+sideBarEle.offsetTop-fixWidget[0].offsetHeight-headerBar.offsetHeight,fixPos=headerBar.offsetHeight-74,visibleHeight=document.documentElement.clientHeight,bottomPos=0,footerHeight=0;if(stopElem){footerHeight=stopElem.offsetHeight+footerEle.offsetHeight+fixSidebarHeight}else{footerHeight=footerEle.offsetHeight+fixSidebarHeight}thisWindow.on("scroll",function(){stopY=thisWindow.scrollTop()+fixWidget.height();if(thisWindow.scrollTop()>fixTopY&&thisWindow.width()>1024){if(stopY>=stopElem.offsetTop){bottomPos=visibleHeight-(stopElem.offsetTop-thisWindow.scrollTop());if((footerHeight>window.innerHeight)&&(sideBarEle.offsetHeight>mainContent.offsetHeight)){fixWidget.css({position:"relative",top:"auto",bottom:"auto"})}else{fixWidget.css({position:"fixed",top:"auto",bottom:bottomPos})}}else{fixWidget.css({position:"fixed",top:fixPos,bottom:"auto"})}}if(thisWindow.scrollTop()<=fixTopY||thisWindow.width()<=1024){fixWidget.css({position:"relative",top:"auto",bottom:"auto"})}})}function dp_switch_cmt_trb(){var e=j$("#trackbacks_div"),b=j$(".commentlist_div"),d=j$("#commentlist_div"),a=j$(".trackbacks_div");d.off("click.switchcom");d.on("click.switchcom",function(){j$(this).addClass("active_tab").removeClass("inactive_tab");e.addClass("inactive_tab").removeClass("active_tab");if(!b.is(":visible")){b.fadeIn()}a.hide()});e.off("click.switchcom");e.on("click.switchcom",function(){j$(this).addClass("active_tab").removeClass("inactive_tab");d.addClass("inactive_tab").removeClass("active_tab");if(!a.is(":visible")){a.fadeIn()}b.hide()})}function dp_vertical_ddlist(){if(!j$(".slider_fx")[0]){return}j$(".widget_categories.slider_fx ul.children, .widget_nav_menu.slider_fx ul.sub-menu, .widget_pages.slider_fx ul.children, .dp_tab_widget.slider_fx .widget_categories ul.children").prev("a").css("padding-right","34px").after('<span class="v_sub_menu_btn icon-plus2"></span>');j$(".v_sub_menu_btn").off("click");j$(".v_sub_menu_btn").on("click",function(){let current=j$(this);current.next("ul:animated").stop();if(current.next("ul").is(":visible")){current.removeClass("open")}else{current.addClass("open")}current.next("ul:not(:animated)").slideToggle(200);return false})}function dp_slider_set_bgimg(a){let img=a.querySelector(".sl-img");if(!img){return}img=img.dataset.slideImg;if(img&&hdBannerInner){hdBannerInner.style.backgroundImage="url("+img+")"}}function dp_resize_embed_player(b,d,a){if(!b&&!d){return}let width=d.offsetWidth,height=d.offsetHeight,iframes=b.getElementsByTagName("iframe"),playerWidth,playerHe
1ight;a=a||16/9;if(!iframes){return}[].forEach.call(iframes,function(e){if(width/a<height){playerWidth=Math.ceil(height*a);e.style.cssText="width:"+playerWidth+"px;height:"+height+"px;top:0;left:"+(width-playerWidth)/2+"px;"}else{playerHeight=Math.ceil(width/a);e.style.cssText="width:"+width+"px;height:"+playerHeight+"px;left:0;top:"+(height-playerHeight)/2+"px;"}})}function dp_slider_play_pause_video(b,a){if(!b){return}let playOnlineVideo={func:function(e,g,f,d){if(d==="vimeo"){if((g!==null&&g>0)&&!f.classList.contains("played")){f.classList.add("played");dp_post_msg_player_api(e,{method:"setCurrentTime",value:g})}dp_post_msg_player_api(e,{method:"setVolume",value:0});dp_post_msg_player_api(e,{method:"play",value:1})}else{if(d==="youtube"){dp_post_msg_player_api(e,{event:"command",func:"mute"});dp_post_msg_player_api(e,{event:"command",func:"playVideo"});if(!f.classList.contains("played")){f.classList.add("played")}}}}};[].forEach.call(b,function(e,d){let media=e.getAttribute("class").split(" ")[1],control="pause",startTime=0,player=e.getElementsByClassName("sl-media")[0];if(!player||media==="image"){return}startTime=player.dataset.videoStart;if(e.classList.contains("swiper-slide-active")){control="play"}if(media==="vimeo"){switch(control){case"play":if(a===0&&!e.classList.contains("played")){let timer=setTimeout(function(){playOnlineVideo.func(player,startTime,e,media);clearTimeout(timer)},900)}else{playOnlineVideo.func(player,startTime,e,media)}break;case"pause":dp_post_msg_player_api(player,{method:"pause",value:1});break}}else{if(media==="youtube"){switch(control){case"play":if(a===0&&!e.classList.contains("played")){let timer=setTimeout(function(){playOnlineVideo.func(player,startTime,e,media);clearTimeout(timer)},900)}else{playOnlineVideo.func(player,startTime,e,media)}break;case"pause":dp_post_msg_player_api(player,{event:"command",func:"pauseVideo"});break}}else{if(media==="video"){if(control==="play"){player.play()}else{player.pause()}}}}})}function dp_post_msg_player_api(a,b){if(a==null||b==null){return}return a.contentWindow.postMessage(JSON.stringify(b),"*")}function dp_toggle_custom_toc(a){let $sel=j$(a);if(!$sel){return}if($sel.hasClass("allow-toggle")){let title=$sel.find(".toc_title_block");title.off("click.toctitle").on("click.toctitle",function(){this.classList.toggle("close-toc")})}let list=$sel.find("a"),top_margin=$sel.attr("data-margin")||0;list.off("click.tocmove").on("click.tocmove",function(){let href=this.getAttribute("href");if(!window.$page){window.$page=j$("body, html")}window.$page.animate({scrollTop:(href=="#"?$page:j$(href)).offset().top-top_margin},400,"swing");return false})}function dp_scrl_reveal(){if(typeof scrollReveal!="function"){return}let plxconf={reset:false,over:"0.8s",move:"80px",easing:"ease-out",mobile:true};window.sr=new scrollReveal(plxconf)}function dp_do_wow_js(){if(thisBody[0].dataset.useWow!=="true"){return}new WOW({offset:60}).init()}function dp_pjax(){let fx1=Barba.BaseTransition.extend({start:function(){Promise.all([this.newContainerLoading,this.shutter(pjax_time)]).then(this.finish.bind(this))},shutter:function(timer){return new Promise(function(resolve){thisBody[0].classList.add("pjax-loading");resolve()})},finish:function(){thisWindow.scrollTop(0);thisBody[0].classList.remove("pjax-loading");this.done()}}),fx2=Barba.BaseTransition.extend({start:function(){Promise.all([this.newContainerLoading,this.before()]).then(this.finish.bind(this))},before:function(){return new Promise(function(resolve){resolve()})},finish:function(){thisWindow.scrollTop(0);this.done()}}),gmapApiFlag=true,ignore=thisBody[0].dataset.pjaxIgnoreClass;if(thisBody[0].dataset.pjaxTransition){Barba.Pjax.getTransition=function(){return fx1}}else{Barba.Pjax.getTransition=function(){return fx2}}Barba.Dispatcher.on("newPageReady",function(cs,os,ctnr,newHtml){if(Barba.HistoryManager.history.length===1){return}let $newPageHead=j$("<head />").html(j$.parseHTML(newHtml.match(/<head[^>]*>([\s\S.]*)<\/head>/i)[0],document,true)),headTags=['meta[name="description"]','meta[property="og:type"]','meta[property="og:title"]','meta[property="og:url"]','meta[property="og:image"]','meta[property="og:description"]','link[rel="canonical"]',"#digipress-inline-css","#dp-image-compare-viewer-js",'[id^="dp-sc-"]'].join(","),newDoc=document.createElement("html"),newBodyDoc,newBodyClass,newHdBarClass,rerunJs;j$("head").find(headTags).remove();$newPageHead.find(headTags).appendTo("head");newDoc.innerHTML=newHtml;newBodyDoc=newDoc.getElementsByTagName("body")[0];newBodyClass=newBodyDoc.className;newHdBarClass=newDoc.getElementsByClassName("header_bar")[0].className;setTimeout(function(){document.body.className=newBodyClass;document.getElementById("header_bar").className=newHdBarClass},1000);let newHdBnr=ctnr.getElementsByClassName("header-banner-inner"),newHdBnrHeight=newHdBnr&&newHdBnr.length!==0?newHdBnr[0].offsetHeight:null,new_ct_hd=ctnr.getElementsByClassName("ct-whole"),new_ct_hd_h=new_ct_hd&&new_ct_hd.length!==0?new_ct_hd[0].offsetHeight:null;if(newHdBnr){hdBannerInner=newHdBnr[0]}if(typeof dp_ex_sc_load_event==="function"){skillsDiv=j$(".dp_sc_skillbars"),circularSkillDiv=j$(".dp_sc_skillcircles"),countUpDiv=j$(".dp_sc_countup"),faqDiv=j$(".dp_sc_faq"),faqCatDiv=j$(".dp_sc_faq_cats"),faqCat=j$(".dp_sc_faq_cat"),faqTitle=j$(".dp_sc_faq_trigger"),faqItemUl=j$(".dp_sc_faq_item_ul"),faqContent=j$(".dp_sc_faq_content"),faqMqClose=j$(".dp_sc_faq_mq_close"),timeLineItems=document.querySelectorAll(".fadefx > .tl_item"),cssSliderHashLinks=document.querySelectorAll(".dp_sc_css_slider .to_target_slide"),dpScRvBarTxt=document.querySelectorAll(".dp_sc_txtrevealbar"),dpScTxtReveal=document.querySelectorAll(".dp_sc_txtreveal")}mainContent=ctnr.getElementsByClassName("content")[0];thisWindow.on("scroll",function(){if(newHdBnrHeight!==null){dp_header_plx_motion(newHdBnr[0],newHdBnrHeight)}if(new_ct_hd!==null&&new_ct_hd_h!==null){dp_header_plx_motion(new_ct_hd[0],new_ct_hd_h)}if(typeof dp_ex_sc_scroll_event==="function"){dp_ex_sc_scroll_event(false)}});j$("body").fitVids({ignore:"#dpplayer, .unfit, .sl-media"});
1rerunJs=newDoc.querySelectorAll('script:not(#lodash-js-after):not([src]):not([type="application/ld+json"])');setTimeout(function(){for(let i=0;i<rerunJs.length;i++){if(rerunJs[i].className==="dp_sc_gmaps_trigger"){gmapApi=newDoc.querySelector('[src^="https://maps.googleapis.com/maps/api/js?key="]');if(gmapApi!==null){if(gmapApiFlag){gmapApi=gmapApi.outerHTML;j$("head").append(gmapApi);gmapApiFlag=false}let gmap=rerunJs[i].innerHTML;gmap=gmap.replace("document.addEventListener('DOMContentLoaded',function(){google.maps.event.addDomListener(window,'load',","").replace(");});","();");setTimeout(function(){eval(gmap)},1000)}}else{eval(rerunJs[i].innerHTML)}}},300);if(typeof FB!=="undefined"){FB.XFBML.parse()}if(typeof twttr!=="undefined"){twttr.widgets.load()}if(typeof ga=="function"){ga("send","pageview",location.pathname)}return false});Barba.Dispatcher.on("transitionCompleted",function(cs){if(Barba.HistoryManager.history.length===1){return}if(typeof dpRunMainSlider==="function"){dpRunMainSlider()}dp_scrl_reveal();dp_do_wow_js();dp_archive_widget_tab_list();dp_vertical_ddlist();dp_loop_grid();dp_text_animation_reveal();dp_count_shares();dp_switch_cmt_trb();dp_bheader_title_show_on_vertical_mode();dp_toggle_custom_toc(".dp_toc_container");j$(".datepicker-here").datepicker();ctWhole=document.getElementById("ct-whole"),single_article=j$(".single-article.post"),single_offset_top=single_article[0]?single_article.offset().top:null,single_nav=document.getElementById("single-nav"),single_float=document.getElementById("single_float_div");sideBarEle=document.getElementById("sidebar"),footerEle=document.getElementById("footer"),fixWidget=j$("#dp_fix_widget");if(ctWhole){ctWhole.classList.add("is-show")}if(typeof dp_ex_sc_accordion==="function"){dp_ex_sc_accordion()}if(typeof dp_ex_sc_tab==="function"){dp_ex_sc_tab()}if(typeof dp_ex_sc_table_show==="function"){dp_ex_sc_table_show()}if(typeof dp_ex_sc_crtable_scroll_right_end==="function"){dp_ex_sc_crtable_scroll_right_end()}if(typeof dp_ex_sc_faq==="function"){dp_ex_sc_faq()}if(typeof dp_ex_sc_flip_card==="function"){dp_ex_sc_flip_card()}if(typeof dp_ex_sc_url_navigate==="function"){dp_ex_sc_url_navigate(j$(".dp_sc_flip_card").find(".card_item"));dp_ex_sc_url_navigate(j$(".dp_sc_spanel").find(".spanel_item"))}if(typeof dp_ex_sc_css_slider_disable_hashlink==="function"){dp_ex_sc_css_slider_disable_hashlink(cssSliderHashLinks)}if(typeof dp_ex_sc_sticky_content==="function"){dp_ex_sc_sticky_content(".dp_sc_txtfading")}if(typeof dp_ex_sc_txtrevealbar==="function"){const observeOptions={rootMargin:"0px 0px -20% 0px"};const obseverTxtRevealBar=new IntersectionObserver(dp_ex_sc_txtrevealbar,observeOptions);Array.prototype.forEach.call(dpScRvBarTxt,function(target){obseverTxtRevealBar.observe(target)});Array.prototype.forEach.call(dpScTxtReveal,function(target){obseverTxtRevealBar.observe(target)});Array.prototype.forEach.call(timeLineItems,function(target){obseverTxtRevealBar.observe(target)})}setTimeout(function(){dp_slider_in_loop_article();dp_floating_widget();if(typeof dp_ex_sc_load_event==="function"){dp_ex_sc_load_event()}},800)});Barba.Pjax.Dom.wrapperId="dp-pjax-wrapper";Barba.Pjax.Dom.containerClass="dp-pjax-container";if(ignore){Barba.Pjax.ignoreClasses=ignore.trim().split(",")}Barba.Utils.xhrTimeout=10000;Barba.Pjax.start();Barba.Prefetch.init()}function dp_slider_in_loop_article(){if(typeof Swiper!=="function"){return}j$(".aslider").each(function(){new Swiper(this,{autoplay:true,speed:500,loop:true,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}});let imgs=j$(this).find(".figure-img");if(imgs[0]){imgs.off("click");imgs.on("click",function(){let modalCode=this.getAttribute("src");modalCode='<div id="modal_img"><img src="'+modalCode+'" alt="Scaled Image" class="entity-img" /></div>';thisBody.append(modalCode);let modal=j$("#modal_img");setTimeout(function(){modal.addClass("show")},10);modal.on("click",function(){let current=j$(this);current.removeClass("show");setTimeout(function(){current.remove()},300)})})}});j$(".alist_slider").each(function(){let mode=this.dataset.sliderMode,params={autoplay:{delay:parseInt(this.dataset.sliderDuration)},speed:parseInt(this.dataset.sliderSpeed),parallax:true,loop:true};if(this.dataset.sliderBtn){params.navigation={nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}}if(this.dataset.sliderNav&&this.dataset.sliderPageNavId){params.pagination={el:"#"+this.dataset.sliderPageNavId,clickable:true}}switch(mode){case"fade":params.effect="fade";break;case"horizontal":params.effect="slide";break;case"vertical":params.effect="vertical";break;case"split":params.slidesPerView=2;params.slidesPerGroup=2;params.loopFillGroupWithBlank=true;params.loopAdditionalSlides=parseInt(this.dataset.sliderNum,10);break;case"thumb":params.loopAdditionalSlides=parseInt(this.dataset.sliderNum,10);params.grabCursor=true;break;case"carousel":params.slidesPerView="auto";params.spaceBetween=1;break;case"center three":params.slidesPerView=1;params.centeredSlides=true;params.spaceBetween=1;params.breakpoints={768:{slidesPerView:2}};break;case"center five":params.slidesPerView=1;params.centeredSlides=true;params.spaceBetween=1;params.breakpoints={768:{slidesPerView:2},1260:{slidesPerView:4}};break;
1case"coverflow one":params.effect="coverflow";params.slidesPerView=1;params.centeredSlides=true;break;case"coverflow three":params.effect="coverflow";params.slidesPerView=1;params.centeredSlides=true;params.breakpoints={1024:{slidesPerView:2}};break;case"coverflow five":params.effect="coverflow";params.slidesPerView=1;params.centeredSlides=true;params.breakpoints={1024:{slidesPerView:2},1366:{slidesPerView:4}};break;case"creative one":params.effect="creative";params.creativeEffect={prev:{shadow:true,translate:[0,0,-600]},next:{translate:["100%",0,0]}};break;case"creative two":params.effect="creative";params.creativeEffect={prev:{shadow:true,translate:["-30%",0,-1]},next:{translate:["100%",0,0]}};break;case"creative three":params.effect="creative";params.creativeEffect={prev:{shadow:true,translate:["-125%",0,-800],rotate:[0,0,-90]},next:{shadow:true,translate:["125%",0,-800],rotate:[0,0,90]}};break;case"creative four":params.effect="creative";params.creativeEffect={prev:{shadow:true,origin:"left center",translate:["-5%",0,0],rotate:[0,100,0]},next:{origin:"right center",translate:["5%",0,0],rotate:[0,-100,0]}};break;case"creative five":params.effect="creative";params.creativeEffect={prev:{shadow:true,origin:"center top",translate:[0,"-28.5%",-800],rotate:[100,0,0]},next:{origin:"center bottom",translate:[0,"28.5%",-800],rotate:[-100,0,0]}};break;case"creative six":params.effect="creative";params.creativeEffect={prev:{shadow:true,translate:[0,0,-1800],rotate:[0,-180,0]},next:{shadow:true,translate:[0,0,-1800],rotate:[0,180,0]}};break}this.classList.remove("loading");let mainSlider=new Swiper(this,params);if(mode==="thumb"){let opt={loop:true,loopAdditionalSlides:parseInt(this.dataset.sliderNum,10),speed:parseInt(this.dataset.sliderSpeed),spaceBetween:1,slidesPerView:5,centeredSlides:true,touchRatio:0.2,slideToClickedSlide:true,direction:"horizontal",breakpoints:{1023:{direction:"vertical"}},on:{init:function(){let c=this;setTimeout(function(){c.el.classList.remove("loading")},400)},click:function(){mainSlider.autoplay.stop()}}};let navSlider=new Swiper("#"+this.dataset.sliderNavId,opt);mainSlider.controller.control=navSlider;navSlider.controller.control=mainSlider}})}function dp_loop_grid(){j$(".loop-section.portfolio, .loop-section.magazine").each(function(){let $this=j$(this),$filter_form=$this.find(".loop-filter-form"),$loop_div=$this.find(".loop-div");$loop_div.each(function(){let $this_loop=j$(this),$grid=$this_loop.imagesLoaded(function(){$grid.isotope({itemSelector:".loop-article",percentPosition:true,masonry:{columnWidth:$this_loop.find(".grid-sizer")[0],gutter:$this_loop.find(".gutter-sizer")[0]}})});$grid.on("layoutComplete",function(b,a){this.classList.add("is-ready")});if($filter_form[0]){let $chks=$filter_form.find("input");$chks.off("change.lpfilter").on("change.lpfilter",function(){j$(this).parent(".flt-btn").toggleClass("active");let inclusives=[];$chks.each(function(a,b){if(b.checked){inclusives.push(b.value)}});let filterVal=inclusives.length?inclusives.join(","):"*";$grid.isotope({filter:filterVal})})}})})}function dp_text_animation_reveal(){let phrase=j$(".ani-text.gradually");if(!phrase[0]){return}phrase.each(function(){let words=j$(this);words.html(words.text().replace(/([^\x00-\x80]|[!"#$%&'()\*\+\-\.,\/:;<=>?@\[\\\]^_`{|}~]|\w)/g,"<span class='letter'>$&</span>"))});anime.timeline({loop:false}).add({targets:".ani-text.gradually",opacity:[0,1],duration:0}).add({targets:".ani-text.gradually.hd-title .letter",translateY:[-10,0],opacity:[0,1],easing:"easeOutExpo",duration:1200,delay:function(b,a){return 1800+60*a}});anime.timeline({loop:false}).add({targets:".ani-text.gradually.hd-caption .letter",opacity:[0,1],easing:"easeOutExpo",duration:2000,delay:function(b,a){return 3000+10*a}})}function dp_bheader_title_show_on_vertical_mode(){let bh=document.getElementById("banner_header");if(bh){if(bh.classList.contains("show-by-txtshadow")){bh.classList.add("is-show")}}}let plxFrameId,plxTicking=false;function dp_header_plx_motion(a,b){if(plxTicking){return}if(!a){return}if(a.length===0){return}cancelAnimationFrame(plxFrameId);plxFrameId=requestAnimationFrame(function(){plxTicking=false;let st=window.pageYOffset,posY=Math.floor(st*0.8),filter=Math.floor(st*0.14);if(st<b+124){a.style.transform="translate3d(0,"+posY+"px,0)";if(filter<=100){a.style.filter="brightness("+(100-filter)+"%)";a.style.webkitFilter="brightness("+(100-filter)+"%)"}}});plxTicking=true}let dpScrollFrameId;function dp_scroll_event(){cancelAnimationFrame(dpScrollFrameId);dpScrollFrameId=window.requestAnimationFrame(function(){scroll_y=document.documentElement.scrollTop||document.body.scrollTop;if(single_offset_top!==null){if(single_nav!==null){if(scroll_y>=single_offset_top){single_nav.classList.add("show")}else{single_nav.classList.remove("show")}}if(single_float!==null){if(scroll_y>=single_offset_top){if(scroll_y>mainContent.offsetTop+mainContent.offsetHeight){single_float.classList.remove("show")}else{single_float.classList.add("show")}}else{single_float.classList.remove("show")}}}if(scroll_y>=400){headerBar.classList.add("float");cpRight.classList.add("is-show");dpGotop.style.cssText="transform: translate(0,0);opacity:1;"}else{headerBar.classList.remove("float");cpRight.classList.remove("is-show");dpGotop.style.cssText="transform: translate(0,40px);opacity:0;"}})}function dp_custom_scrollbar_win(){if(navigator.platform.indexOf("Win")!==-1){thisBody.addClass("windows")}}function dp_archive_widget_tab_list(){const a=document.querySelectorAll(".dp_role_tab_list_area");Array.prototype.forEach.call(a,function(f){const b=f.querySelectorAll(".dp_role_tab_list__btn"),d=f.nextElementSibling.querySelectorAll(".dp_role_tab_panels__item");Array.prototype.forEach.call(b,function(g){g.addEventListener("click",function(k){const h=k.currentTarget;if(h.getAttribute("aria-selected")==="false"){const j=document.getElementById(h.getAttribute("aria-controls"));Array.prototype.forEach.call(b,function(l){l.setAttribute("aria-selected","false")});h.setAttribute("aria-selected","true");Array.prototype.forEach.call(d,function(l){l.setAttribute("aria-hidden","true")});j.setAttribute("aria-hidden","false")}})})})}thisWindow.on({load:function(a){dp_slider_in_loop_article();dp_floating_widget()},resize:function(a){},scroll:function(a){},beforeunload:function(a){}});function dp_scroll_event_trigger(){dp_scroll_event();if(thisUA=="chrome"){if(hdBannerInner){dp_header_plx_motion(hdBannerInner,hdBannerInnerHeight)}if(ctWhole){dp_header_plx_motion(ctWhole,ctWholeHeight)}}}document.addEventListener("scroll",dp_scroll_event_trigger,{passive:true});(function(){if(typeof dp_theme_noactivate_copyright!=="undefined"){dp_theme_noactivate_copyright()}dp_check_user_agent();thisBody.fitVids({ignore:"#dpplayer, .unfit, .sl-media"});dp_scrl_reveal();dp_do_wow_js();dp_archive_widget_tab_list();dp_vertical_ddlist();dp_custom_scrollbar_win();dp_loop_grid();dp_bheader_title_show_on_vertical_mode();dp_text_animation_reveal();dp_count_shares();dp_toggle_custom_toc(".dp_toc_container");dp_switch_cmt_trb();if(thisBody[0].dataset.usePjax){dp_pjax()}if(ctWhole){ctWhole.classList.add("is-show")}if(thisHtml.hasClass("touch")){footerEle.classList.add("touch-device")}const a=document.getElementById("offcanvas_menu_trigger");if(a){a.addEventListener("click",function(b){thisBody[0].classList.toggle("offcanvas_area_open")})}let slideTab=j$(".dp-slide");slideTab.prev().css("cursor","pointer");slideTab.prev().on("click",function(){let $this=j$(this).next();if($this.length){$this.slideToggle()}});dpGotop.addEventListener("click",function(){j$("body,html").animate({scrollTop:0},600,"easeOutQuart");return false})})();

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.