mirror of
https://github.com/caojiezi2003/clock-shop.git
synced 2024-11-10 05:29:46 +00:00
f74b72a667
add new code
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],d=0,f=[];d<o.length;d++)s=o[d],Object.prototype.hasOwnProperty.call(r,s)&&r[s]&&f.push(r[s][0]),r[s]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(t[n]=c[n]);u&&u(e);while(f.length)f.shift()();return i.push.apply(i,l||[]),a()}function a(){for(var t,e=0;e<i.length;e++){for(var a=i[e],n=!0,o=1;o<a.length;o++){var c=a[o];0!==r[c]&&(n=!1)}n&&(i.splice(e--,1),t=s(s.s=a[0]))}return t}var n={},r={app:0},i=[];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;i.push([0,"chunk-vendors"]),a()})({0:function(t,e,a){t.exports=a("56d7")},"1d0c":function(t,e,a){},4032:function(t,e,a){},"56d7":function(t,e,a){"use strict";a.r(e);a("dac5"),a("6e26"),a("9604"),a("df67");var n=a("6e6d"),r=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)},i=[],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("6691"),d=Object(u["a"])(l,s,o,!1,null,"2446b1ea",null),f=d.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("d8f1"),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, anonymous 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:{}},x=y,k=Object(u["a"])(x,_,C,!1,null,"2016e74b",null),w=k.exports,j=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"}},t._l(t.btns,(function(e){return a("Btn",{key:e.index,attrs:{index:e.index},nativeOn:{click:function(a){return t.tabClick(e.index)}}},[t._v("\n "+t._s(e.text)+"\n ")])})),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"}})])})),0)]),a("footer",{staticClass:"container"},[a("div",{staticClass:"float-left nbtn",class:{"nbtn-disabled":!t.isEnabled("prev")},on:{click:function(e){return t.prevPage()}}},[t._v("\n Prev Page\n ")]),a("div",{staticClass:"float-right nbtn",class:{"nbtn-disabled":!t.isEnabled("next")},on:{click:function(e){return t.nextPage()}}},[t._v("\n Next Page\n ")])])])},O=[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"})])}],E=(a("b745"),a("34a3"),a("f763"),a("f753")),N=a.n(E),P=a("b51b"),S=a.n(P),$=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){return t.click()}}},[t._t("default")],2)},T=[],I=a("a06d"),B=a.n(I),M=new n["a"],A=M,H={name:"Btn",props:["active","index"],created:function(){var t=this;A.$on("BTN_CLICK",(function(e){e!==t.index?t.isActive=!1:t.isActive=!0})),this.active&&(this.isActive=!0)},data:function(){return{id:B.a.uuid(),isActive:!1}},methods:{click:function(){this.isActive=!0}}},D=H,F=Object(u["a"])(D,$,T,!1,null,"c0f1508c",null),L=F.exports,z=function(t){for(var e=t.length,a=0;a<e;a++){var n=e-1,r=Math.random()*(n+1)>>0,i=t[n];t[n]=t[r],t[r]=i}return t},J=6,K=[{index:0,text:"Beautiful Style"},{index:1,text:"Creative Design"},{index:2,text:"Electronic Clock"}];K=z(K);var R={name:"Content",components:{Btn:L},data:function(){return{currentTab:K[0].index,pageNum:0,data:[],btns:K,get items(){var t=this.pageNum*J,e=t+J;return this.allItems?this.allItems.slice(t,e):null},get allItems(){return A.$emit("BTN_CLICK",this.currentTab),this.data[this.currentTab]||[]}}},created:function(){this.loadData()},methods:{loadData:function(){var t=this;N.a.get("/data.yaml").then((function(e){var a=S.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)*J>=this.allItems.length)||void 0},prevPage:function(){this.pageNum<=0||this.pageNum--},nextPage:function(){(this.pageNum+1)*J>=this.allItems.length||this.pageNum++}}},W=R,V=Object(u["a"])(W,j,O,!1,null,null,null),q=V.exports,G={name:"app",components:{Banner:g,Header:f,Footer:w,Content:q}},Q=G,U=Object(u["a"])(Q,r,i,!1,null,null,null),X=U.exports;a("9edb"),a("1d0c"),a("f33e");n["a"].config.productionTip=!1,new n["a"]({render:function(t){return t(X)}}).$mount("#app")},"9edb":function(t,e,a){},d8f1:function(t,e,a){"use strict";var n=a("4032"),r=a.n(n);r.a},f33e:function(t,e,a){}});
|
|
//# sourceMappingURL=app.661c0e59.js.map
|