mirror of
https://github.com/caojiezi2003/clock-shop.git
synced 2024-11-10 05:29:46 +00:00
2abd64c041
replace path
2 lines
8.4 KiB
JavaScript
2 lines
8.4 KiB
JavaScript
(function(t){function e(e){for(var n,s,o=e[0],c=e[1],l=e[2],f=0,d=[];f<o.length;f++)s=o[f],i[s]&&d.push(i[s][0]),i[s]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(t[n]=c[n]);u&&u(e);while(d.length)d.shift()();return r.push.apply(r,l||[]),a()}function a(){for(var t,e=0;e<r.length;e++){for(var a=r[e],n=!0,o=1;o<a.length;o++){var c=a[o];0!==i[c]&&(n=!1)}n&&(r.splice(e--,1),t=s(s.s=a[0]))}return t}var n={},i={1:0},r=[];function s(e){if(n[e])return n[e].exports;var a=n[e]={i:e,l:!1,exports:{}};return t[e].call(a.exports,a,a.exports,s),a.l=!0,a.exports}s.m=t,s.c=n,s.d=function(t,e,a){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},s.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(s.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)s.d(a,n,function(e){return t[e]}.bind(null,n));return a},s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="/clock-shop/";var o=window["webpackJsonp"]=window["webpackJsonp"]||[],c=o.push.bind(o);o.push=e,o=o.slice();for(var l=0;l<o.length;l++)e(o[l]);var u=c;r.push([8,0]),a()})({8:function(t,e,a){t.exports=a("Vtdi")},"8z7e":function(t,e,a){},"92aI":function(t,e,a){},Bh4a:function(t,e,a){},G2l2:function(t,e,a){"use strict";var n=a("OWla"),i=a.n(n);i.a},HQzE:function(t,e,a){},OWla:function(t,e,a){},VFKH:function(t,e,a){},Vtdi:function(t,e,a){"use strict";a.r(e);a("VRzm");var n=a("Kw5r"),i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"app"}},[a("Header"),a("Banner"),a("Content"),a("Footer")],1)},r=[],s=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},o=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"main-navigation navbar-fixed-top"},[a("nav",{staticClass:"navbar navbar-default"},[a("div",{staticClass:"container"},[a("div",{staticClass:"navbar-header"},[a("button",{staticClass:"navbar-toggle",attrs:{type:"button","data-toggle":"collapse","data-target":"#myNavbar"}},[a("span",{staticClass:"icon-bar"}),a("span",{staticClass:"icon-bar"}),a("span",{staticClass:"icon-bar"})]),a("a",{staticClass:"navbar-brand",attrs:{href:"index.html"}},[t._v("Clock Shop")])]),a("div",{staticClass:"collapse navbar-collapse",attrs:{id:"myNavbar"}},[a("ul",{staticClass:"nav navbar-nav navbar-right"},[a("li",[a("a",{attrs:{href:"#portfolio"}},[t._v("Visit")])]),a("li",[a("a",{attrs:{href:"https://github.com/a-jie/clock-shop",target:"_blank"}},[t._v("Star Me")])]),a("li",[a("a",{attrs:{href:"https://github.com/a-jie/clock-shop/pulls",target:"_blank"}},[t._v("Submit Code")])])])])])])])}],c={name:"Header",props:{}},l=c,u=(a("eZ2R"),a("uMhA")),f=Object(u["a"])(l,s,o,!1,null,"2446b1ea",null),d=f.exports,p=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},v=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"section-padding",attrs:{id:"banner"}},[a("div",{staticClass:"container"},[a("div",{staticClass:"row"},[a("div",{staticClass:"jumbotron"},[a("h1",{staticClass:"small"},[t._v("Welcome To "),a("span",{staticClass:"bold"},[t._v("Clock Shop")])]),a("p",{staticClass:"big"},[t._v("There are a variety of beautiful and unusual clock codes.")]),a("a",{staticClass:"btn btn-banner",attrs:{href:"https://github.com/a-jie/clock-shop",target:"_blank"}},[t._v("Star Me"),a("i",{staticClass:"fa fa-send"})])])])])])}],h={name:"Banner",props:{}},b=h,m=(a("Y/sk"),Object(u["a"])(b,p,v,!1,null,"85e5a94a",null)),g=m.exports,_=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},C=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"footer-bottom"},[a("div",{staticClass:"container"},[a("div",{staticClass:"col-md-12 text-center wow zoomIn",staticStyle:{visibility:"visible","animation-name":"zoomIn"}},[a("div",{staticClass:"footer_copyright"},[a("p",[t._v(" © Copyright, a-jie All Rights Reserved.")]),a("div",{staticClass:"credits"},[t._v("\n WebSite designed by "),a("a",{attrs:{href:"https://bootstrapmade.com/"}},[t._v("BootstrapMade.com")])])])])])])}],y={name:"Footer",props:{}},k=y,j=(a("G2l2"),Object(u["a"])(k,_,C,!1,null,"03f3773e",null)),w=j.exports,x=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"portfolio"}},[a("div",{staticClass:"container"},[t._m(0),a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-12"},[a("ul",{attrs:{id:"portfolio-flters"}},[a("Btn",{attrs:{active:"true"},nativeOn:{click:function(e){t.tabClick(0)}}},[t._v("Beautiful Style")]),a("Btn",{nativeOn:{click:function(e){t.tabClick(1)}}},[t._v("Creative Design")]),a("Btn",{nativeOn:{click:function(e){t.tabClick(2)}}},[t._v("Electronic Clock")])],1)])]),a("div",{staticClass:"row",attrs:{id:"portfolio-wrapper"}},t._l(t.items,function(e){return a("div",{key:e,staticClass:"col-lg-4 col-md-6 portfolio-item filter-app"},[a("iframe",{staticStyle:{width:"100%"},attrs:{height:"265",scrolling:"no",src:t.getHash(e),frameborder:"no",allowtransparency:"true",allowfullscreen:"true"}})])}))]),a("footer",{staticClass:"container"},[a("div",{staticClass:"float-left nbtn",class:{"nbtn-disabled":!t.isEnabled("prev")},on:{click:function(e){t.prevPage()}}},[t._v("\n Prev Page\n ")]),a("div",{staticClass:"float-right nbtn",class:{"nbtn-disabled":!t.isEnabled("next")},on:{click:function(e){t.nextPage()}}},[t._v("\n Next Page\n ")])])])},E=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"page-title text-center"},[a("h1",[t._v("Clock Exhibition Counter")]),a("p",[t._v("All the code comes from the "),a("a",{attrs:{href:"https://codepen.io/",target:"_blank"}},[t._v("codepen")]),t._v(" site. They are really great. \n "),a("br"),t._v("I want to pay tribute to the original author. ")]),a("hr",{staticClass:"pg-titl-bdr-btm"})])}],O=(a("Vd3H"),a("pIFo"),a("rGqo"),a("vDqi")),I=a.n(O),B=a("ZR4k"),N=a.n(B),S=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",{staticClass:"nbtn",class:{"btn-active":t.isActive},on:{click:function(e){t.click()}}},[t._t("default")],2)},P=[],$=a("qUsI"),T=a.n($),H=new n["a"],M={name:"Btn",props:["active"],created:function(){var t=this;H.$on("BTN_CLICK",function(e){e!==t.id&&(t.isActive=!1)}),this.active&&(this.isActive=!0)},data:function(){return{id:T.a.uuid(),isActive:!1}},methods:{click:function(){this.isActive=!0,H.$emit("BTN_CLICK",this.id)}}},A=M,z=(a("Y8uE"),Object(u["a"])(A,S,P,!1,null,"0fdc95ec",null)),V=z.exports,F=9,R={name:"Content",components:{Btn:V},data:function(){return{currentTab:0,pageNum:0,data:[],get items(){var t=this.pageNum*F,e=t+F;return this.allItems?this.allItems.slice(t,e):null},get allItems(){return this.data[this.currentTab]||[]}}},created:function(){this.loadData()},methods:{loadData:function(){var t=this;I.a.get("./data.yaml").then(function(e){var a=N.a.safeLoad(e["data"]||e["_body"]);a.forEach(function(t){t.forEach(function(t,e,a){return a[e]=t.replace("https://codepen.io/","").replace(/^.{1,30}\/pen\//gi,"")}),t.sort(function(){return.5-Math.random()})}),t.data=a})},tabClick:function(t){this.pageNum=0,this.currentTab=parseInt(t)},getHash:function(t){return"//codepen.io/scorch/embed/".concat(t,"/?rerun-position=hidden&class=scale&height=265&theme-id=dark&default-tab=result&embed-version=2")},isEnabled:function(t){return"prev"===t?!(this.pageNum<=0):!((this.pageNum+1)*F>=this.allItems.length)||void 0},prevPage:function(){this.pageNum<=0||this.pageNum--},nextPage:function(){(this.pageNum+1)*F>=this.allItems.length||this.pageNum++}}},Y=R,G=Object(u["a"])(Y,x,E,!1,null,null,null),K=G.exports,L={name:"app",components:{Banner:g,Header:d,Footer:w,Content:K}},Z=L,D=(a("ZL7j"),Object(u["a"])(Z,i,r,!1,null,null,null)),W=D.exports;a("nttj"),a("HQzE"),a("8z7e");n["a"].config.productionTip=!1,new n["a"]({render:function(t){return t(W)}}).$mount("#app")},"Y/sk":function(t,e,a){"use strict";var n=a("VFKH"),i=a.n(n);i.a},Y8uE:function(t,e,a){"use strict";var n=a("YfsG"),i=a.n(n);i.a},YfsG:function(t,e,a){},ZL7j:function(t,e,a){"use strict";var n=a("Bh4a"),i=a.n(n);i.a},eZ2R:function(t,e,a){"use strict";var n=a("92aI"),i=a.n(n);i.a},nttj:function(t,e,a){}});
|
|
//# sourceMappingURL=app.1be112c5.js.map
|