티스토리 수익 글 보기
(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[“marketing”],{5592:(e,t,s)=>{“use strict”;s(78903);var i=s(38722),n=s(21403),a=s(97797);let r=”row-is-visible”;(0,n.lB)(“.js-type-in”,e=>{(0,i.Gz)(e)||d(e)});let l=new IntersectionObserver(o,{rootMargin:`-${i.FF}% 0% -${i.fY}% 0%`,threshold:i.Lr});function o(e){for(let t of e)if(t.isIntersecting?u(t.target):d(t.target),t.target.classList.contains(“js-type-in-trigger”))for(let e of t.target.querySelectorAll(“.js-build-number”))t.isIntersecting?u(e):d(e)}function d(e){if(e.classList.contains(“js-type-in”)||e.classList.contains(“js-type-in-trigger”)){for(let t of e.querySelectorAll(“.js-type-row, .js-type-letters”))if(t.classList.contains(“js-type-letters”)&&t.children.length>0){for(let e of t.childNodes)if(“#text”===e.nodeName){let t=document.createElement(“span”);t.textContent=e.textContent,e.replaceWith(t)}for(let e of t.querySelectorAll(“*”))e.classList.add(“js-type-letters”),e.style.visibility=”hidden”;t.classList.remove(“js-type-letters”)}else t.style.visibility=”hidden”,t.classList.remove(r);e.classList.remove(i._E)}}function u(e){if(e.classList.contains(i._E)||!e.classList.contains(“js-type-in”)&&!e.classList.contains(“js-type-in-trigger”))return;e.classList.add(i._E);let t=e.querySelectorAll(“.js-type-row, .js-type-letters”),s=Number(e.getAttribute(“data-type-delay”)||20),n=Number(e.getAttribute(“data-type-row-delay”)||200);e.classList.contains(“js-build-number”)?setTimeout(()=>(function e(t,s,i){i%1!=0?(s+=Math.max(.1,i/20),s=Number(s.toFixed(1))):(s+=Math.max(1,Number(i/35)),s=Number(s.toFixed(0))),s>i&&(s=i),t.textContent=s.toString(),s>=i||setTimeout(()=>e(t,s,i),Number(t.getAttribute(“data-increment-speed”)||75))})(e,0,Number(e.textContent)),s):setTimeout(()=>(function e(t,s,n,a,l){if(n>=s.length)return;let o=s[n];if(!t.classList.contains(i._E)){“”!==a&&(o.textContent=a);return}if(o.classList.contains(“js-type-row”)){let i=Number(o.getAttribute(“data-type-row-delay”)||l);o.style.visibility=”visible”,o.classList.add(r),n++,setTimeout(()=>e(t,s,n,””,i),i);return}”hidden”===o.style.visibility&&null!=o.textContent&&(a=o.textContent,o.textContent=””,o.style.visibility=”visible”,o.classList.add(“animation-is-typing”)),null!=o.textContent&&a.length>o.textContent.length?o.textContent=a.substr(0,o.textContent.length+1):++ne(t,s,n,a,l),20)})(e,t,0,””,n),s)}(0,n.lB)(“.js-type-in, .js-type-in-trigger”,e=>{if((0,i.Gz)(e))return void(0,i.Re)(e);let t=(0,i.Jw)(e);if(t.isDefault)return l.observe(e);new IntersectionObserver(o,{rootMargin:`-${t.marginTop}% 0% -${t.marginBottom}% 0%`,threshold:t.threshold}).observe(e)}),(0,a.on)(“click”,”.js-type-restart”,e=>{var t;d(t=e.currentTarget.closest(“.js-type-in”)),u(t)}),(0,n.lB)(“.js-dialog-close-on-focusout”,e=>{e.addEventListener(“focusout”,t=>{let s=t.relatedTarget;s&&(e.contains(s)||(e.open=!1))})}),s(59264);let c=new IntersectionObserver(function(e){for(let t of e)if(t.isIntersecting)for(let e of document.querySelectorAll(“.js-scrollnav-item”))e.classList.toggle(“selected”,e.getAttribute(“href”)===`#${t.target.id}`)},{root:null,rootMargin:”0px”,threshold:.1});(0,n.lB)(“.js-section”,e=>c.observe(e));let g=window.scrollY,b=new IntersectionObserver(([e])=>{if(!e)return;let t=window.scrollY-g;e.target.classList.toggle(“is-stuck”,e.intersectionRatio<1&&t>0),g=window.scrollY},{threshold:[1]});(0,n.lB)(“.js-sticky-state”,{add(e){e.style.top=”-1px”,b.observe(e)},remove(e){b.unobserve(e)}}),s(95911),s(33477),(0,a.on)(“click”,”.sub-nav-mktg.on”,e=>{let t=e.currentTarget;t.querySelector(“.sub-nav-mktg-wrapper”).contains(e.target)||t.classList.remove(“on”)}),(0,a.on)(“click”,”.js-toggler-container .js-toggler-target”,function(e){let t=e.currentTarget.closest(“.js-toggler-container”),s=t?t.querySelector(“.sub-nav-mktg-toggle”):null;s&&s.setAttribute(“aria-expanded”,String(“true”!==s.getAttribute(“aria-expanded”)))}),(0,a.on)(“click”,”.sub-nav-mktg.scrollnav.on .sub-nav-mktg-link”,e=>{e.currentTarget.closest(“.sub-nav-mktg”).classList.remove(“on”)}),(0,a.on)(“click”,”.sub-nav-mktg:not(.on) .sub-nav-mktg-link”,e=>{window.innerWidth>=1280||(e.preventDefault(),e.currentTarget.closest(“.sub-nav-mktg”).classList.add(“on”))}),(0,a.on)(“click”,”.js-video-play-dialog”,e=>{let t=e.currentTarget.getAttribute(“data-show-dialog-id”);if(!t)return;let s=document.getElementById(t);if(!s)return;let i=s.querySelector(“.js-video”);i instanceof HTMLIFrameElement&&(i.src=i.getAttribute(“data-src”)||””),i instanceof HTMLMediaElement&&i.play()}),(0,n.lB)(“.js-video-dialog”,e=>{e.addEventListener(“close”,()=>{let t=e.querySelector(“.js-video”);t instanceof HTMLIFrameElement&&t.removeAttribute(“src”),t instanceof HTMLMediaElement&&t.pause()})}),(0,a.on)(“click”,”.js-video-play”,function(e){let t=e.currentTarget.closest(“.js-video-container”),s=t.querySelector(“.js-video”);”details”===t.tagName.toLowerCase()&&t.addEventListener(“details-dialog-close”,function(){s instanceof HTMLIFrameElement&&s.removeAttribute(“src”),s instanceof HTMLMediaElement&&s.pause(),window.setTimeout(function(){t.classList.remove(“is-expanded”)},10)}),t.classList.contains(“is-expanded”)?(s instanceof HTMLIFrameElement&&s.removeAttribute(“src”),t.classList.remove(“is-expanded”),s instanceof HTMLMediaElement&&s.pause()):(s instanceof HTMLIFrameElement&&(s.src=s.getAttribute(“data-src”)||””),s instanceof HTMLMediaElement&&s.play(),t.classList.add(“is-expanded”)),function(e,t=0){let s=e.getBoundingClientRect(),i=s.top-t,n=s.bottom-window.innerHeight+t;i<0?window.scrollBy(0,i):n>0&&window.scrollBy(0,n)}(s,20)}),(0,s(39595).Se)({“active-global-banners”:()=>s.e(“app_assets_modules_marketing_active-global-banners_ts”).then(s.bind(s,39389)),”audio-player”:()=>s.e(“app_assets_modules_marketing_audio-player_ts”).then(s.bind(s,25933)),”before-after”:()=>s.e(“app_assets_modules_marketing_before-after_ts”).then(s.bind(s,46997)),”card-skew”:()=>s.e(“app_assets_modules_marketing_card-skew_ts”).then(s.bind(s,56966)),”global-banner”:()=>s.e(“app_assets_modules_marketing_global-banner_ts”).then(s.bind(s,42241)),”segmented-nav”:()=>s.e(“app_assets_modules_marketing_segmented-nav_ts”).then(s.bind(s,97533)),”story-body”:()=>s.e(“app_assets_modules_marketing_story-body-element_ts”).then(s.bind(s,80280)),”testimonials-carousel”:()=>s.e(“app_assets_modules_marketing_testimonials-carousel-element_ts”).then(s.bind(s,83625)),”locale-selector”:()=>s.e(“app_assets_modules_marketing_locale-selector-element_ts”).then(s.bind(s,16963))})},33477:()=>{if(window.location.hash){let e=document.querySelector(`.faq-mktg-item${window.location.hash} details`);e&&(e.open=!0)}},38722:(e,t,s)=>{“use strict”;s.d(t,{FF:()=>l,Gz:()=>c,Jw:()=>b,Lr:()=>o,Re:()=>g,_E:()=>n,fY:()=>r});var i=s(21403);let n=”build-in-animate”,a=”build-in-reduced”,r=30,l=0,o=0;(0,i.lB)(“.js-build-in-trigger[data-build-in-stagger], .js-build-in-group[data-build-in-stagger]”,e=>{let t=parseInt(e.getAttribute(“data-build-in-stagger”)),s=e.querySelectorAll(“.js-build-in-item”);for(let e=0;e{let t=Number(e.getAttribute(“data-build-delay”)||0);e instanceof HTMLElement&&(e.style.transitionDelay=`${t}ms`)}),(0,i.lB)(“.js-build-in, .js-build-in-trigger”,e=>{if(c(e))return void g(e);let t=b(e);if(t.isDefault)return d.observe(e);new IntersectionObserver(u,{rootMargin:`-${t.marginTop}% 0% -${t.marginBottom}% 0%`,threshold:t.threshold}).observe(e)}),(0,i.lB)(“.js-viewport-aware-video”,{constructor:HTMLMediaElement,add(e){(e=>{let t=m(e);if(!t)return;let{playAriaLabel:s,pauseAriaLabel:i}=t;e.setAttribute(“aria-label”,e.paused?s:i),e.addEventListener(“play”,()=>{e.setAttribute(“aria-label”,i)}),e.addEventListener(“pause”,()=>{e.setAttribute(“aria-label”,s)})})(e);let t=e=>{e.paused?e.play().catch(()=>{}):e.pause()};if(e.addEventListener(“play”,()=>{e.classList.remove(“looping-paused-mktg”)}),e.addEventListener(“pause”,()=>{e.classList.add(“looping-paused-mktg”)}),e.addEventListener(“click”,()=>{t(e)}),e.addEventListener(“keydown”,s=>{“Space”===s.code&&(s.preventDefault(),t(e))}),c(e)){e.pause(),e.classList.add(“looping-paused-mktg”);return}let s=e.getAttribute(“data-threshold”)||o,i=e.getAttribute(“data-build-margin-bottom”)||20;new IntersectionObserver(t=>{for(let s of t)s.isIntersecting?e.play().catch(()=>{}):e.pause()},{rootMargin:`-${l}% 0% -${i}% 0%`,threshold:Number(s)}).observe(e)}}),(0,i.lB)(“.js-animation-pause-toggle”,e=>{let t=m(e);t&&e.setAttribute(“aria-label”,”false”===e.getAttribute(“aria-pressed”)?t.pauseAriaLabel:t.playAriaLabel),e.addEventListener(“click”,()=>{let s=e.getAttribute(“data-target-id”);if(!s)return;let i=document.getElementById(s);if(!i)return;let n=”true”===(i.getAttribute(“data-animation-paused”)||”false”);i.setAttribute(“data-animation-paused”,n?”false”:”true”),e.setAttribute(“aria-pressed”,n?”false”:”true”),t&&e.setAttribute(“aria-label”,n?t.pauseAriaLabel:t.playAriaLabel)})})}},e=>{e.O(0,[“vendors-node_modules_oddbird_popover-polyfill_dist_popover-fn_js”,”vendors-node_modules_stacktrace-parser_dist_stack-trace-parser_esm_js-node_modules_github_bro-2f4e04″,”vendors-node_modules_github_selector-observer_dist_index_esm_js”,”vendors-node_modules_github_mini-throttle_dist_index_js-node_modules_delegated-events_dist_in-fec2e5″,”app_assets_modules_marketing_analytics-events_ts-app_assets_modules_marketing_header_ts-app_a-880b13″],()=>e(e.s=5592)),e.O()}]);
//# sourceMappingURL=marketing-72960f82bc3f.js.map