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