티스토리 수익 글 보기

티스토리 수익 글 보기

“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[“marketing-readme”],{39809:(e,t,r)=>{var n=r(21403),i=r(97797);let o=”data-skew-x”,s=”data-skew-y”,a=”data-skew-target-x”,u=”data-skew-target-y”;(0,n.lB)(“.js-readme-rotate”,e=>{e.addEventListener(“mousemove”,e=>{let t=e.target;if(null===t)return;let r=t.getBoundingClientRect(),n=e.x-r.left,i=e.y-r.top,o=n/r.width,s=(i/r.height-.5)*4,l=(o-.5)*4;s=Math.round((s+Number.EPSILON)*1e3)/1e3,l=Math.round((l+Number.EPSILON)*1e3)/1e3,t.setAttribute(a,`${s}`),t.setAttribute(u,`${l}`)}),e.addEventListener(“mouseleave”,e=>{let t=e.target;null!==t&&(t.setAttribute(a,”0″),t.setAttribute(u,”0″))}),e.addEventListener(“mouseenter”,()=>{“true”!==e.getAttribute(“data-animation-is-running”)&&(e.setAttribute(“data-animation-is-running”,”true”),window.requestAnimationFrame(()=>(function e(t){var r;let n,i,l,c,d=(n=(r=t).getAttribute(o)||”0″,i=r.getAttribute(s)||”0″,l=r.getAttribute(a)||”0″,c=r.getAttribute(u)||”0″,{x:parseFloat(n),y:parseFloat(i),targetX:parseFloat(l),targetY:parseFloat(c)});if(0===d.x&&0===d.y&&0===d.targetX&&0===d.targetY)return void t.setAttribute(“data-animation-is-running”,”false”);let f=d.x+(d.targetX-d.x)*.1,p=d.y+(d.targetY-d.y)*.1;(f=Math.round((f+Number.EPSILON)*1e3)/1e3)*f<.005&&(f=0),(p=Math.round((p+Number.EPSILON)*1e3)/1e3)*p<.005&&(p=0),t.setAttribute(o,`${f}`),t.setAttribute(s,`${p}`),t.style.transform=`perspective(1000px) rotateX(${-f}deg) rotateY(${p}deg)`,window.requestAnimationFrame(()=>e(t))})(e)))})}),(0,n.lB)(“.readme-story-body aside p”,e=>{if(null==e.textContent)return;let t=document.createElement(“a”);t.classList.add(“ml-2”),t.classList.add(“p-1”);let r=`\u{201C}${e.textContent}\u{201D}`;t.href=`https://twitter.com/intent/tweet?url=${encodeURI(window.location.href)}&text=${encodeURI(r)}`,t.setAttribute(“aria-label”,`Tweet: ${e.textContent}`),t.setAttribute(“target”,”_blank”),t.setAttribute(“rel”,”noopener”),e.appendChild(t),t.appendChild(document.createElement(“span”)).classList.add(“readme-story-blockquote-tweet”)}),(0,i.on)(“click”,”.js-readme-story-body-expand”,function(e){e.preventDefault();let t=e.currentTarget.closest(“.readme-story-body-collapsed”);t&&t.classList.remove(“readme-story-body-collapsed”)}),(0,i.on)(“submit”,”.js-newsletter-signup-form”,()=>{let e=document.querySelector(“.js-newsletter-flash”);e.classList.remove(“v-hidden”),e.ariaHidden=”false”,document.querySelector(“.js-newsletter-email-input”).value=””}),(0,i.on)(“submit”,”.js-nominate-form”,e=>{let t=!1;for(let e of document.querySelectorAll(‘.js-nominate-form input[type=”text”], .js-nominate-form textarea’)){let r=e.localName,n=e.name,i=””===e.value.trim(),o=document.querySelector(`${r}[name=”${n}”] ~ .js-error`);o?.classList.toggle(“d-none”,!i),e.setAttribute(“aria-invalid”,String(i)),i&&(t=!0)}if(t){e.preventDefault();let t=document.querySelector(‘.js-nominate-form input[aria-invalid=”true”]’);t?.focus();return}})},97797:(e,t,r)=>{function n(){if(!(this instanceof n))return new n;this.size=0,this.uid=0,this.selectors=[],this.selectorObjects={},this.indexes=Object.create(this.indexes),this.activeIndexes=[]}r.d(t,{h:()=>F,on:()=>j});var i,o=window.document.documentElement,s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector;n.prototype.matchesSelector=function(e,t){return s.call(e,t)},n.prototype.querySelectorAll=function(e,t){return t.querySelectorAll(e)},n.prototype.indexes=[];var a=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;n.prototype.indexes.push({name:”ID”,selector:function(e){var t;if(t=e.match(a))return t[0].slice(1)},element:function(e){if(e.id)return[e.id]}});var u=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;n.prototype.indexes.push({name:”CLASS”,selector:function(e){var t;if(t=e.match(u))return t[0].slice(1)},element:function(e){var t=e.className;if(t){if(“string”==typeof t)return t.split(/\s/);else if(“object”==typeof t&&”baseVal”in t)return t.baseVal.split(/\s/)}}});var l=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;n.prototype.indexes.push({name:”TAG”,selector:function(e){var t;if(t=e.match(l))return t[0].toUpperCase()},element:function(e){return[e.nodeName.toUpperCase()]}}),n.prototype.indexes.default={name:”UNIVERSAL”,selector:function(){return!0},element:function(){return[!0]}},i=”function”==typeof window.Map?window.Map:function(){function e(){this.map={}}return e.prototype.get=function(e){return this.map[e+” “]},e.prototype.set=function(e,t){this.map[e+” “]=t},e}();var c=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|[‘”][^'”]*[‘”]|[^\[\]'”]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function d(e,t){var r,n,i,o,s,a,u=(e=e.slice(0).concat(e.default)).length,l=t,d=[];do if(c.exec(“”),(i=c.exec(l))&&(l=i[3],i[2]||!l)){for(r=0;r3&&void 0!==arguments[3]?arguments[3]:{},o=!!i.capture,s=o?h:p,a=s[e];a||(a=new n,s[e]=a,document.addEventListener(e,S,o)),a.add(t,r)}function F(e,t,r){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r}))}}},e=>{e.O(0,[“vendors-node_modules_github_selector-observer_dist_index_esm_js”],()=>e(e.s=39809)),e.O()}]); //# sourceMappingURL=marketing-readme-79eaf3217453.js.map