├── iconfont ├── iconfont.eot ├── iconfont.ttf ├── iconfont.woff ├── iconfont-menu.ttf ├── iconfont-menu.woff └── iconfont.svg ├── images ├── login │ ├── iocn_back.png │ ├── login_img_logo.png │ ├── login_icon_code_pre.png │ └── login_icon_phone_pre.png ├── my │ ├── icon_arrow.png │ ├── icon_after_sale.png │ ├── icon_arrow_round.png │ ├── icon_dlieverying.png │ ├── icon_send_goods.png │ ├── icon_waitting_pay.png │ ├── user_center_top_bg.png │ ├── img_user_photo_login.png │ └── img_user_photo_not_login.png ├── detail │ ├── icon_share.png │ ├── shopping_cart.png │ ├── icon_back_hover.png │ └── icon_home_hover.png ├── guide │ ├── guide_page_1.png │ ├── guide_page_2.png │ ├── guide_page_3.png │ ├── guide_page_4.png │ └── guide_page_button.png └── shoppingCart │ ├── noGood.jpg │ ├── selected_ck.png │ └── unselected_ck.png ├── index.html ├── mock ├── list.json └── goodInfo.json ├── README.md ├── libs ├── vuex.min.js ├── swiper-3.3.1.min.css ├── zepto.min.js ├── debuggap.js └── vue-resource.js └── bundle.js /iconfont/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/iconfont/iconfont.eot -------------------------------------------------------------------------------- /iconfont/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/iconfont/iconfont.ttf -------------------------------------------------------------------------------- /iconfont/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/iconfont/iconfont.woff -------------------------------------------------------------------------------- /iconfont/iconfont-menu.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/iconfont/iconfont-menu.ttf -------------------------------------------------------------------------------- /images/login/iocn_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/login/iocn_back.png -------------------------------------------------------------------------------- /images/my/icon_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/my/icon_arrow.png -------------------------------------------------------------------------------- /iconfont/iconfont-menu.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/iconfont/iconfont-menu.woff -------------------------------------------------------------------------------- /images/detail/icon_share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/detail/icon_share.png -------------------------------------------------------------------------------- /images/detail/shopping_cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/detail/shopping_cart.png -------------------------------------------------------------------------------- /images/guide/guide_page_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/guide/guide_page_1.png -------------------------------------------------------------------------------- /images/guide/guide_page_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/guide/guide_page_2.png -------------------------------------------------------------------------------- /images/guide/guide_page_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/guide/guide_page_3.png -------------------------------------------------------------------------------- /images/guide/guide_page_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/guide/guide_page_4.png -------------------------------------------------------------------------------- /images/login/login_img_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/login/login_img_logo.png -------------------------------------------------------------------------------- /images/my/icon_after_sale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/my/icon_after_sale.png -------------------------------------------------------------------------------- /images/my/icon_arrow_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/my/icon_arrow_round.png -------------------------------------------------------------------------------- /images/my/icon_dlieverying.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/my/icon_dlieverying.png -------------------------------------------------------------------------------- /images/my/icon_send_goods.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/my/icon_send_goods.png -------------------------------------------------------------------------------- /images/my/icon_waitting_pay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/my/icon_waitting_pay.png -------------------------------------------------------------------------------- /images/shoppingCart/noGood.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/shoppingCart/noGood.jpg -------------------------------------------------------------------------------- /images/detail/icon_back_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/detail/icon_back_hover.png -------------------------------------------------------------------------------- /images/detail/icon_home_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/detail/icon_home_hover.png -------------------------------------------------------------------------------- /images/my/user_center_top_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/my/user_center_top_bg.png -------------------------------------------------------------------------------- /images/guide/guide_page_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/guide/guide_page_button.png -------------------------------------------------------------------------------- /images/login/login_icon_code_pre.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/login/login_icon_code_pre.png -------------------------------------------------------------------------------- /images/my/img_user_photo_login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/my/img_user_photo_login.png -------------------------------------------------------------------------------- /images/shoppingCart/selected_ck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/shoppingCart/selected_ck.png -------------------------------------------------------------------------------- /images/login/login_icon_phone_pre.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/login/login_icon_phone_pre.png -------------------------------------------------------------------------------- /images/my/img_user_photo_not_login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/my/img_user_photo_not_login.png -------------------------------------------------------------------------------- /images/shoppingCart/unselected_ck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WisestCoder/vue-project-pagoda/HEAD/images/shoppingCart/unselected_ck.png -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 百果园 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /mock/list.json: -------------------------------------------------------------------------------- 1 | [ 2 | "http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/CB/CmiWiFgLEiuAOgPuAADCepusTbU523.jpg?width=750&height=280", 3 | "http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/C7/CmiU8FgHF5yACnbBAADR34Fy_Yg190.jpg?width=750&height=280", 4 | "http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/C8/CmiWiFgIbOOAPX1_AAC9tm9nYxQ132.jpg?width=750&height=280", 5 | "http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/CE/CmiWiFgNqUiAFis3AADB1iMHWQM138.jpg?width=750&height=280", 6 | "http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/C7/CmiU8FgHAMOAHncAAADFO4ehdJ4074.jpg?width=750&height=280", 7 | "http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/C7/CmiLlFgHAaCACDqSAADBT9iX-wM397.jpg?width=750&height=280", 8 | "http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/C7/CmiWiFgHA4iAEVo3AADNu4gABUU989.jpg?width=750&height=280", 9 | "http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/C7/CmiWa1gHAyyAEh8lAAC7yWxSsHE354.jpg?width=750&height=280", 10 | "http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/CE/CmiLkFgNo7CAZoKJAACx1AD5nOc337.jpg?width=750&height=280", 11 | "http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/C9/CmiLlFgJj5yAZpH1AAC7X45C4P8530.jpg?width=750&height=280", 12 | "http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/C9/CmiLkFgJlWyAE35HAADKnldbWBI344.jpg?width=750&height=280", 13 | "http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/C6/CmiWa1gG7cCAT1TNAADfmHYXdDQ847.jpg?width=750&height=280", 14 | "http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/C6/CmiWiFgG7tOAHuIeAAC-PZt8tgY807.jpg?width=750&height=280", 15 | "http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/C6/CmiLlFgG8EeAbnGtAADF4QcKqY4226.jpg?width=750&height=280", 16 | "http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/C6/CmiU8FgG75GANsadAADFKMTyyL0884.jpg?width=750&height=280" 17 | ] 18 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## vue+webpack项目开发——百果园 2 | 3 | **作者:杜少** 4 | 5 | **项目展示地址:[https://dushao103500.github.io/vue-project-pagoda](https://dushao103500.github.io/vue-project-pagoda/#!/)** 6 | 7 | **项目已挂,项目已挂,项目已挂,重要的事说三遍** 8 | 9 | 自从vue退出之后,有越来越多的项目在使用 vue。这些项目里面,有桌面端,也有移动端,有面向用户的,也有后台系统。实践方案的话,`vue + webpack + vue-router + vue-resource。` 10 | 11 | __相比angular,vue有很多优点:__ 12 | 13 | * 在 API 与设计两方面上 Vue.js 都比 Angular 简单得多,因此你可以快速地掌握它的全部特性并投入开发。 14 | 15 | * Vue.js 有更好的性能,并且非常非常容易优化 16 | 17 | 就我个人而言,vue 的开发体验还是比较愉悦的。首先,文档非常友好,所以上手会比较快。其次,配合 webpack 和 vue-loader,每个页面都是一个 .vue 文件,写起来很方便。另外,适合做组件化开发(每个组件也是一个 .vue 文件,可以全局或者在需要的地方引入),如果遇到比较复杂的、父子组件间需要频繁通信的场景,可以用 vuex 搞定。 18 | 19 | ### 以下是我在工作过程中自己设计的一个小项目 20 | 21 | #### 1、项目搭建环境 22 | 23 | * 本项目主要使用`vue + webpack + vue-router + vue-resource`搭建 24 | 25 | #### 2、项目运行环境 26 | 27 | * node环境下使用`git clone https://github.com/dushao103500/vue-project-pagoda.git` 将文件下载至本地,并在目录的上一层启动服务,端口默认为80 28 | 29 | #### 3、项目主要内容(本项目主要有7个页面) 30 | 31 | * 引导页 [http://www.takozhang.cn/vue-project-pagoda/#!/](http://www.takozhang.cn/vue-project-pagoda/#!/) 32 | 33 | 引导页主要使用了swiper框架进行图片轮播 34 | 35 | ![](http://oe51jhwvd.bkt.clouddn.com/vue01.jpg) 36 | 37 | * 主页面 [http://www.takozhang.cn/vue-project-pagoda/#!/index](http://www.takozhang.cn/vue-project-pagoda/#!/index) 38 | 39 | 主页面主要使用了iscroll来实现滑动,轮播图主要使用swiper,主页面的数据实用的mock数据 40 | 41 | ![](http://oe51jhwvd.bkt.clouddn.com/vue02.jpg) 42 | 43 | * 列表页 [http://www.takozhang.cn/vue-project-pagoda/#!/index/list](http://www.takozhang.cn/vue-project-pagoda/#!/index/list) 44 | 45 | 列表页的数据采用的是mock数据,使用iscroll来实现滑动,类别的切换主要采用数据过滤,列表页通过路由传递参数从而链接至详情页 46 | 47 | ![](http://oe51jhwvd.bkt.clouddn.com/vue03.jpg) 48 | 49 | * 详情页 [http://www.takozhang.cn/vue-project-pagoda/#!/index/detail/0101](http://www.takozhang.cn/vue-project-pagoda/#!/index/detail/0101) 50 | 51 | 详情页通过接受传过来的参数,再利用vue-resource插件的XMLHttpRequest来请求数据,详情页的加入购物车功能主要是采用localstorage进行本地存储 52 | 53 | ![](http://oe51jhwvd.bkt.clouddn.com/vue04.jpg) 54 | 55 | * 购物车页 [http://www.takozhang.cn/vue-project-pagoda/#!/index/shoppingCart](http://www.takozhang.cn/vue-project-pagoda/#!/index/shoppingCart) 56 | 57 | 购物车使用了iscroll来实现页面的滑动,主要使用了localstorage来获取数据,并通过双向绑定来实现数据的增删 58 | 59 | ![](http://oe51jhwvd.bkt.clouddn.com/vue05.jpg) 60 | 61 | * 个人信息页 [http://www.takozhang.cn/vue-project-pagoda/#!/index/my](http://www.takozhang.cn/vue-project-pagoda/#!/index/my) 62 | 63 | 个人信息主要使用localstorage来进行存储,并通过判断localstorage中的数据来进行页面的渲染 64 | 65 | ![](http://oe51jhwvd.bkt.clouddn.com/vue07.jpg) 66 | 67 | * 登录页 [http://www.takozhang.cn/vue-project-pagoda/#!/login](http://www.takozhang.cn/vue-project-pagoda/#!/login) 68 | 69 | 登录页的状态、数据管理还是通过localstorage来进行存储 70 | 71 | ![](http://oe51jhwvd.bkt.clouddn.com/vue06.jpg) 72 | 73 | ### 个人总结 74 | 本项目做的比较粗糙,可能跟时间太急有关系,很多数据都没有使用交互,很多功能没有实现,比如主页的下拉刷新,登录页面的弹出层等等,日后完善! 75 | 76 | 77 | -------------------------------------------------------------------------------- /mock/goodInfo.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "goodId":"0101", 4 | "name":"招牌-高山水蜜桃(中)", 5 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/C7/CmiU8FgIMouAcPwUAAA7jlFL6hI344.jpg?width=180&height=180", 6 | "price":19.1 7 | }, 8 | { 9 | "goodId":"0102", 10 | "name":"招牌-阳光冬枣(中)", 11 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/98/CmiU8FfjobSATiPsAADHjgeHZjg576.jpg?width=180&height=180", 12 | "price":5.2 13 | }, 14 | { 15 | "goodId":"0103", 16 | "name":"招牌-冰糖梨(秋月)", 17 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/CC/CmiLkFgLMnaAH5BcAACar-87byw490.jpg?width=180&height=180", 18 | "price":21.2 19 | }, 20 | { 21 | "goodId":"0201", 22 | "name":"B级-南丰蜜桔", 23 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/CD/CmiLlFgNdqiAG9bkAABQ4zCGDUE866.jpg?width=180&height=180", 24 | "price":7.3 25 | }, 26 | { 27 | "goodId":"0202", 28 | "name":"招牌-高山水蜜桃(中)", 29 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/C7/CmiU8FgIMouAcPwUAAA7jlFL6hI344.jpg?width=180&height=180", 30 | "price":19.1 31 | }, 32 | { 33 | "goodId":"0203", 34 | "name":"A级-野苹果(大)", 35 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/CA/CmiU8FgK1ZuANWVyAABDinjM9aI038.jpg?width=180&height=180", 36 | "price":7.2 37 | }, 38 | { 39 | "goodId":"0204", 40 | "name":"A级-东江蜜桔", 41 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/CB/CmiU8FgK1syAC-c0AABVSkQO33k678.jpg?width=180&height=180", 42 | "price":6.1 43 | }, 44 | { 45 | "goodId":"0205", 46 | "name":"招牌-冰糖梨(秋月)", 47 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/CC/CmiLkFgLMnaAH5BcAACar-87byw490.jpg?width=180&height=180", 48 | "price":21.2 49 | }, 50 | { 51 | "goodId":"0301", 52 | "name":"稀有-佳沛阳光奇异果王", 53 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/6E/CmiWiFfGgUKAAJrsAAA-VPcfEes831.jpg?width=180&height=180", 54 | "price":16.7 55 | }, 56 | { 57 | "goodId":"0302", 58 | "name":"B级-泰国金针榴莲(中)", 59 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/AE/CmiWiFf6KBSAGIQRAACrqeKsq9A244.jpg?width=181&height=181", 60 | "price":73 61 | }, 62 | { 63 | "goodId":"0303", 64 | "name":"A级-进口柠檬(中)", 65 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/42/CmiWiFesG8mAHPzqAAIaO8kJYvo309.jpg?width=340&height=340?width=340&height=340", 66 | "price":4.7 67 | }, 68 | { 69 | "goodId":"0304", 70 | "name":"A级-泰国椰青(中)", 71 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/4C/CmiWa1ey7sqAGTdcAACaHvnyxMw252.jpg?width=180&height=180", 72 | "price":11.7 73 | }, 74 | { 75 | "goodId":"0305", 76 | "name":"稀有-佳沛阳光奇异果王", 77 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/6E/CmiWiFfGgUKAAJrsAAA-VPcfEes831.jpg?width=180&height=180", 78 | "price":16.7 79 | }, 80 | { 81 | "goodId":"0306", 82 | "name":"B级-泰国金针榴莲(中)", 83 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/AE/CmiWiFf6KBSAGIQRAACrqeKsq9A244.jpg?width=181&height=181", 84 | "price":73 85 | }, 86 | { 87 | "goodId":"0307", 88 | "name":"A级-进口柠檬(中)", 89 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/42/CmiWiFesG8mAHPzqAAIaO8kJYvo309.jpg?width=340&height=340?width=340&height=340", 90 | "price":4.7 91 | }, 92 | { 93 | "goodId":"0308", 94 | "name":"A级-泰国椰青(中)", 95 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/4C/CmiWa1ey7sqAGTdcAACaHvnyxMw252.jpg?width=180&height=180", 96 | "price":11.7 97 | }, 98 | { 99 | "goodId":"0309", 100 | "name":"稀有-佳沛阳光奇异果王", 101 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/6E/CmiWiFfGgUKAAJrsAAA-VPcfEes831.jpg?width=180&height=180", 102 | "price":16.7 103 | }, 104 | { 105 | "goodId":"0310", 106 | "name":"B级-泰国金针榴莲(中)", 107 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/AE/CmiWiFf6KBSAGIQRAACrqeKsq9A244.jpg?width=181&height=181", 108 | "price":73 109 | }, 110 | { 111 | "goodId":"0401", 112 | "name":"A级-野苹果(大)", 113 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/CA/CmiU8FgK1ZuANWVyAABDinjM9aI038.jpg?width=180&height=180", 114 | "price":7.2 115 | }, 116 | { 117 | "goodId":"0402", 118 | "name":"A级-贵长奇异果(中)", 119 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/B6/CmiLkFf_HfCAN2ZbAAB-g-hPUPA255.jpg?width=180&height=180", 120 | "price":4.6 121 | }, 122 | { 123 | "goodId":"0501", 124 | "name":"【果庆礼盒】东方红3kg装", 125 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/A5/CmiWa1ftGhGAGiCJAACigd_hxYc481.jpg?width=180&height=180", 126 | "price":109 127 | }, 128 | { 129 | "goodId":"0502", 130 | "name":"【果庆礼盒】进口甜橙3kg装", 131 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/A5/CmiLkFftGoSAKKjIAACs5bL2eXM622.jpg?width=180&height=180", 132 | "price":109 133 | }, 134 | { 135 | "goodId":"0503", 136 | "name":"感恩之心礼盒", 137 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/84/CmiU8FfSpg-Ae6vZAACaDAI8j7Q522.jpg?width=181&height=181", 138 | "price":139 139 | }, 140 | { 141 | "goodId":"0601", 142 | "name":"168克何字手剥松子", 143 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/B3/CmiLkFf8wviAHJT6AABM4_MrQm4522.jpg?width=180&height=180", 144 | "price":67 145 | }, 146 | { 147 | "goodId":"0602", 148 | "name":"500克何字手剥松子", 149 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/B3/CmiLkFf8wviAHJT6AABM4_MrQm4522.jpg?width=180&height=180", 150 | "price":186 151 | }, 152 | { 153 | "goodId":"0603", 154 | "name":"开口松籽", 155 | "imgUrl":"http://pagoda-fastdfs.pagoda.com.cn:10501/miResourceMgr/group1/M00/00/CD/CmiLlFgNeZqAT8joAADNxz1MT5A051.jpg?width=180&height=180", 156 | "price":39.6 157 | } 158 | ] 159 | -------------------------------------------------------------------------------- /libs/vuex.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Vuex v0.8.2 3 | * (c) 2016 Evan You 4 | * Released under the MIT License. 5 | */ 6 | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Vuex=e()}(this,function(){"use strict";function t(t){return t.reduce(function(t,e){return Object.keys(e).forEach(function(n){var o=t[n];o?Array.isArray(o)?o.push(e[n]):t[n]=[t[n],e[n]]:t[n]=e[n]}),t},{})}function e(t){if(Array.isArray(t))return t.map(e);if(t&&"object"===("undefined"==typeof t?"undefined":a(t))){for(var n={},o=Object.keys(t),i=0,r=o.length;i=2){var c=t.config._lifecycleHooks.indexOf("init")>-1;t.mixin(c?{init:e}:{beforeCreate:e})}else!function(){var n=t.prototype._init;t.prototype._init=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];t.init=t.init?[e].concat(t.init):e,n.call(this,t)}}();var f=t.config.optionMergeStrategies.computed;t.config.optionMergeStrategies.vuex=function(t,e){return t?e?{getters:f(t.getters,e.getters),state:f(t.state,e.state),actions:f(t.actions,e.actions)}:t:e}}function r(t){return p?void console.warn("[vuex] already installed. Vue.use(Vuex) should be called only once."):(p=t,void i(p))}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},s=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},u=function(){function t(t,e){for(var n=0;n1?e-1:0),o=1;o1?n-1:0),r=1;r 2 | 3 | 4 | 5 | Created by FontForge 20120731 at Tue Oct 25 14:41:41 2016 6 | By admin 7 | 8 | 9 | 10 | 24 | 26 | 28 | 30 | 32 | 36 | 39 | 44 | 48 | 51 | 58 | 64 | 69 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /libs/swiper-3.3.1.min.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Swiper 3.3.1 3 | * Most modern mobile touch slider and framework with hardware accelerated transitions 4 | * 5 | * http://www.idangero.us/swiper/ 6 | * 7 | * Copyright 2016, Vladimir Kharlampidi 8 | * The iDangero.us 9 | * http://www.idangero.us/ 10 | * 11 | * Licensed under MIT 12 | * 13 | * Released on: February 7, 2016 14 | */ 15 | .swiper-container{margin:0 auto;position:relative;overflow:hidden;z-index:1}.swiper-container-no-flexbox .swiper-slide{float:left}.swiper-container-vertical>.swiper-wrapper{-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-transition-property:-webkit-transform;-moz-transition-property:-moz-transform;-o-transition-property:-o-transform;-ms-transition-property:-ms-transform;transition-property:transform;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.swiper-container-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-o-transform:translate(0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.swiper-container-multirow>.swiper-wrapper{-webkit-box-lines:multiple;-moz-box-lines:multiple;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap}.swiper-container-free-mode>.swiper-wrapper{-webkit-transition-timing-function:ease-out;-moz-transition-timing-function:ease-out;-ms-transition-timing-function:ease-out;-o-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.swiper-slide{-webkit-flex-shrink:0;-ms-flex:0 0 auto;flex-shrink:0;width:100%;height:100%;position:relative}.swiper-container-autoheight,.swiper-container-autoheight .swiper-slide{height:auto}.swiper-container-autoheight .swiper-wrapper{-webkit-box-align:start;-ms-flex-align:start;-webkit-align-items:flex-start;align-items:flex-start;-webkit-transition-property:-webkit-transform,height;-moz-transition-property:-moz-transform;-o-transition-property:-o-transform;-ms-transition-property:-ms-transform;transition-property:transform,height}.swiper-container .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-wp8-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-wp8-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-button-next,.swiper-button-prev{position:absolute;top:50%;width:27px;height:44px;margin-top:-22px;z-index:10;cursor:pointer;-moz-background-size:27px 44px;-webkit-background-size:27px 44px;background-size:27px 44px;background-position:center;background-repeat:no-repeat}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-prev,.swiper-container-rtl .swiper-button-next{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E");left:10px;right:auto}.swiper-button-prev.swiper-button-black,.swiper-container-rtl .swiper-button-next.swiper-button-black{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E")}.swiper-button-prev.swiper-button-white,.swiper-container-rtl .swiper-button-next.swiper-button-white{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E")}.swiper-button-next,.swiper-container-rtl .swiper-button-prev{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E");right:10px;left:auto}.swiper-button-next.swiper-button-black,.swiper-container-rtl .swiper-button-prev.swiper-button-black{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E")}.swiper-button-next.swiper-button-white,.swiper-container-rtl .swiper-button-prev.swiper-button-white{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E")}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:.3s;-moz-transition:.3s;-o-transition:.3s;transition:.3s;-webkit-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-container-horizontal>.swiper-pagination-bullets,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullet{width:8px;height:8px;display:inline-block;border-radius:100%;background:#000;opacity:.2}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-moz-appearance:none;-ms-appearance:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-white .swiper-pagination-bullet{background:#fff}.swiper-pagination-bullet-active{opacity:1;background:#007aff}.swiper-pagination-white .swiper-pagination-bullet-active{background:#fff}.swiper-pagination-black .swiper-pagination-bullet-active{background:#000}.swiper-container-vertical>.swiper-pagination-bullets{right:10px;top:50%;-webkit-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-o-transform:translate(0,-50%);-ms-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:5px 0;display:block}.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 5px}.swiper-pagination-progress{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progress .swiper-pagination-progressbar{background:#007aff;position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;-moz-transform-origin:left top;-ms-transform-origin:left top;-o-transform-origin:left top;transform-origin:left top}.swiper-container-rtl .swiper-pagination-progress .swiper-pagination-progressbar{-webkit-transform-origin:right top;-moz-transform-origin:right top;-ms-transform-origin:right top;-o-transform-origin:right top;transform-origin:right top}.swiper-container-horizontal>.swiper-pagination-progress{width:100%;height:4px;left:0;top:0}.swiper-container-vertical>.swiper-pagination-progress{width:4px;height:100%;left:0;top:0}.swiper-pagination-progress.swiper-pagination-white{background:rgba(255,255,255,.5)}.swiper-pagination-progress.swiper-pagination-white .swiper-pagination-progressbar{background:#fff}.swiper-pagination-progress.swiper-pagination-black .swiper-pagination-progressbar{background:#000}.swiper-container-3d{-webkit-perspective:1200px;-moz-perspective:1200px;-o-perspective:1200px;perspective:1200px}.swiper-container-3d .swiper-cube-shadow,.swiper-container-3d .swiper-slide,.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-container-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:-webkit-linear-gradient(right,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-moz-linear-gradient(right,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-o-linear-gradient(right,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear,right top,left top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-moz-linear-gradient(left,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-o-linear-gradient(left,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-moz-linear-gradient(bottom,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-o-linear-gradient(bottom,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear,left bottom,left top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:-webkit-linear-gradient(top,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-moz-linear-gradient(top,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-o-linear-gradient(top,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-coverflow .swiper-wrapper,.swiper-container-flip .swiper-wrapper{-ms-perspective:1200px}.swiper-container-cube,.swiper-container-flip{overflow:visible}.swiper-container-cube .swiper-slide,.swiper-container-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-container-cube .swiper-slide .swiper-slide,.swiper-container-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-active .swiper-slide-active,.swiper-container-flip .swiper-slide-active,.swiper-container-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube .swiper-slide-shadow-bottom,.swiper-container-cube .swiper-slide-shadow-left,.swiper-container-cube .swiper-slide-shadow-right,.swiper-container-cube .swiper-slide-shadow-top,.swiper-container-flip .swiper-slide-shadow-bottom,.swiper-container-flip .swiper-slide-shadow-left,.swiper-container-flip .swiper-slide-shadow-right,.swiper-container-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;backface-visibility:hidden}.swiper-container-cube .swiper-slide{visibility:hidden;-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;width:100%;height:100%}.swiper-container-cube.swiper-container-rtl .swiper-slide{-webkit-transform-origin:100% 0;-moz-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-next,.swiper-container-cube .swiper-slide-next+.swiper-slide,.swiper-container-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-container-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0;width:100%;height:100%;background:#000;opacity:.6;-webkit-filter:blur(50px);filter:blur(50px);z-index:0}.swiper-container-fade.swiper-container-free-mode .swiper-slide{-webkit-transition-timing-function:ease-out;-moz-transition-timing-function:ease-out;-ms-transition-timing-function:ease-out;-o-transition-timing-function:ease-out;transition-timing-function:ease-out}.swiper-container-fade .swiper-slide{pointer-events:none;-webkit-transition-property:opacity;-moz-transition-property:opacity;-o-transition-property:opacity;transition-property:opacity}.swiper-container-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-fade .swiper-slide-active,.swiper-container-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0,0,0,.1)}.swiper-container-horizontal>.swiper-scrollbar{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%}.swiper-container-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0,0,0,.5);border-radius:10px;left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;-moz-transform-origin:50%;transform-origin:50%;-webkit-animation:swiper-preloader-spin 1s steps(12,end) infinite;-moz-animation:swiper-preloader-spin 1s steps(12,end) infinite;animation:swiper-preloader-spin 1s steps(12,end) infinite}.swiper-lazy-preloader:after{display:block;content:"";width:100%;height:100%;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%236c6c6c'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");background-position:50%;-webkit-background-size:100%;background-size:100%;background-repeat:no-repeat}.swiper-lazy-preloader-white:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%23fff'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}@-webkit-keyframes swiper-preloader-spin{100%{-webkit-transform:rotate(360deg)}}@keyframes swiper-preloader-spin{100%{transform:rotate(360deg)}} -------------------------------------------------------------------------------- /libs/zepto.min.js: -------------------------------------------------------------------------------- 1 | /* Zepto v1.2.0 - zepto event ajax form ie - zeptojs.com/license */ 2 | !function(t,e){"function"==typeof define&&define.amd?define(function(){return e(t)}):e(t)}(this,function(t){var e=function(){function $(t){return null==t?String(t):S[C.call(t)]||"object"}function F(t){return"function"==$(t)}function k(t){return null!=t&&t==t.window}function M(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function R(t){return"object"==$(t)}function Z(t){return R(t)&&!k(t)&&Object.getPrototypeOf(t)==Object.prototype}function z(t){var e=!!t&&"length"in t&&t.length,n=r.type(t);return"function"!=n&&!k(t)&&("array"==n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function q(t){return a.call(t,function(t){return null!=t})}function H(t){return t.length>0?r.fn.concat.apply([],t):t}function I(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function V(t){return t in l?l[t]:l[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function _(t,e){return"number"!=typeof e||h[I(t)]?e:e+"px"}function B(t){var e,n;return c[t]||(e=f.createElement(t),f.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),c[t]=n),c[t]}function U(t){return"children"in t?u.call(t.children):r.map(t.childNodes,function(t){return 1==t.nodeType?t:void 0})}function X(t,e){var n,r=t?t.length:0;for(n=0;r>n;n++)this[n]=t[n];this.length=r,this.selector=e||""}function J(t,r,i){for(n in r)i&&(Z(r[n])||L(r[n]))?(Z(r[n])&&!Z(t[n])&&(t[n]={}),L(r[n])&&!L(t[n])&&(t[n]=[]),J(t[n],r[n],i)):r[n]!==e&&(t[n]=r[n])}function W(t,e){return null==e?r(t):r(t).filter(e)}function Y(t,e,n,r){return F(e)?e.call(t,n,r):e}function G(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function K(t,n){var r=t.className||"",i=r&&r.baseVal!==e;return n===e?i?r.baseVal:r:void(i?r.baseVal=n:t.className=n)}function Q(t){try{return t?"true"==t||("false"==t?!1:"null"==t?null:+t+""==t?+t:/^[\[\{]/.test(t)?r.parseJSON(t):t):t}catch(e){return t}}function tt(t,e){e(t);for(var n=0,r=t.childNodes.length;r>n;n++)tt(t.childNodes[n],e)}var e,n,r,i,O,P,o=[],s=o.concat,a=o.filter,u=o.slice,f=t.document,c={},l={},h={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},p=/^\s*<(\w+|!)[^>]*>/,d=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,m=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,g=/^(?:body|html)$/i,v=/([A-Z])/g,y=["val","css","html","text","data","width","height","offset"],x=["after","prepend","before","append"],b=f.createElement("table"),E=f.createElement("tr"),j={tr:f.createElement("tbody"),tbody:b,thead:b,tfoot:b,td:E,th:E,"*":f.createElement("div")},w=/complete|loaded|interactive/,T=/^[\w-]*$/,S={},C=S.toString,N={},A=f.createElement("div"),D={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},L=Array.isArray||function(t){return t instanceof Array};return N.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var r,i=t.parentNode,o=!i;return o&&(i=A).appendChild(t),r=~N.qsa(i,e).indexOf(t),o&&A.removeChild(t),r},O=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},P=function(t){return a.call(t,function(e,n){return t.indexOf(e)==n})},N.fragment=function(t,n,i){var o,s,a;return d.test(t)&&(o=r(f.createElement(RegExp.$1))),o||(t.replace&&(t=t.replace(m,"<$1>")),n===e&&(n=p.test(t)&&RegExp.$1),n in j||(n="*"),a=j[n],a.innerHTML=""+t,o=r.each(u.call(a.childNodes),function(){a.removeChild(this)})),Z(i)&&(s=r(o),r.each(i,function(t,e){y.indexOf(t)>-1?s[t](e):s.attr(t,e)})),o},N.Z=function(t,e){return new X(t,e)},N.isZ=function(t){return t instanceof N.Z},N.init=function(t,n){var i;if(!t)return N.Z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&p.test(t))i=N.fragment(t,RegExp.$1,n),t=null;else{if(n!==e)return r(n).find(t);i=N.qsa(f,t)}else{if(F(t))return r(f).ready(t);if(N.isZ(t))return t;if(L(t))i=q(t);else if(R(t))i=[t],t=null;else if(p.test(t))i=N.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==e)return r(n).find(t);i=N.qsa(f,t)}}return N.Z(i,t)},r=function(t,e){return N.init(t,e)},r.extend=function(t){var e,n=u.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach(function(n){J(t,n,e)}),t},N.qsa=function(t,e){var n,r="#"==e[0],i=!r&&"."==e[0],o=r||i?e.slice(1):e,s=T.test(o);return t.getElementById&&s&&r?(n=t.getElementById(o))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:u.call(s&&!r&&t.getElementsByClassName?i?t.getElementsByClassName(o):t.getElementsByTagName(e):t.querySelectorAll(e))},r.contains=f.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},r.type=$,r.isFunction=F,r.isWindow=k,r.isArray=L,r.isPlainObject=Z,r.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},r.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},r.inArray=function(t,e,n){return o.indexOf.call(e,t,n)},r.camelCase=O,r.trim=function(t){return null==t?"":String.prototype.trim.call(t)},r.uuid=0,r.support={},r.expr={},r.noop=function(){},r.map=function(t,e){var n,i,o,r=[];if(z(t))for(i=0;i=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return o.every.call(this,function(e,n){return t.call(e,n,e)!==!1}),this},filter:function(t){return F(t)?this.not(this.not(t)):r(a.call(this,function(e){return N.matches(e,t)}))},add:function(t,e){return r(P(this.concat(r(t,e))))},is:function(t){return this.length>0&&N.matches(this[0],t)},not:function(t){var n=[];if(F(t)&&t.call!==e)this.each(function(e){t.call(this,e)||n.push(this)});else{var i="string"==typeof t?this.filter(t):z(t)&&F(t.item)?u.call(t):r(t);this.forEach(function(t){i.indexOf(t)<0&&n.push(t)})}return r(n)},has:function(t){return this.filter(function(){return R(t)?r.contains(this,t):r(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!R(t)?t:r(t)},last:function(){var t=this[this.length-1];return t&&!R(t)?t:r(t)},find:function(t){var e,n=this;return e=t?"object"==typeof t?r(t).filter(function(){var t=this;return o.some.call(n,function(e){return r.contains(e,t)})}):1==this.length?r(N.qsa(this[0],t)):this.map(function(){return N.qsa(this,t)}):r()},closest:function(t,e){var n=[],i="object"==typeof t&&r(t);return this.each(function(r,o){for(;o&&!(i?i.indexOf(o)>=0:N.matches(o,t));)o=o!==e&&!M(o)&&o.parentNode;o&&n.indexOf(o)<0&&n.push(o)}),r(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=r.map(n,function(t){return(t=t.parentNode)&&!M(t)&&e.indexOf(t)<0?(e.push(t),t):void 0});return W(e,t)},parent:function(t){return W(P(this.pluck("parentNode")),t)},children:function(t){return W(this.map(function(){return U(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||u.call(this.childNodes)})},siblings:function(t){return W(this.map(function(t,e){return a.call(U(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return r.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=B(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=F(t);if(this[0]&&!e)var n=r(t).get(0),i=n.parentNode||this.length>1;return this.each(function(o){r(this).wrapAll(e?t.call(this,o):i?n.cloneNode(!0):n)})},wrapAll:function(t){if(this[0]){r(this[0]).before(t=r(t));for(var e;(e=t.children()).length;)t=e.first();r(t).append(this)}return this},wrapInner:function(t){var e=F(t);return this.each(function(n){var i=r(this),o=i.contents(),s=e?t.call(this,n):t;o.length?o.wrapAll(s):i.append(s)})},unwrap:function(){return this.parent().each(function(){r(this).replaceWith(r(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var n=r(this);(t===e?"none"==n.css("display"):t)?n.show():n.hide()})},prev:function(t){return r(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return r(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var n=this.innerHTML;r(this).empty().append(Y(this,t,e,n))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var n=Y(this,t,e,this.textContent);this.textContent=null==n?"":""+n}):0 in this?this.pluck("textContent").join(""):null},attr:function(t,r){var i;return"string"!=typeof t||1 in arguments?this.each(function(e){if(1===this.nodeType)if(R(t))for(n in t)G(this,n,t[n]);else G(this,t,Y(this,r,e,this.getAttribute(t)))}):0 in this&&1==this[0].nodeType&&null!=(i=this[0].getAttribute(t))?i:e},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){G(this,t)},this)})},prop:function(t,e){return t=D[t]||t,1 in arguments?this.each(function(n){this[t]=Y(this,e,n,this[t])}):this[0]&&this[0][t]},removeProp:function(t){return t=D[t]||t,this.each(function(){delete this[t]})},data:function(t,n){var r="data-"+t.replace(v,"-$1").toLowerCase(),i=1 in arguments?this.attr(r,n):this.attr(r);return null!==i?Q(i):e},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(e){this.value=Y(this,t,e,this.value)})):this[0]&&(this[0].multiple?r(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each(function(t){var n=r(this),i=Y(this,e,t,n.offset()),o=n.offsetParent().offset(),s={top:i.top-o.top,left:i.left-o.left};"static"==n.css("position")&&(s.position="relative"),n.css(s)});if(!this.length)return null;if(f.documentElement!==this[0]&&!r.contains(f.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+t.pageXOffset,top:n.top+t.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(t,e){if(arguments.length<2){var i=this[0];if("string"==typeof t){if(!i)return;return i.style[O(t)]||getComputedStyle(i,"").getPropertyValue(t)}if(L(t)){if(!i)return;var o={},s=getComputedStyle(i,"");return r.each(t,function(t,e){o[e]=i.style[O(e)]||s.getPropertyValue(e)}),o}}var a="";if("string"==$(t))e||0===e?a=I(t)+":"+_(t,e):this.each(function(){this.style.removeProperty(I(t))});else for(n in t)t[n]||0===t[n]?a+=I(n)+":"+_(n,t[n])+";":this.each(function(){this.style.removeProperty(I(n))});return this.each(function(){this.style.cssText+=";"+a})},index:function(t){return t?this.indexOf(r(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return t?o.some.call(this,function(t){return this.test(K(t))},V(t)):!1},addClass:function(t){return t?this.each(function(e){if("className"in this){i=[];var n=K(this),o=Y(this,t,e,n);o.split(/\s+/g).forEach(function(t){r(this).hasClass(t)||i.push(t)},this),i.length&&K(this,n+(n?" ":"")+i.join(" "))}}):this},removeClass:function(t){return this.each(function(n){if("className"in this){if(t===e)return K(this,"");i=K(this),Y(this,t,n,i).split(/\s+/g).forEach(function(t){i=i.replace(V(t)," ")}),K(this,i.trim())}})},toggleClass:function(t,n){return t?this.each(function(i){var o=r(this),s=Y(this,t,i,K(this));s.split(/\s+/g).forEach(function(t){(n===e?!o.hasClass(t):n)?o.addClass(t):o.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var n="scrollTop"in this[0];return t===e?n?this[0].scrollTop:this[0].pageYOffset:this.each(n?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var n="scrollLeft"in this[0];return t===e?n?this[0].scrollLeft:this[0].pageXOffset:this.each(n?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),i=g.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(r(t).css("margin-top"))||0,n.left-=parseFloat(r(t).css("margin-left"))||0,i.top+=parseFloat(r(e[0]).css("border-top-width"))||0,i.left+=parseFloat(r(e[0]).css("border-left-width"))||0,{top:n.top-i.top,left:n.left-i.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||f.body;t&&!g.test(t.nodeName)&&"static"==r(t).css("position");)t=t.offsetParent;return t})}},r.fn.detach=r.fn.remove,["width","height"].forEach(function(t){var n=t.replace(/./,function(t){return t[0].toUpperCase()});r.fn[t]=function(i){var o,s=this[0];return i===e?k(s)?s["inner"+n]:M(s)?s.documentElement["scroll"+n]:(o=this.offset())&&o[t]:this.each(function(e){s=r(this),s.css(t,Y(this,i,e,s[t]()))})}}),x.forEach(function(n,i){var o=i%2;r.fn[n]=function(){var n,a,s=r.map(arguments,function(t){var i=[];return n=$(t),"array"==n?(t.forEach(function(t){return t.nodeType!==e?i.push(t):r.zepto.isZ(t)?i=i.concat(t.get()):void(i=i.concat(N.fragment(t)))}),i):"object"==n||null==t?t:N.fragment(t)}),u=this.length>1;return s.length<1?this:this.each(function(e,n){a=o?n:n.parentNode,n=0==i?n.nextSibling:1==i?n.firstChild:2==i?n:null;var c=r.contains(f.documentElement,a);s.forEach(function(e){if(u)e=e.cloneNode(!0);else if(!a)return r(e).remove();a.insertBefore(e,n),c&&tt(e,function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var n=e.ownerDocument?e.ownerDocument.defaultView:t;n.eval.call(n,e.innerHTML)}})})})},r.fn[o?n+"To":"insert"+(i?"Before":"After")]=function(t){return r(t)[n](this),this}}),N.Z.prototype=X.prototype=r.fn,N.uniq=P,N.deserializeValue=Q,r.zepto=N,r}();return t.Zepto=e,void 0===t.$&&(t.$=e),function(e){function h(t){return t._zid||(t._zid=n++)}function p(t,e,n,r){if(e=d(e),e.ns)var i=m(e.ns);return(a[h(t)]||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||i.test(t.ns))&&(!n||h(t.fn)===h(n))&&(!r||t.sel==r)})}function d(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function m(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function g(t,e){return t.del&&!f&&t.e in c||!!e}function v(t){return l[t]||f&&c[t]||t}function y(t,n,i,o,s,u,f){var c=h(t),p=a[c]||(a[c]=[]);n.split(/\s/).forEach(function(n){if("ready"==n)return e(document).ready(i);var a=d(n);a.fn=i,a.sel=s,a.e in l&&(i=function(t){var n=t.relatedTarget;return!n||n!==this&&!e.contains(this,n)?a.fn.apply(this,arguments):void 0}),a.del=u;var c=u||i;a.proxy=function(e){if(e=T(e),!e.isImmediatePropagationStopped()){e.data=o;var n=c.apply(t,e._args==r?[e]:[e].concat(e._args));return n===!1&&(e.preventDefault(),e.stopPropagation()),n}},a.i=p.length,p.push(a),"addEventListener"in t&&t.addEventListener(v(a.e),a.proxy,g(a,f))})}function x(t,e,n,r,i){var o=h(t);(e||"").split(/\s/).forEach(function(e){p(t,e,n,r).forEach(function(e){delete a[o][e.i],"removeEventListener"in t&&t.removeEventListener(v(e.e),e.proxy,g(e,i))})})}function T(t,n){return(n||!t.isDefaultPrevented)&&(n||(n=t),e.each(w,function(e,r){var i=n[e];t[e]=function(){return this[r]=b,i&&i.apply(n,arguments)},t[r]=E}),t.timeStamp||(t.timeStamp=Date.now()),(n.defaultPrevented!==r?n.defaultPrevented:"returnValue"in n?n.returnValue===!1:n.getPreventDefault&&n.getPreventDefault())&&(t.isDefaultPrevented=b)),t}function S(t){var e,n={originalEvent:t};for(e in t)j.test(e)||t[e]===r||(n[e]=t[e]);return T(n,t)}var r,n=1,i=Array.prototype.slice,o=e.isFunction,s=function(t){return"string"==typeof t},a={},u={},f="onfocusin"in t,c={focus:"focusin",blur:"focusout"},l={mouseenter:"mouseover",mouseleave:"mouseout"};u.click=u.mousedown=u.mouseup=u.mousemove="MouseEvents",e.event={add:y,remove:x},e.proxy=function(t,n){var r=2 in arguments&&i.call(arguments,2);if(o(t)){var a=function(){return t.apply(n,r?r.concat(i.call(arguments)):arguments)};return a._zid=h(t),a}if(s(n))return r?(r.unshift(t[n],t),e.proxy.apply(null,r)):e.proxy(t[n],t);throw new TypeError("expected function")},e.fn.bind=function(t,e,n){return this.on(t,e,n)},e.fn.unbind=function(t,e){return this.off(t,e)},e.fn.one=function(t,e,n,r){return this.on(t,e,n,r,1)};var b=function(){return!0},E=function(){return!1},j=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,w={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};e.fn.delegate=function(t,e,n){return this.on(e,t,n)},e.fn.undelegate=function(t,e,n){return this.off(e,t,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,n,a,u,f){var c,l,h=this;return t&&!s(t)?(e.each(t,function(t,e){h.on(t,n,a,e,f)}),h):(s(n)||o(u)||u===!1||(u=a,a=n,n=r),(u===r||a===!1)&&(u=a,a=r),u===!1&&(u=E),h.each(function(r,o){f&&(c=function(t){return x(o,t.type,u),u.apply(this,arguments)}),n&&(l=function(t){var r,s=e(t.target).closest(n,o).get(0);return s&&s!==o?(r=e.extend(S(t),{currentTarget:s,liveFired:o}),(c||u).apply(s,[r].concat(i.call(arguments,1)))):void 0}),y(o,t,u,a,n,l||c)}))},e.fn.off=function(t,n,i){var a=this;return t&&!s(t)?(e.each(t,function(t,e){a.off(t,n,e)}),a):(s(n)||o(i)||i===!1||(i=n,n=r),i===!1&&(i=E),a.each(function(){x(this,t,i,n)}))},e.fn.trigger=function(t,n){return t=s(t)||e.isPlainObject(t)?e.Event(t):T(t),t._args=n,this.each(function(){t.type in c&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)})},e.fn.triggerHandler=function(t,n){var r,i;return this.each(function(o,a){r=S(s(t)?e.Event(t):t),r._args=n,r.target=a,e.each(p(a,t.type||t),function(t,e){return i=e.proxy(r),r.isImmediatePropagationStopped()?!1:void 0})}),i},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(t){e.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}}),e.Event=function(t,e){s(t)||(e=t,t=e.type);var n=document.createEvent(u[t]||"Events"),r=!0;if(e)for(var i in e)"bubbles"==i?r=!!e[i]:n[i]=e[i];return n.initEvent(t,r,!0),T(n)}}(e),function(e){function p(t,n,r){var i=e.Event(n);return e(t).trigger(i,r),!i.isDefaultPrevented()}function d(t,e,n,i){return t.global?p(e||r,n,i):void 0}function m(t){t.global&&0===e.active++&&d(t,null,"ajaxStart")}function g(t){t.global&&!--e.active&&d(t,null,"ajaxStop")}function v(t,e){var n=e.context;return e.beforeSend.call(n,t,e)===!1||d(e,n,"ajaxBeforeSend",[t,e])===!1?!1:void d(e,n,"ajaxSend",[t,e])}function y(t,e,n,r){var i=n.context,o="success";n.success.call(i,t,o,e),r&&r.resolveWith(i,[t,o,e]),d(n,i,"ajaxSuccess",[e,n,t]),b(o,e,n)}function x(t,e,n,r,i){var o=r.context;r.error.call(o,n,e,t),i&&i.rejectWith(o,[n,e,t]),d(r,o,"ajaxError",[n,r,t||e]),b(e,n,r)}function b(t,e,n){var r=n.context;n.complete.call(r,e,t),d(n,r,"ajaxComplete",[e,n]),g(n)}function E(t,e,n){if(n.dataFilter==j)return t;var r=n.context;return n.dataFilter.call(r,t,e)}function j(){}function w(t){return t&&(t=t.split(";",2)[0]),t&&(t==c?"html":t==f?"json":a.test(t)?"script":u.test(t)&&"xml")||"text"}function T(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function S(t){t.processData&&t.data&&"string"!=e.type(t.data)&&(t.data=e.param(t.data,t.traditional)),!t.data||t.type&&"GET"!=t.type.toUpperCase()&&"jsonp"!=t.dataType||(t.url=T(t.url,t.data),t.data=void 0)}function C(t,n,r,i){return e.isFunction(n)&&(i=r,r=n,n=void 0),e.isFunction(r)||(i=r,r=void 0),{url:t,data:n,success:r,dataType:i}}function O(t,n,r,i){var o,s=e.isArray(n),a=e.isPlainObject(n);e.each(n,function(n,u){o=e.type(u),i&&(n=r?i:i+"["+(a||"object"==o||"array"==o?n:"")+"]"),!i&&s?t.add(u.name,u.value):"array"==o||!r&&"object"==o?O(t,u,r,n):t.add(n,u)})}var i,o,n=+new Date,r=t.document,s=/)<[^<]*)*<\/script>/gi,a=/^(?:text|application)\/javascript/i,u=/^(?:text|application)\/xml/i,f="application/json",c="text/html",l=/^\s*$/,h=r.createElement("a");h.href=t.location.href,e.active=0,e.ajaxJSONP=function(i,o){if(!("type"in i))return e.ajax(i);var c,p,s=i.jsonpCallback,a=(e.isFunction(s)?s():s)||"Zepto"+n++,u=r.createElement("script"),f=t[a],l=function(t){e(u).triggerHandler("error",t||"abort")},h={abort:l};return o&&o.promise(h),e(u).on("load error",function(n,r){clearTimeout(p),e(u).off().remove(),"error"!=n.type&&c?y(c[0],h,i,o):x(null,r||"error",h,i,o),t[a]=f,c&&e.isFunction(f)&&f(c[0]),f=c=void 0}),v(h,i)===!1?(l("abort"),h):(t[a]=function(){c=arguments},u.src=i.url.replace(/\?(.+)=\?/,"?$1="+a),r.head.appendChild(u),i.timeout>0&&(p=setTimeout(function(){l("timeout")},i.timeout)),h)},e.ajaxSettings={type:"GET",beforeSend:j,success:j,error:j,complete:j,context:null,global:!0,xhr:function(){return new t.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:f,xml:"application/xml, text/xml",html:c,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0,dataFilter:j},e.ajax=function(n){var u,f,s=e.extend({},n||{}),a=e.Deferred&&e.Deferred();for(i in e.ajaxSettings)void 0===s[i]&&(s[i]=e.ajaxSettings[i]);m(s),s.crossDomain||(u=r.createElement("a"),u.href=s.url,u.href=u.href,s.crossDomain=h.protocol+"//"+h.host!=u.protocol+"//"+u.host),s.url||(s.url=t.location.toString()),(f=s.url.indexOf("#"))>-1&&(s.url=s.url.slice(0,f)),S(s);var c=s.dataType,p=/\?.+=\?/.test(s.url);if(p&&(c="jsonp"),s.cache!==!1&&(n&&n.cache===!0||"script"!=c&&"jsonp"!=c)||(s.url=T(s.url,"_="+Date.now())),"jsonp"==c)return p||(s.url=T(s.url,s.jsonp?s.jsonp+"=?":s.jsonp===!1?"":"callback=?")),e.ajaxJSONP(s,a);var P,d=s.accepts[c],g={},b=function(t,e){g[t.toLowerCase()]=[t,e]},C=/^([\w-]+:)\/\//.test(s.url)?RegExp.$1:t.location.protocol,N=s.xhr(),O=N.setRequestHeader;if(a&&a.promise(N),s.crossDomain||b("X-Requested-With","XMLHttpRequest"),b("Accept",d||"*/*"),(d=s.mimeType||d)&&(d.indexOf(",")>-1&&(d=d.split(",",2)[0]),N.overrideMimeType&&N.overrideMimeType(d)),(s.contentType||s.contentType!==!1&&s.data&&"GET"!=s.type.toUpperCase())&&b("Content-Type",s.contentType||"application/x-www-form-urlencoded"),s.headers)for(o in s.headers)b(o,s.headers[o]);if(N.setRequestHeader=b,N.onreadystatechange=function(){if(4==N.readyState){N.onreadystatechange=j,clearTimeout(P);var t,n=!1;if(N.status>=200&&N.status<300||304==N.status||0==N.status&&"file:"==C){if(c=c||w(s.mimeType||N.getResponseHeader("content-type")),"arraybuffer"==N.responseType||"blob"==N.responseType)t=N.response;else{t=N.responseText;try{t=E(t,c,s),"script"==c?(1,eval)(t):"xml"==c?t=N.responseXML:"json"==c&&(t=l.test(t)?null:e.parseJSON(t))}catch(r){n=r}if(n)return x(n,"parsererror",N,s,a)}y(t,N,s,a)}else x(N.statusText||null,N.status?"error":"abort",N,s,a)}},v(N,s)===!1)return N.abort(),x(null,"abort",N,s,a),N;var A="async"in s?s.async:!0;if(N.open(s.type,s.url,A,s.username,s.password),s.xhrFields)for(o in s.xhrFields)N[o]=s.xhrFields[o];for(o in g)O.apply(N,g[o]);return s.timeout>0&&(P=setTimeout(function(){N.onreadystatechange=j,N.abort(),x(null,"timeout",N,s,a)},s.timeout)),N.send(s.data?s.data:null),N},e.get=function(){return e.ajax(C.apply(null,arguments))},e.post=function(){var t=C.apply(null,arguments);return t.type="POST",e.ajax(t)},e.getJSON=function(){var t=C.apply(null,arguments);return t.dataType="json",e.ajax(t)},e.fn.load=function(t,n,r){if(!this.length)return this;var a,i=this,o=t.split(/\s/),u=C(t,n,r),f=u.success;return o.length>1&&(u.url=o[0],a=o[1]),u.success=function(t){i.html(a?e("
").html(t.replace(s,"")).find(a):t),f&&f.apply(i,arguments)},e.ajax(u),this};var N=encodeURIComponent;e.param=function(t,n){var r=[];return r.add=function(t,n){e.isFunction(n)&&(n=n()),null==n&&(n=""),this.push(N(t)+"="+N(n))},O(r,t,n),r.join("&").replace(/%20/g,"+")}}(e),function(t){t.fn.serializeArray=function(){var e,n,r=[],i=function(t){return t.forEach?t.forEach(i):void r.push({name:e,value:t})};return this[0]&&t.each(this[0].elements,function(r,o){n=o.type,e=o.name,e&&"fieldset"!=o.nodeName.toLowerCase()&&!o.disabled&&"submit"!=n&&"reset"!=n&&"button"!=n&&"file"!=n&&("radio"!=n&&"checkbox"!=n||o.checked)&&i(t(o).val())}),r},t.fn.serialize=function(){var t=[];return this.serializeArray().forEach(function(e){t.push(encodeURIComponent(e.name)+"="+encodeURIComponent(e.value))}),t.join("&")},t.fn.submit=function(e){if(0 in arguments)this.bind("submit",e);else if(this.length){var n=t.Event("submit");this.eq(0).trigger(n),n.isDefaultPrevented()||this.get(0).submit()}return this}}(e),function(){try{getComputedStyle(void 0)}catch(e){var n=getComputedStyle;t.getComputedStyle=function(t,e){try{return n(t,e)}catch(r){return null}}}}(),e}); -------------------------------------------------------------------------------- /libs/debuggap.js: -------------------------------------------------------------------------------- 1 | !function(){function e(e){this.url="http://"+e.host+":"+(parseInt(e.port)+1)+"/scriptSocket",this.readyState=0,this.getSocketData();var t=this;window.onbeforeunload=function(){try{t.closeSocket()}catch(e){}}}function t(e){function t(e){var t=e.split(",");return t}function o(e,o){var n=null;if(e.matches(o.selectorText)){for(var r=t(o.selectorText),i=o.selectorText,a=0;aa;a++)if(r=t[a].cssRules||t[a].rules,i=t[a].media&&t[a].media.mediaText,i&&"all"!=i||(i=""),r&&(!i||window.matchMedia(i).matches))for(var d,l=t[a].href||location.pathname+location.search,c={},p=0,g=r.length;g>p;p++)try{if(d=r[p],1==d.type)c=o(e,d),c&&(c.href=l,c.sheetIndex=a,c.cssRuleIndex=[p],i&&(c.mediaText='media="'+i+'"'),n.push(c));else if(4==d.type){var u=d.media&&d.media.mediaText||"";if(u&&window.matchMedia(u).matches){var h=d.cssRules||d.rules;if(h)for(var f=0,b=h.length;b>f;f++)c=o(e,h[f]),c&&(c.href=l,c.sheetIndex=a,c.cssRuleIndex=[p,f],c.mediaText="@media "+u,n.push(c))}}else 3==d.type}catch(v){}return n}function r(e){var t=e.getAttribute("style");return t?t:""}return{_class:n(e),_style:r(e)}}function o(e,t){t?i.socketBuffer.unshift(e):i.socketBuffer.push(e),s.socketReady()&&i.socketSendStop&&(i.socketSendStop=0,i._js_p14())}debuggap={version:"4.5.2"};var n=function(e,t){return t=t?t:document,t.querySelector(e)},r=function(e,t){return t=t?t:document,t.querySelectorAll(e)},i=debuggap;i.css3Prefix="-webkit-",i.selfClosing={img:1,hr:1,br:1,area:1,base:1,basefont:1,input:1,link:1,meta:1,command:1,embed:1,keygen:1,wbr:1,param:1,source:1,track:1,col:1},i.browser="webkit",/MSIE|\.NET|IEMobile/i.test(navigator.userAgent)&&(i.browser="ie"),i.size=function(){return{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}},i.extend=function(){var e,t=arguments[0]||{},o=1,n=arguments.length,r=!1;for(t.constructor==Boolean&&(r=t,t=arguments[1]||{},o=2),"object"!=typeof t&&"function"!=typeof t&&(t={}),1==n&&(t=this,o=0);n>o;o++)if(null!=(e=arguments[o]))for(var i in e)t!==e[i]&&(r&&e[i]&&"object"==typeof e[i]&&t[i]&&!e[i].nodeType?t[i]=psoft.extend(r,t[i],e[i]):void 0!=e[i]&&(t[i]=e[i]));return t},i.inherit=function(e){for(var t in e)s[t]&&!function(t){var o=s[t];s[t]=function(){o.apply(this,arguments),e[t].apply(this,arguments)}}(t)},i.css=function(e,t,o,n){if("object"!=typeof t){var r=getComputedStyle(e,null);return r.getPropertyValue(t)}e.length||(e=[e]);for(var i=0;ir;r++){var s=document.createElement("div"),d=o[r],l="background:"+i.css3Prefix+"linear-gradient("+d[0]+");background-size:"+d[1]+";height:"+d[2]+";width:"+d[3];l+=";position:absolute;left:0px;top:0px;z-index:999;",s.setAttribute("style",l),t.appendChild(s)}n("#debuggapRoot").appendChild(t)},i.conf={scaleColor:"#cccccc",lineColor:"#cc6600"};var a={};i.draw={drawLi:function(e){var t=document.createElement("li");if(t.className="dg-node",8==e.nodeType){var o=e.nodeValue;return o=o.replace(/\/g,">"),t.innerHTML='
<!--'+o+"-->
",t}if(3==e.nodeType)return t.innerHTML='
'+e.nodeValue+"
",t;if(10==e.nodeType)return t.style.color="#ccc",t.innerHTML="<!DOCTYPE "+e.name+" "+e.publicId+" "+e.systemId+">",t;for(var n=e.tagName.toLowerCase(),r='<'+n+"",a=e.attributes,s=null,d=0;d'+a[d].name+'="'+a[d].value+'"';if(i.selfClosing[n])r+='/>';else{if(r+='>',e.childNodes.length){r+="...",s=document.createElement("span"),s.className="dg-right";var l=document.createElement("span");l.className="dg-tap"}r+='</'+n+">"}return t.innerHTML=r,s&&(t.appendChild(s),t.appendChild(l)),t},getRelation:function(e){for(var t=e.parentNode,o=[],n=e;;){for(var r=[],a=i.filterChildNodes(t,[1,3,8]),s=0;s/,""),e.innerHTML=t;var o=this.getRelation(e),r=this.findRelation(o),a=i.filterChildNodes(r,[1,3,8]),s=document.createElement("li");s.className="dg-child";for(var d=document.createElement("ul"),l=0;l</'+r.tagName.toLowerCase()+">",e.parentNode.insertBefore(c,e.nextSibling),e.parentNode.insertBefore(s,c);var p=n(".dg-right",e);return i.classes.add(p,"dg-rotate"),e},del:function(e){var t=e.parentNode,o=t.innerHTML,r=o.match(/<(.+?)<\/span>/)[1];o=o.replace(/><\/span>/,'>...</'+r+">"),t.innerHTML=o;var a=t.nextSibling;a.parentNode.removeChild(a),t.parentNode.removeChild(t.nextSibling);var e=n(".dg-right",t);return i.classes.remove(e,"dg-rotate"),i.classes.have(t,"line-wh")&&i.map.treeToEle(t),t}},i.extend({indexArray:function(e,t){for(var o=0;or&&t.call(e[r],r,e[r],o)!==!1;r++);},position:function(e){for(var t=0,o=0,n=e.clientWidth,r=e.clientHeight,i=e;i&&i!=document.body;)t+=i.offsetLeft,o+=i.offsetTop,i=i.offsetParent;return{left:t,top:o,width:n,height:r}},max:function(e,t){return e>t?e:t},min:function(e,t){return e>t?t:e},preName:function(e){return i.css3Prefix+e},trim:function(e){return e.replace(/^\s+|\s+$/g,"")},createEle:function(e,t,o){var e=document.createElement(e);for(var n in t)e.setAttribute(n,t[n]);return o&&(e.innerHTML=o),e},isFunction:function(e){return"function"==typeof e},filterChildNodes:function(e,t){t=t?t:[1,3,8];for(var o=[],n=e.childNodes,r=0;rl;l++)d.margin[l]+=d.border[l];a.splice(1,1);for(var p=0;p
!
',r("td",e)[1].innerHTML=this.concatArg(arguments)},error:function(){var e=this.createLine();i.inArray(this.focus,["all","error"])||i.css(e,{display:"none"}),i.classes.add(e,"dg-e"),r("td",e)[0].innerHTML='
x
',r("td",e)[1].innerHTML=""+this.concatArg(arguments)+""},concatArg:function(e){for(var t="",o=0,n=e.length;n>o;o++)t+=" "+e[o];return t},tryCatch:function(e){this.history[0]!=e&&this.history.unshift(e);this.createLine(e);try{e=/(for|while)/.exec(e)?'return new Function("'+e+'")()':"return "+e;var t=new Function(e)();t?"string"==typeof t?t=''+t.replace(/\>/g,">").replace(/\":"function"==typeof t&&(t=''+t+""):t+="",this.log(t)}catch(o){this.error(o.name+": "+o.message)}},createLine:function(e){var t=document.createElement("tr");return t.innerHTML="",i.each(r("td",t),function(t){1==t&&e?this.innerHTML=''+e+"":this.innerHTML=""}),i.classes.add(r("td",t)[0],"dg-type"),i.classes.add(r("td",t)[1],"dg-con"),n("table",n("#debuggapConsole .dg-console")).appendChild(t),t},history:[],index:-1,up:function(){this.index++,this.indexe.left&&i>e.top&&o>r&&n>i?!0:void 0},register:function(e){if(!(this instanceof arguments.callee))return!0;var t=e.parentNode,o=0,n=0,r={};this.bind=function(e,t,o){var n;"string"==typeof e?(n=r[e])?n[t]=o:(n={},n[t]=o,r[e]=n):e.dgEventIndex?(n=r[e.dgEventIndex],n?n[t]=o:(n={},n[t]=o,r[e.dgEventIndex]=n)):(e.dgEventIndex=i.event.eventIndex++,n={},n[t]=o,r[e.dgEventIndex]=n)},this.unbind=function(e){e.dgEventIndex&&r[e.dgEventIndex]&&(r[e.dgEventIndex]=null,delete r[e.dgEventIndex])},this.trigger=function(e,t){var o,n=e.dgEventIndex;(o=r[n])&&o[t].call(e,null)},this.destroy=function(){r=null,e.removeEventListener("touchmove",s,!1),e.removeEventListener("touchend",d,!1),e.removeEventListener("touchstart",a,!1),s=null,d=null,a=null};var a=function(e){var a=e.touches&&e.touches[0]||e,s=a.target;for(n=0;s!=t&&s;){var d=s.dgEventIndex,l=r[d];if(l&&l.scroll){var c=l.scroll;o=0,n=1,c.dgOx=a.pageX,c.dgOy=a.pageY,i.css(c,{"-webkit-transition":""});var p=c.style.WebkitTransform?c.style.WebkitTransform:"translate(0px,0px)",g=p.match(/translate\(([^\)]*)\)/)[1].split(",");return c.dgX=parseInt(g[0]),c.dgY=parseInt(g[1]),!0}if(l&&l.move&&(o=0),l&&l.taps&&l.taps.call(s,e))return!0;s=s.parentNode}},s=function(e){for(var n=e.touches[0],i=n.target;i!=t&&i;){var a=i.dgEventIndex,s=r[a];if(s&&s.scroll){var d=s.scroll;if(o=1,Math.abs(n.pageY-d.dgOy)>Math.abs(n.pageX-d.dgOx))var l="translate("+d.dgX+"px,"+(n.pageY-d.dgOy+d.dgY)+"px) ";else var l="translate("+(n.pageX-d.dgOx+d.dgX)+"px,"+d.dgY+"px) ";return d.style.WebkitTransform=l,e.preventDefault(),!0}if(s&&s.move&&(o=1,e.preventDefault(),e.stopPropagation(),s.move.call(i,e)))return!0;i=i.parentNode}},d=function(e){for(var a=e.changedTouches[0],s=a.target;s!=t&&s;){var d=s.dgEventIndex,l=(s.tagName||"").toLowerCase(),c=r[d]?r[d]:r[l];if(c&&c.tap&&!o){if(1==s.nodeType)var p=i.position(s);else n=1;if((n||i.event.inWrap(p,a))&&c.tap.call(s,e))return!0}if(c&&c.scroll&&o){var g=c.scroll;o=0;var u=g.style.WebkitTransform?g.style.WebkitTransform:"translate(0px,0px)",h=u.match(/translate\(([^\)]*)\)/)[1].split(",");g.dgX=parseInt(h[0]),g.dgY=parseInt(h[1]);var f=i.max(g.scrollHeight-parseInt(i.css(g.parentNode,"height")),0),b=i.max(g.scrollWidth-parseInt(i.css(g.parentNode,"width")),0),v="",m="",x=0;if(g.dgY>0?(m="0px",x=1):Math.abs(g.dgY)>f&&(m="-"+f+"px",x=1),g.dgX>0?(v="0px",x=1):Math.abs(g.dgX)>b&&(v="-"+b+"px",x=1),x){v||(v=g.dgX+"px"),m||(m=g.dgY+"px");var y="translate("+v+","+m+")";i.css(g,{"-webkit-transition":"-webkit-transform 0.5s","-webkit-transform":y})}return!0}s=s.parentNode}};e.addEventListener("touchmove",s,!1),e.addEventListener("touchend",d,!1),e.addEventListener("ie"==i.browser?"mousedown":"touchstart",a,!1)}},e.prototype={tryMaxTimes:1,currentTimes:0,readyState:0,timeout:10,getSocketData:function(){var e=document.createElement("script");e.src=(0==this.readyState?this.url+"/init":this.url)+"?_d="+(new Date).getTime(),e.id="socket_script",e.onload=i.bind(this,"success"),e.onerror=i.bind(this,"error"),document.head.appendChild(e)},closeSocket:function(){var e=document.createElement("script");e.src=this.url+"/close?_d="+(new Date).getTime(),document.head.appendChild(e)},send:function(e){i.ajax(this.url,function(){},e)},success:function(){this._js_p0(),setTimeout(i.bind(this,"getSocketData"),this.timeout)},error:function(){this._js_p0(),this.currentTimes++!=this.tryMaxTimes?setTimeout(i.bind(this,"getSocketData"),this.timeout):(delete localStorage.scriptSocket,this.onclose&&this.onclose())},_js_p0:function(){document.head.removeChild(document.getElementById("socket_script"))},close:function(){}},i.scriptSocket={handShake:function(){d&&(d.readyState=1,d.onopen())},handle:function(e){d&&d.onmessage({data:e})}},function(){function e(e){var t=e;return"http"!=e.slice(0,4)&&("/"==e.slice(0,1)?t=location.protocol+"//"+location.host+e:"./"==e.slice(0,2)&&(t=(location.protocol+"//"+location.host+location.pathname).replace(/\/.[^\/]*$/,"/")+e.slice(2))),t}var t={},n=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(o,r,i){try{var a=1e3*(new Date).getTime()+Math.floor(1e3*Math.random()),s=e(r);"http"!=s.slice(0,4)&&"file"!=s.slice(0,4)||(this.uniqueId=a,t[a]={method:o,url:s,header:{}})}catch(d){}n.apply(this,arguments)};var r=XMLHttpRequest.prototype.setRequestHeader;XMLHttpRequest.prototype.setRequestHeader=function(e,o){this.uniqueId&&(t[this.uniqueId].header[e]=o),r.apply(this,arguments)};var i=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.send=function(e){function n(){if(!g){g=!0;var e,n;try{e=p.getAllResponseHeaders(),n=p.responseText}catch(r){e="",n=""}if("http"==t[p.uniqueId].url.slice(0,4)){var i=e.split("\r\n");e={};for(var a,s=0;s