-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.5b2c7fa5.js
16 lines (15 loc) · 13.6 KB
/
app.5b2c7fa5.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r},p.cache={};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;f<n.length;f++)u(n[f]);if(n.length){var c=u(n[n.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=c:"function"==typeof define&&define.amd?define(function(){return c}):t&&(this[t]=c)}return u}({"tTeS":[function(require,module,exports) {
},{"./../images/bg1.png":[["bg1.a11ada0c.png","nLda"],"nLda"],"./../images/logo-vartical-1.svg":[["logo-vartical-1.45f1880e.svg","+OOs"],"+OOs"],"./../images/bg6.png":[["bg6.b50010b4.png","39io"],"39io"],"./../images/bg2.png":[["bg2.b9197049.png","5CRe"],"5CRe"],"./../images/bg3.png":[["bg3.b97908d0.png","9pVW"],"9pVW"],"./../images/bg4.png":[["bg4.6d4008c8.png","PqNN"],"PqNN"],"./../images/bg5.png":[["bg5.18026689.png","/JOD"],"/JOD"],"./../images/graffiti-XX.png":[["graffiti-XX.712576e2.png","NiZ0"],"NiZ0"],"./../images/graffiti-1.png":[["graffiti-1.c2915c20.png","PEOl"],"PEOl"],"./../images/graffiti-2.png":[["graffiti-2.86d049c8.png","6RsP"],"6RsP"],"./../images/graffiti-3.png":[["graffiti-3.ea559eb4.png","Nm6X"],"Nm6X"],"./../images/graffiti-4.png":[["graffiti-4.72cbba77.png","ZoRR"],"ZoRR"],"./../images/graffiti-5.png":[["graffiti-5.f59e61e4.png","x+U+"],"x+U+"],"./../images/graffiti-6.png":[["graffiti-6.4269aa0f.png","MnK5"],"MnK5"],"./../images/graffiti-7.png":[["graffiti-7.f106eaf0.png","F0/Y"],"F0/Y"],"./../images/graffiti-8.png":[["graffiti-8.035c590c.png","Vco6"],"Vco6"],"./../images/graffiti-9.png":[["graffiti-9.ef9c8924.png","CBGw"],"CBGw"],"./../images/graffiti-10.png":[["graffiti-10.2eb2a7aa.png","6c8o"],"6c8o"],"./../images/graffiti-11.png":[["graffiti-11.2a24cc1b.png","kgdG"],"kgdG"],"./../images/unko3.png":[["unko3.59ba388a.png","l0sG"],"l0sG"],"./../images/unko2.png":[["unko2.52946ac4.png","gLDn"],"gLDn"]}],"LkB6":[function(require,module,exports) {
var define;
var global = arguments[3];
var t,e=arguments[3];!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof t&&t.amd?t(n):e.SweetScroll=n()}(this,function(){"use strict";var t=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},e=!("undefined"==typeof window||!window.document||!window.document.createElement),n=!!e&&(window.history&&"pushState"in window.history&&"file:"!==window.location.protocol),o=function(){var t=!1;if(!e)return t;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){t=!0}}))}catch(n){}return t}(),i=function(t){return"string"==typeof t},r=function(t){return"function"==typeof t},l=function(t){return Array.isArray(t)},a=function(t){return t instanceof Element},u=function(t,e){return t&&t.hasOwnProperty(e)},s=e?window.requestAnimationFrame.bind(window):null,c=e?window.cancelAnimationFrame.bind(window):null,f=Math.cos,h=Math.sin,p=Math.pow,d=Math.sqrt,v=Math.PI,g={linear:function(t){return t},easeInQuad:function(t,e,n,o,i){return o*(e/=i)*e+n},easeOutQuad:function(t,e,n,o,i){return-o*(e/=i)*(e-2)+n},easeInOutQuad:function(t,e,n,o,i){return(e/=i/2)<1?o/2*e*e+n:-o/2*(--e*(e-2)-1)+n},easeInCubic:function(t,e,n,o,i){return o*(e/=i)*e*e+n},easeOutCubic:function(t,e,n,o,i){return o*((e=e/i-1)*e*e+1)+n},easeInOutCubic:function(t,e,n,o,i){return(e/=i/2)<1?o/2*e*e*e+n:o/2*((e-=2)*e*e+2)+n},easeInQuart:function(t,e,n,o,i){return o*(e/=i)*e*e*e+n},easeOutQuart:function(t,e,n,o,i){return-o*((e=e/i-1)*e*e*e-1)+n},easeInOutQuart:function(t,e,n,o,i){return(e/=i/2)<1?o/2*e*e*e*e+n:-o/2*((e-=2)*e*e*e-2)+n},easeInQuint:function(t,e,n,o,i){return o*(e/=i)*e*e*e*e+n},easeOutQuint:function(t,e,n,o,i){return o*((e=e/i-1)*e*e*e*e+1)+n},easeInOutQuint:function(t,e,n,o,i){return(e/=i/2)<1?o/2*e*e*e*e*e+n:o/2*((e-=2)*e*e*e*e+2)+n},easeInSine:function(t,e,n,o,i){return-o*f(e/i*(v/2))+o+n},easeOutSine:function(t,e,n,o,i){return o*h(e/i*(v/2))+n},easeInOutSine:function(t,e,n,o,i){return-o/2*(f(v*e/i)-1)+n},easeInExpo:function(t,e,n,o,i){return 0===e?n:o*p(2,10*(e/i-1))+n},easeOutExpo:function(t,e,n,o,i){return e===i?n+o:o*(1-p(2,-10*e/i))+n},easeInOutExpo:function(t,e,n,o,i){return 0===e?n:e===i?n+o:(e/=i/2)<1?o/2*p(2,10*(e-1))+n:o/2*(2-p(2,-10*--e))+n},easeInCirc:function(t,e,n,o,i){return-o*(d(1-(e/=i)*e)-1)+n},easeOutCirc:function(t,e,n,o,i){return o*d(1-(e=e/i-1)*e)+n},easeInOutCirc:function(t,e,n,o,i){return(e/=i/2)<1?-o/2*(d(1-e*e)-1)+n:o/2*(d(1-(e-=2)*e)+1)+n}},m={y:"scrollTop",x:"scrollLeft"},w="pageYOffset",y="pageXOffset",x=function(t,e){return t[m[e]]},b=function(t,e,n){t[m[n]]=e},O=function(t,e){var n=t.getBoundingClientRect();if(n.width||n.height){var o={top:0,left:0},i=void 0;if(C(e))i=document.documentElement,o.top=window[w],o.left=window[y];else{var r=(i=e).getBoundingClientRect();o.top=-1*r.top+i[m.y],o.left=-1*r.left+i[m.x]}return{top:n.top+o.top-i.clientTop,left:n.left+o.left-i.clientLeft}}return n},M=function(t){return Array.prototype.slice.call(t?document.querySelectorAll(t):[])},$=function(t){return M(t).shift()||null},E=function(t,e){if(a(e))return t===e;for(var n=M(e),o=n.length;--o>=0&&n[o]!==t;);return o>-1},C=function(t){return t===document.documentElement||t===document.body},I=function(t,e){for(var n=m[e],o=a(t)?[t]:M(t),i=document.createElement("div"),r=0;r<o.length;r+=1){var l=o[r],u=null;if(l[n]>0)u=l;else{var s=window.outerWidth,c=window.innerWidth,f=s?s/c:1;i.style.width=l.clientWidth+1+"px",i.style.height=l.clientHeight+1+"px",l.appendChild(i),l[n]=Math.max(1,1.5/f),l[n]>0&&(u=l),l[n]=0,l.removeChild(i)}if(u)return u}return null},k=function(t){return Math.max(t.scrollHeight,t.clientHeight,t.offsetHeight)},S=function(t){return Math.max(t.scrollWidth,t.clientWidth,t.offsetWidth)},A=function(t){return{width:S(t),height:k(t)}},P=function(t){var e=C(t);return{viewport:{width:e?Math.min(window.innerWidth,document.documentElement.clientWidth):t.clientWidth,height:e?window.innerHeight:t.clientHeight},size:e?{width:Math.max(S(document.body),S(document.documentElement)),height:Math.max(k(document.body),k(document.documentElement))}:A(t)}},Q=e?"onwheel"in document?"wheel":"mousewheel":"wheel",L=function(t,e,n,i,r){n.split(" ").forEach(function(n){t[e](function(t){return"wheel"===t?Q:t}(n),i,!!o&&{passive:r})})},W=function(t,e,n,o){L(t,"addEventListener",e,n,o)},z=function(t,e,n,o){L(t,"removeEventListener",e,n,o)},H=/^(\+|-)=(\d+(?:\.\d+)?)$/,j=function(e,n){var o,r={top:0,left:0,relative:!1};if(u(e,"top")||u(e,"left"))r=t({},r,e);else if(l(e))if(e.length>1)r.top=e[0],r.left=e[1];else{if(1!==e.length)return null;r.top=n?e[0]:0,r.left=n?0:e[0]}else if(!l(o=e)&&o-parseFloat(o)+1>=0)n?r.top=e:r.left=e;else{if(!i(e))return null;var a=e.trim().match(H);if(!a)return null;var s=a[1],c=parseInt(a[2],10);"+"===s?(r.top=n?c:0,r.left=n?0:c):(r.top=n?-c:0,r.left=n?0:-c),r.relative=!0}return r},q={trigger:"[data-scroll]",header:"[data-scroll-header]",duration:1e3,easing:"easeOutQuint",offset:0,vertical:!0,horizontal:!1,cancellable:!0,updateURL:!1,preventDefault:!0,stopPropagation:!0,quickMode:!1,before:null,after:null,cancel:null,complete:null,step:null};return function(){function o(n,i){var r=this;this.ctx={$trigger:null,opts:null,progress:!1,pos:null,startPos:null,easing:null,start:0,id:0,cancel:!1,hash:null},this.loop=function(t){var e=r,n=e.$el,i=e.ctx;if(i.start||(i.start=t),i.progress&&n){var l=i.opts,a=i.pos,u=i.start,s=i.startPos,c=i.easing,f=l.duration,h={top:"y",left:"x"},p=t-u,d=Math.min(1,Math.max(p/f,0));Object.keys(a).forEach(function(t){var e=a[t],o=s[t],i=e-o;if(0!==i){var r=c(d,f*d,0,1,f);b(n,Math.round(o+i*r),h[t])}}),p<=f?(r.hook(l,"step",d),i.id=o.raf(r.loop)):r.stop(!0)}else r.stop()},this.handleClick=function(e){for(var n=r.opts,o=e.target;o&&o!==document;o=o.parentNode)if(E(o,n.trigger)){var i=JSON.parse(o.getAttribute("data-scroll-options")||"{}"),l=o.getAttribute("data-scroll")||o.getAttribute("href"),a=t({},n,i),u=a.preventDefault,s=a.stopPropagation,c=a.vertical,f=a.horizontal;u&&e.preventDefault(),s&&e.stopPropagation(),r.ctx.$trigger=o,f&&c?r.to(l,a):c?r.toTop(l,a):f&&r.toLeft(l,a)}},this.handleStop=function(t){var e=r.ctx,n=e.opts;n&&n.cancellable?(e.cancel=!0,r.stop()):t.preventDefault()};var l=t({},q,n||{}),a=l.vertical,u=l.horizontal,s=void 0===i?"body,html":i,c=null;e&&(a&&(c=I(s,"y")),!c&&u&&(c=I(s,"x"))),c&&(this.opts=l,this.$el=c,this.bind(!0,!1))}return o.create=function(t,e){return new o(t,e)},o.prototype.to=function(n,o){if(e){var r=this.$el,l=this.ctx,u=this.opts,s=l.$trigger,c=t({},u,o||{}),f=c.offset,h=c.vertical,p=c.horizontal,d=a(c.header)?c.header:$(c.header),v=i(n)&&/^#/.test(n)?n:null;if(l.opts=c,l.cancel=!1,l.hash=v,this.stop(),r){var g=j(f,h),m=j(n,h),w={top:0,left:0};if(m)if(m.relative){var y=x(r,h?"y":"x");w.top=h?y+m.top:m.top,w.left=h?m.left:y+m.left}else w=m;else if(i(n)&&"#"!==n){var b=$(n);if(!b)return;w=O(b,r)}g&&(w.top+=g.top,w.left+=g.left),d&&(w.top=Math.max(0,w.top-A(d).height));var M=P(r),E=M.viewport,C=M.size;w.top=h?Math.max(0,Math.min(C.height-E.height,w.top)):x(r,"y"),w.left=p?Math.max(0,Math.min(C.width-E.width,w.left)):x(r,"x"),!1!==this.hook(c,"before",w,s)?(l.pos=w,this.start(c),this.bind(!1,!0)):l.opts=null}}},o.prototype.toTop=function(e,n){this.to(e,t({},n||{},{vertical:!0,horizontal:!1}))},o.prototype.toLeft=function(e,n){this.to(e,t({},n||{},{vertical:!1,horizontal:!0}))},o.prototype.toElement=function(t,n){var o=this.$el;e&&o&&this.to(O(t,o),n||{})},o.prototype.stop=function(t){void 0===t&&(t=!1);var e=this.$el,n=this.ctx,i=n.pos;e&&n.progress&&(o.caf(n.id),n.progress=!1,n.start=0,n.id=0,t&&i&&(b(e,i.left,"x"),b(e,i.top,"y")),this.complete())},o.prototype.update=function(e){if(this.$el){var n=t({},this.opts,e);this.stop(),this.unbind(!0,!0),this.opts=n,this.bind(!0,!1)}},o.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},o.prototype.onBefore=function(t,e){return!0},o.prototype.onStep=function(t){},o.prototype.onAfter=function(t,e){},o.prototype.onCancel=function(){},o.prototype.onComplete=function(t){},o.prototype.start=function(t){var e=this.ctx;e.opts=t,e.progress=!0,e.easing=r(t.easing)?t.easing:g[t.easing];var n=this.$el,i=e.pos,l={top:x(n,"y"),left:x(n,"x")};if(t.quickMode){var a=P(n).viewport,u=a.width,s=a.height;Math.abs(l.top-i.top)>s&&(l.top=l.top>i.top?i.top+s:i.top-s),Math.abs(l.left-i.left)>u&&(l.left=l.left>i.left?i.left+u:i.left-u)}e.startPos=l,e.id=o.raf(this.loop)},o.prototype.complete=function(){var t=this.$el,o=this.ctx,i=o.hash,r=o.cancel,l=o.opts,a=o.pos,u=o.$trigger;if(t&&l){if(null!=i&&i!==window.location.hash){var s=l.updateURL;e&&n&&!1!==s&&window.history["replace"===s?"replaceState":"pushState"](null,"",i)}this.unbind(!1,!0),o.opts=null,o.$trigger=null,r?this.hook(l,"cancel"):this.hook(l,"after",a,u),this.hook(l,"complete",r)}},o.prototype.hook=function(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var i,l,a=t[e];return r(a)&&(i=a.apply(this,n.concat([this]))),l=this["on"+(e[0].toUpperCase()+e.slice(1))].apply(this,n),void 0!==i?i:l},o.prototype.bind=function(t,e){var n=this.$el,o=this.ctx.opts;n&&(t&&W(n,"click",this.handleClick,!1),e&&W(n,"wheel touchstart touchmove",this.handleStop,!o||o.cancellable))},o.prototype.unbind=function(t,e){var n=this.$el,o=this.ctx.opts;n&&(t&&z(n,"click",this.handleClick,!1),e&&z(n,"wheel touchstart touchmove",this.handleStop,!o||o.cancellable))},o.raf=s,o.caf=c,o}()});
},{}],"wKub":[function(require,module,exports) {
"use strict";var e=r(require("sweet-scroll"));function r(e){return e&&e.__esModule?e:{default:e}}var t=new e.default({duration:700,trigger:'a[href^="#"]',easing:"easeOutQuint"});
},{"sweet-scroll":"LkB6"}],"nUSU":[function(require,module,exports) {
var e=document.getElementById("langList");null!=e&&(e.onchange=function(){d(this.options[this.selectedIndex].value)});for(var n=document.getElementsByClassName("ja"),t=document.getElementsByClassName("en"),i=0;i<n.length;i++)t[i].addEventListener("click",a,!1),n[i].addEventListener("click",s,!1);function a(){d("en")}function s(){d("ja")}function d(e){"en"==e&&(document.getElementById("about").children.item(1).innerHTML='<div class="contentArea"><h2>ABOUT</h2><p>SHITCOIN was born in 2019.</p><p>SHITCOIN is based on MONACOIN, and the function of NAMECOIN has been added.</p><p>Merge mining with MONACOIN is possible.</p><p>Let`s enjoy the playful Internet with .shit domain.</p></div>'),"ja"==e&&(document.getElementById("about").children.item(1).innerHTML='<div class="contentArea"><h2>ABOUT</h2><p>SHITCOINは2019年に誕生しました。</p><p>MONACOINをベースにNAMECOINの機能を追加してあります。</p><p>MONACOINとのマージマイニングが可能です。</p><p>おバカなインターネットを.shitドメインで楽しみましょう。</p></div>')}d("en");
},{}],"g68U":[function(require,module,exports) {
module.exports={app:require("./app.js"),"sweet-scroll":require("./sweet-scroll.js"),translate:require("./translate.js")};
},{"./app.js":"QdeU","./sweet-scroll.js":"wKub","./translate.js":"nUSU"}],"QdeU":[function(require,module,exports) {
"use strict";require("../style/main.sass"),require("../js/*.js");
},{"../style/main.sass":"tTeS","../js/*.js":"g68U"}]},{},["QdeU"], null)
//# sourceMappingURL=app.ab953cea.map