├── .DS_Store
├── .babelrc
├── .editorconfig
├── .eslintignore
├── .eslintrc.js
├── .gitignore
├── README.md
├── build
├── build.js
├── dev-client.js
├── dev-server.js
├── utils.js
├── webpack.base.conf.js
├── webpack.dev.conf.js
└── webpack.prod.conf.js
├── config.js
├── config
├── dev.env.js
├── index.js
├── prod.env.js
└── test.env.js
├── index.html
├── package.json
├── src
├── assets
│ └── logo.png
├── components
│ ├── Hello.vue
│ ├── about-content.vue
│ ├── blog-index-content.vue
│ ├── blog-manage-content.vue
│ ├── footer.vue
│ ├── form-validate.vue
│ ├── head.vue
│ ├── highcharts-content.vue
│ ├── index-center.vue
│ ├── share.vue
│ ├── vue-editor.vue
│ ├── vue-touch.vue
│ └── works-content.vue
├── main.js
├── test.js
└── views
│ ├── blog-manage.vue
│ ├── blog.vue
│ ├── form.vue
│ ├── hello.vue
│ ├── index.vue
│ ├── vueeditor.vue
│ ├── vuetouch.vue
│ └── works.vue
├── static
├── .gitkeep
├── css
│ ├── base
│ │ ├── bootstrap.min.css
│ │ └── common.css
│ └── fonts
│ │ ├── AmaticSC-Bold1.woff2
│ │ ├── AmaticSC-Bold2.woff2
│ │ ├── glyphicons-halflings-regular.eot
│ │ ├── glyphicons-halflings-regular.svg
│ │ ├── glyphicons-halflings-regular.ttf
│ │ ├── glyphicons-halflings-regular.woff
│ │ └── glyphicons-halflings-regular.woff2
├── img
│ ├── blog
│ │ ├── author.jpg
│ │ ├── pic-cannot-be-found.png
│ │ ├── pic-lattern.png
│ │ ├── pic-vue.png
│ │ └── weibo.png
│ ├── favicon.ico
│ ├── g-share-ico.png
│ ├── index-icon1.png
│ ├── index-icon2.svg
│ ├── index-icon3.gif
│ ├── index-icon4.gif
│ └── logo.png
├── js
│ ├── common
│ │ ├── bootstrap.min.js
│ │ ├── jquery.js
│ │ └── utils.js
│ └── plugins
│ │ ├── highcharts.js
│ │ ├── jquery-form.js
│ │ ├── jquery-validate.min.js
│ │ └── masonry-docs.min.js
└── json
│ ├── blog_articles.json
│ ├── blog_index_tags.json
│ └── works.json
└── test.html
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coder-Yin/learn-vue/9d417b8f10a798e87a755e081ad0600aef233de6/.DS_Store
--------------------------------------------------------------------------------
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["es2015", "stage-2"],
3 | "plugins": ["transform-runtime"],
4 | "comments": false
5 | }
6 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | indent_style = space
6 | indent_size = 2
7 | end_of_line = lf
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/.eslintignore:
--------------------------------------------------------------------------------
1 | build/*.js
2 | config/*.js
3 |
--------------------------------------------------------------------------------
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | parserOptions: {
4 | sourceType: 'module'
5 | },
6 | // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
7 | extends: 'standard',
8 | // required to lint *.vue files
9 | plugins: [
10 | 'html'
11 | ],
12 | // add your custom rules here
13 | 'rules': {
14 | // allow paren-less arrow functions
15 | 'arrow-parens': 0,
16 | // allow debugger during development
17 | 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules/
3 | dist/
4 | npm-debug.log
5 | selenium-debug.log
6 | test/unit/coverage
7 | test/e2e/reports
8 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # learn-vue
2 | 使用vue.js搭建个人网站
3 | ##### 使用技术: vue.js+webpack
4 | ##### 项目说明: 此项目是本人空余时间搭建的。希望大家提供宝贵的意见和建议,谢谢。
5 | ##### 邮 箱: yin_x_f@163.com
6 | ##### 个人网站: http://www.coderyin.com/
7 | ##### 个人博客: http://www.jianshu.com/u/489e597a9cad
8 | ##### git 博 客: http://coder-yin.github.io/2016/07/04/hello-world/
9 |
10 |
11 | ### Build Setup
12 |
13 | ```
14 | # git clone
15 | git clone https://github.com/coder-Yin/learn-vue.git
16 |
17 | # install dependencies
18 | npm install
19 |
20 | # serve with hot reload at localhost:8080
21 | npm run dev
22 |
23 | # build for production with minification
24 | npm run build
25 |
26 | # 访问路径
27 | http://localhost:8080/index.html#!/index
28 |
29 | # 项目运行效果
30 | http://www.jianshu.com/p/48ab268bc890
31 | ```
32 |
33 | #### 历史更新
34 | *2016.07.02*
35 |
36 | 1.SPA增加多页面入口的功能(访问路径:http://localhost:8080/test.html#!/index);
37 | 主要配置:
38 | 01)webpack.base.conf.js
39 | entry: {
40 | app: './src/main.js',
41 | test:'./src/test.js'
42 | },
43 | 02)webpack.dev.conf.js
44 | new HtmlWebpackPlugin({
45 | filename: 'test.html',
46 | template: 'test.html',
47 | chunks: ['test'],
48 | inject: true
49 | })
50 | 03)webpack.prod.conf.js
51 | new HtmlWebpackPlugin({
52 | filename: process.env.NODE_ENV === 'testing'
53 | ? 'test.html'
54 | : config.build.test,
55 | template: 'test.html',
56 | inject: true,
57 | minify: {
58 | removeComments: true,
59 | collapseWhitespace: true,
60 | removeAttributeQuotes: true
61 | // more options:
62 | // https://github.com/kangax/html-minifier#options-quick-reference
63 | },
64 | // necessary to consistently work with multiple chunks via CommonsChunkPlugin
65 | chunksSortMode: 'dependency'
66 | }),
67 | 04)根目录,新增config.js
68 | // see http://vuejs-templates.github.io/webpack for documentation.
69 | var path = require('path')
70 | module.exports = {
71 | build: {
72 | index: path.resolve(__dirname, 'dist/index.html'),
73 | test: path.resolve(__dirname, 'dist/test.html'),
74 | assetsRoot: path.resolve(__dirname, 'dist'),
75 | assetsSubDirectory: 'static',
76 | assetsPublicPath: '/',
77 | productionSourceMap: false
78 | },
79 | dev: {
80 | port: 8080,
81 | proxyTable: {}
82 | }
83 | }
84 |
85 |
86 | *2016.06.30*
87 |
88 | 1.增加表单验证(vue-validator,components/form-validate.vue,访问路径:http://localhost:8080/#!/form);
89 | 2.增加touch事件(vue-touch,components/vue-touch.vue,访问路径:http://localhost:8080/#!/touch);
90 | 3.增加博客管理页面(blog-manage,components/blog-manage-content.vue,访问路径:http://localhost:8080/#!/blogmanage)
91 | PS:form下不要用,而要用 ,前者会导致不期望发生的事情——网页刷新;
92 | 4.增加作品瀑布流(works,components/works-content.vue,访问路径:http://localhost:8080/#!/works);
93 | 5.修复移动端swipeleft,swiperight (VueTouch.config.swipe = {direction: 'horizontal'});
94 |
95 |
96 | *2016.06.29*
97 |
98 | 1.重构项目;
99 | 2.增加eslint检验,可以在配置文件中打开(build/webpack.base.conf.js中的注释打开);
100 |
101 | *2016.04.20*
102 |
103 | 1.使用sourcetree测试~
104 |
105 | *2016.03.21*
106 |
107 | 1.增加博客管理组件(增加、删除记录)——blog-manage-content.vue;
108 | 2.增加表单验证,jquery-validate.js;
109 |
110 | *2016.03.15*
111 |
112 | 1.修改works-content.vue;
113 | 2.增加页面之间的跳转链接;
114 |
115 | *2016.03.11*
116 |
117 | 1.增加作品展示列表页面--views/work.vue(宽度固定,高度,背景颜色根据随机函数得出);
118 | 2.在.vue中增加自定义函数;
119 | 3.引入瀑布流插件;
120 |
121 | *2016.03.02*
122 |
123 | 1.修改博客首页,数据从.json文件读取,嵌套页面数据;
124 |
125 | 注意点:绑定图片src应该这么写:
(不加{{}}),不推荐src={{item.img}}
126 |
127 | 2.博客首页增加分享功能;
128 |
129 | 3.博客首页增加子组件嵌套子组件;
130 |
131 | *2016.03.01*
132 |
133 | 1.增加博客版块页面;
134 |
135 | 2.修改webpack配置文件webpack.config.js,以支持编译多个对应的js文件;
136 |
137 | 原先:
138 | entry: './src/app.js',
139 | output: {
140 | path: './dist', //文件夹生成的目录
141 | publicPath: '../dist/', //静态文件(图片)的路径
142 | filename: 'app.js'
143 | },
144 |
145 | 新的:
146 | entry: {
147 | app:['./src/app.js'],
148 | blog_index:['./src/blog_index.js']
149 | },
150 | output: {
151 | path: './dist', //文件夹生成的目录
152 | publicPath: '../dist/', //静态文件(图片)的路径
153 | filename: '[name].js'
154 | }
155 |
156 | 3.博客版块json文件添加;
157 |
158 | *2016.02.26*
159 |
160 | 1. 增加页面跳转,url传参;
161 | 2. 增加get请求,模拟请求本地json文件,获得数据,重设数据源;
162 | 3. 添加公用方法库——utils.js,其中添加自定义方法获取浏览器地址栏参数;
163 | 4. 在组件中增加引用第三方库:jquery.highcharts,并完成页面操作;
164 |
165 | *2016.02.25*
166 |
167 | 1. 初始化项目搭建;
168 |
169 |
--------------------------------------------------------------------------------
/build/build.js:
--------------------------------------------------------------------------------
1 | // https://github.com/shelljs/shelljs
2 | require('shelljs/global')
3 | env.NODE_ENV = 'production'
4 |
5 | var path = require('path')
6 | var config = require('../config')
7 | var ora = require('ora')
8 | var webpack = require('webpack')
9 | var webpackConfig = require('./webpack.prod.conf')
10 |
11 | console.log(
12 | ' Tip:\n' +
13 | ' Built files are meant to be served over an HTTP server.\n' +
14 | ' Opening index.html over file:// won\'t work.\n'
15 | )
16 |
17 | var spinner = ora('building for production...')
18 | spinner.start()
19 |
20 | var assetsPath = path.join(config.build.assetsRoot, config.build.assetsSubDirectory)
21 | rm('-rf', assetsPath)
22 | mkdir('-p', assetsPath)
23 | cp('-R', 'static/', assetsPath)
24 |
25 | webpack(webpackConfig, function (err, stats) {
26 | spinner.stop()
27 | if (err) throw err
28 | process.stdout.write(stats.toString({
29 | colors: true,
30 | modules: false,
31 | children: false,
32 | chunks: false,
33 | chunkModules: false
34 | }) + '\n')
35 | })
36 |
--------------------------------------------------------------------------------
/build/dev-client.js:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | require('eventsource-polyfill')
3 | var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')
4 |
5 | hotClient.subscribe(function (event) {
6 | if (event.action === 'reload') {
7 | window.location.reload()
8 | }
9 | })
10 |
--------------------------------------------------------------------------------
/build/dev-server.js:
--------------------------------------------------------------------------------
1 | var path = require('path')
2 | var express = require('express')
3 | var webpack = require('webpack')
4 | var config = require('../config')
5 | var proxyMiddleware = require('http-proxy-middleware')
6 | var webpackConfig = process.env.NODE_ENV === 'testing'
7 | ? require('./webpack.prod.conf')
8 | : require('./webpack.dev.conf')
9 |
10 | // default port where dev server listens for incoming traffic
11 | var port = process.env.PORT || config.dev.port
12 | // Define HTTP proxies to your custom API backend
13 | // https://github.com/chimurai/http-proxy-middleware
14 | var proxyTable = config.dev.proxyTable
15 |
16 | var app = express()
17 | var compiler = webpack(webpackConfig)
18 |
19 | var devMiddleware = require('webpack-dev-middleware')(compiler, {
20 | publicPath: webpackConfig.output.publicPath,
21 | stats: {
22 | colors: true,
23 | chunks: false
24 | }
25 | })
26 |
27 | var hotMiddleware = require('webpack-hot-middleware')(compiler)
28 | // force page reload when html-webpack-plugin template changes
29 | compiler.plugin('compilation', function (compilation) {
30 | compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
31 | hotMiddleware.publish({ action: 'reload' })
32 | cb()
33 | })
34 | })
35 |
36 | // proxy api requests
37 | Object.keys(proxyTable).forEach(function (context) {
38 | var options = proxyTable[context]
39 | if (typeof options === 'string') {
40 | options = { target: options }
41 | }
42 | app.use(proxyMiddleware(context, options))
43 | })
44 |
45 | // handle fallback for HTML5 history API
46 | app.use(require('connect-history-api-fallback')())
47 |
48 | // serve webpack bundle output
49 | app.use(devMiddleware)
50 |
51 | // enable hot-reload and state-preserving
52 | // compilation error display
53 | app.use(hotMiddleware)
54 |
55 | // serve pure static assets
56 | var staticPath = path.posix.join(config.build.assetsPublicPath, config.build.assetsSubDirectory)
57 | app.use(staticPath, express.static('./static'))
58 |
59 | module.exports = app.listen(port, function (err) {
60 | if (err) {
61 | console.log(err)
62 | return
63 | }
64 | console.log('Listening at http://localhost:' + port + '\n')
65 | })
66 |
--------------------------------------------------------------------------------
/build/utils.js:
--------------------------------------------------------------------------------
1 | var path = require('path')
2 | var config = require('../config')
3 | var ExtractTextPlugin = require('extract-text-webpack-plugin')
4 |
5 | exports.assetsPath = function (_path) {
6 | return path.posix.join(config.build.assetsSubDirectory, _path)
7 | }
8 |
9 | exports.cssLoaders = function (options) {
10 | options = options || {}
11 | // generate loader string to be used with extract text plugin
12 | function generateLoaders (loaders) {
13 | var sourceLoader = loaders.map(function (loader) {
14 | var extraParamChar
15 | if (/\?/.test(loader)) {
16 | loader = loader.replace(/\?/, '-loader?')
17 | extraParamChar = '&'
18 | } else {
19 | loader = loader + '-loader'
20 | extraParamChar = '?'
21 | }
22 | return loader + (options.sourceMap ? extraParamChar + 'sourceMap' : '')
23 | }).join('!')
24 |
25 | if (options.extract) {
26 | return ExtractTextPlugin.extract('vue-style-loader', sourceLoader)
27 | } else {
28 | return ['vue-style-loader', sourceLoader].join('!')
29 | }
30 | }
31 |
32 | // http://vuejs.github.io/vue-loader/configurations/extract-css.html
33 | return {
34 | css: generateLoaders(['css']),
35 | postcss: generateLoaders(['css']),
36 | less: generateLoaders(['css', 'less']),
37 | sass: generateLoaders(['css', 'sass?indentedSyntax']),
38 | scss: generateLoaders(['css', 'sass']),
39 | stylus: generateLoaders(['css', 'stylus']),
40 | styl: generateLoaders(['css', 'stylus'])
41 | }
42 | }
43 |
44 | // Generate loaders for standalone style files (outside of .vue)
45 | exports.styleLoaders = function (options) {
46 | var output = []
47 | var loaders = exports.cssLoaders(options)
48 | for (var extension in loaders) {
49 | var loader = loaders[extension]
50 | output.push({
51 | test: new RegExp('\\.' + extension + '$'),
52 | loader: loader
53 | })
54 | }
55 | return output
56 | }
57 |
--------------------------------------------------------------------------------
/build/webpack.base.conf.js:
--------------------------------------------------------------------------------
1 | var path = require('path')
2 | var config = require('../config')
3 | var utils = require('./utils')
4 | var projectRoot = path.resolve(__dirname, '../')
5 |
6 | module.exports = {
7 | entry: {
8 | app: './src/main.js',
9 | test:'./src/test.js'
10 | },
11 | output: {
12 | path: config.build.assetsRoot,
13 | publicPath: config.build.assetsPublicPath,
14 | filename: '[name].js'
15 | },
16 | resolve: {
17 | extensions: ['', '.js', '.vue'],
18 | fallback: [path.join(__dirname, '../node_modules')],
19 | alias: {
20 | 'src': path.resolve(__dirname, '../src'),
21 | 'assets': path.resolve(__dirname, '../src/assets'),
22 | 'components': path.resolve(__dirname, '../src/components')
23 | }
24 | },
25 | resolveLoader: {
26 | fallback: [path.join(__dirname, '../node_modules')]
27 | },
28 | module: {
29 | preLoaders: [
30 | // {
31 | // test: /\.vue$/,
32 | // loader: 'eslint',
33 | // include: projectRoot,
34 | // exclude: /node_modules/
35 | // },
36 | // {
37 | // test: /\.js$/,
38 | // loader: 'eslint',
39 | // include: projectRoot,
40 | // exclude: /node_modules/
41 | // }
42 | ],
43 | loaders: [
44 | {
45 | test: /\.vue$/,
46 | loader: 'vue'
47 | },
48 | {
49 | test: /\.js$/,
50 | loader: 'babel',
51 | include: projectRoot,
52 | exclude: /node_modules/
53 | },
54 | {
55 | test: /\.json$/,
56 | loader: 'json'
57 | },
58 | {
59 | test: /\.html$/,
60 | loader: 'vue-html'
61 | },
62 | {
63 | test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
64 | loader: 'url',
65 | query: {
66 | limit: 10000,
67 | name: utils.assetsPath('img/[name].[hash:7].[ext]')
68 | }
69 | },
70 | {
71 | test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
72 | loader: 'url',
73 | query: {
74 | limit: 10000,
75 | name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
76 | }
77 | }
78 | ]
79 | },
80 | eslint: {
81 | formatter: require('eslint-friendly-formatter')
82 | },
83 | vue: {
84 | loaders: utils.cssLoaders()
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/build/webpack.dev.conf.js:
--------------------------------------------------------------------------------
1 | var config = require('../config')
2 | var webpack = require('webpack')
3 | var merge = require('webpack-merge')
4 | var utils = require('./utils')
5 | var baseWebpackConfig = require('./webpack.base.conf')
6 | var HtmlWebpackPlugin = require('html-webpack-plugin')
7 |
8 | // add hot-reload related code to entry chunks
9 | Object.keys(baseWebpackConfig.entry).forEach(function (name) {
10 | baseWebpackConfig.entry[name] = ['./build/dev-client'].concat(baseWebpackConfig.entry[name])
11 | })
12 |
13 | module.exports = merge(baseWebpackConfig, {
14 | module: {
15 | loaders: utils.styleLoaders()
16 | },
17 | // eval-source-map is faster for development
18 | devtool: '#eval-source-map',
19 | plugins: [
20 | // new webpack.DefinePlugin({
21 | // 'process.env': config.dev.env
22 | // }),
23 | // https://github.com/glenjamin/webpack-hot-middleware#installation--usage
24 | new webpack.optimize.OccurenceOrderPlugin(),
25 | new webpack.HotModuleReplacementPlugin(),
26 | new webpack.NoErrorsPlugin(),
27 | // https://github.com/ampedandwired/html-webpack-plugin
28 | new HtmlWebpackPlugin({
29 | filename: 'index.html',
30 | template: 'index.html',
31 | chunks: ['app'],
32 | inject: true
33 | }),
34 | new HtmlWebpackPlugin({
35 | filename: 'test.html',
36 | template: 'test.html',
37 | chunks: ['test'],
38 | inject: true
39 | })
40 | ]
41 | })
42 |
--------------------------------------------------------------------------------
/build/webpack.prod.conf.js:
--------------------------------------------------------------------------------
1 | var path = require('path')
2 | var config = require('../config')
3 | var utils = require('./utils')
4 | var webpack = require('webpack')
5 | var merge = require('webpack-merge')
6 | var baseWebpackConfig = require('./webpack.base.conf')
7 | var ExtractTextPlugin = require('extract-text-webpack-plugin')
8 | var HtmlWebpackPlugin = require('html-webpack-plugin')
9 | var env = process.env.NODE_ENV === 'testing'
10 | ? require('../config/test.env')
11 | : config.build.env
12 |
13 | var webpackConfig = merge(baseWebpackConfig, {
14 | module: {
15 | loaders: utils.styleLoaders({ sourceMap: config.build.productionSourceMap, extract: true })
16 | },
17 | devtool: config.build.productionSourceMap ? '#source-map' : false,
18 | output: {
19 | path: config.build.assetsRoot,
20 | filename: utils.assetsPath('js/[name].[chunkhash].js'),
21 | chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
22 | },
23 | vue: {
24 | loaders: utils.cssLoaders({
25 | sourceMap: config.build.productionSourceMap,
26 | extract: true
27 | })
28 | },
29 | plugins: [
30 | // http://vuejs.github.io/vue-loader/workflow/production.html
31 | new webpack.DefinePlugin({
32 | 'process.env': env
33 | }),
34 | new webpack.optimize.UglifyJsPlugin({
35 | compress: {
36 | warnings: false
37 | }
38 | }),
39 | new webpack.optimize.OccurenceOrderPlugin(),
40 | // extract css into its own file
41 | new ExtractTextPlugin(utils.assetsPath('css/[name].[contenthash].css')),
42 | // generate dist index.html with correct asset hash for caching.
43 | // you can customize output by editing /index.html
44 | // see https://github.com/ampedandwired/html-webpack-plugin
45 | new HtmlWebpackPlugin({
46 | filename: process.env.NODE_ENV === 'testing'
47 | ? 'index.html'
48 | : config.build.index,
49 | template: 'index.html',
50 | inject: true,
51 | minify: {
52 | removeComments: true,
53 | collapseWhitespace: true,
54 | removeAttributeQuotes: true
55 | // more options:
56 | // https://github.com/kangax/html-minifier#options-quick-reference
57 | },
58 | // necessary to consistently work with multiple chunks via CommonsChunkPlugin
59 | chunksSortMode: 'dependency'
60 | }),
61 | new HtmlWebpackPlugin({
62 | filename: process.env.NODE_ENV === 'testing'
63 | ? 'test.html'
64 | : config.build.test,
65 | template: 'test.html',
66 | inject: true,
67 | minify: {
68 | removeComments: true,
69 | collapseWhitespace: true,
70 | removeAttributeQuotes: true
71 | // more options:
72 | // https://github.com/kangax/html-minifier#options-quick-reference
73 | },
74 | // necessary to consistently work with multiple chunks via CommonsChunkPlugin
75 | chunksSortMode: 'dependency'
76 | }),
77 | // split vendor js into its own file
78 | new webpack.optimize.CommonsChunkPlugin({
79 | name: 'vendor',
80 | minChunks: function (module, count) {
81 | // any required modules inside node_modules are extracted to vendor
82 | return (
83 | module.resource &&
84 | /\.js$/.test(module.resource) &&
85 | module.resource.indexOf(
86 | path.join(__dirname, '../node_modules')
87 | ) === 0
88 | )
89 | }
90 | }),
91 | // extract webpack runtime and module manifest to its own file in order to
92 | // prevent vendor hash from being updated whenever app bundle is updated
93 | new webpack.optimize.CommonsChunkPlugin({
94 | name: 'manifest',
95 | chunks: ['vendor']
96 | })
97 | ]
98 | })
99 |
100 | if (config.build.productionGzip) {
101 | var CompressionWebpackPlugin = require('compression-webpack-plugin')
102 |
103 | webpackConfig.plugins.push(
104 | new CompressionWebpackPlugin({
105 | asset: '[path].gz[query]',
106 | algorithm: 'gzip',
107 | test: new RegExp(
108 | '\\.(' +
109 | config.build.productionGzipExtensions.join('|') +
110 | ')$'
111 | ),
112 | threshold: 10240,
113 | minRatio: 0.8
114 | })
115 | )
116 | }
117 |
118 | module.exports = webpackConfig
119 |
--------------------------------------------------------------------------------
/config.js:
--------------------------------------------------------------------------------
1 | // see http://vuejs-templates.github.io/webpack for documentation.
2 | var path = require('path')
3 |
4 | module.exports = {
5 | build: {
6 | index: path.resolve(__dirname, 'dist/index.html'),
7 | test: path.resolve(__dirname, 'dist/test.html'),
8 | assetsRoot: path.resolve(__dirname, 'dist'),
9 | assetsSubDirectory: 'static',
10 | assetsPublicPath: '/',
11 | productionSourceMap: false
12 | },
13 | dev: {
14 | port: 8080,
15 | proxyTable: {}
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/config/dev.env.js:
--------------------------------------------------------------------------------
1 | var merge = require('webpack-merge')
2 | var prodEnv = require('./prod.env')
3 |
4 | module.exports = merge(prodEnv, {
5 | NODE_ENV: '"development"'
6 | })
7 |
--------------------------------------------------------------------------------
/config/index.js:
--------------------------------------------------------------------------------
1 | // see http://vuejs-templates.github.io/webpack for documentation.
2 | var path = require('path')
3 |
4 | module.exports = {
5 | build: {
6 | env: require('./prod.env'),
7 | index: path.resolve(__dirname, '../dist/index.html'),
8 | assetsRoot: path.resolve(__dirname, '../dist'),
9 | assetsSubDirectory: 'static',
10 | assetsPublicPath: '/',
11 | productionSourceMap: true,
12 | // Gzip off by default as many popular static hosts such as
13 | // Surge or Netlify already gzip all static assets for you.
14 | // Before setting to `true`, make sure to:
15 | // npm install --save-dev compression-webpack-plugin
16 | productionGzip: false,
17 | productionGzipExtensions: ['js', 'css']
18 | },
19 | dev: {
20 | env: require('./dev.env'),
21 | port: 8080,
22 | proxyTable: {}
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/config/prod.env.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | NODE_ENV: '"production"'
3 | }
4 |
--------------------------------------------------------------------------------
/config/test.env.js:
--------------------------------------------------------------------------------
1 | var merge = require('webpack-merge')
2 | var devEnv = require('./dev.env')
3 |
4 | module.exports = merge(devEnv, {
5 | NODE_ENV: '"testing"'
6 | })
7 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | coderYin
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "coder-yin",
3 | "version": "1.0.0",
4 | "description": "personal website",
5 | "author": "yinxiaofei ",
6 | "private": true,
7 | "scripts": {
8 | "dev": "node build/dev-server.js",
9 | "build": "node build/build.js",
10 | "test": "",
11 | "lint": "eslint --ext .js,.vue src test/unit/specs test/e2e/specs"
12 | },
13 | "dependencies": {
14 | "vue": "^1.0.21",
15 | "babel-runtime": "^6.0.0"
16 | },
17 | "devDependencies": {
18 | "babel-core": "^6.0.0",
19 | "babel-loader": "^6.0.0",
20 | "babel-plugin-transform-runtime": "^6.0.0",
21 | "babel-preset-es2015": "^6.0.0",
22 | "babel-preset-stage-2": "^6.0.0",
23 | "connect-history-api-fallback": "^1.1.0",
24 | "css-loader": "^0.23.0",
25 | "eslint": "^2.10.2",
26 | "eslint-config-standard": "^5.1.0",
27 | "eslint-friendly-formatter": "^2.0.5",
28 | "eslint-loader": "^1.3.0",
29 | "eslint-plugin-html": "^1.3.0",
30 | "eslint-plugin-promise": "^1.0.8",
31 | "eslint-plugin-standard": "^1.3.2",
32 | "eventsource-polyfill": "^0.9.6",
33 | "express": "^4.13.3",
34 | "extract-text-webpack-plugin": "^1.0.1",
35 | "file-loader": "^0.8.5",
36 | "function-bind": "^1.0.2",
37 | "html-webpack-plugin": "^2.8.1",
38 | "http-proxy-middleware": "^0.12.0",
39 | "json-loader": "^0.5.4",
40 | "ora": "^0.2.0",
41 | "shelljs": "^0.6.0",
42 | "url-loader": "^0.5.7",
43 | "vue-animated-list": "^1.0.2",
44 | "vue-hot-reload-api": "^1.2.0",
45 | "vue-html-editor": "^0.2.1",
46 | "vue-html-loader": "^1.2.3",
47 | "vue-loader": "^8.3.0",
48 | "vue-resource": "^0.9.1",
49 | "vue-router": "^0.7.13",
50 | "vue-style-loader": "^1.0.0",
51 | "vue-touch": "^1.1.0",
52 | "vue-validator": "^2.1.3",
53 | "vue-waterfall": "^0.2.2",
54 | "webpack": "^1.12.2",
55 | "webpack-dev-middleware": "^1.4.0",
56 | "webpack-hot-middleware": "^2.6.0",
57 | "webpack-merge": "^0.8.3"
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coder-Yin/learn-vue/9d417b8f10a798e87a755e081ad0600aef233de6/src/assets/logo.png
--------------------------------------------------------------------------------
/src/components/Hello.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
{{ msg }}
4 |
5 |
6 |
7 |
20 |
21 |
22 |
27 |
--------------------------------------------------------------------------------
/src/components/about-content.vue:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 | 关于我们({{ msg }})
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/components/blog-index-content.vue:
--------------------------------------------------------------------------------
1 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
最新
57 |
74 |
75 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |

92 |
殷晓飞

93 |
一个有情怀的前端攻城狮。
94 |
95 |
96 |
97 |
98 |
104 |
105 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
--------------------------------------------------------------------------------
/src/components/blog-manage-content.vue:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | # |
14 | 文章名 |
15 | 时间 |
16 | 内容 |
17 | 操作 |
18 |
19 |
20 |
21 |
22 | {{ $index+1 }} |
23 | {{item.title}} |
24 | {{item.date}} |
25 | {{item.content}} |
26 | |
27 |
28 |
29 |
30 |
31 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/src/components/footer.vue:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/src/components/form-validate.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
64 |
65 |
66 |
67 |
68 |
69 |
110 |
111 |
112 |
114 |
--------------------------------------------------------------------------------
/src/components/head.vue:
--------------------------------------------------------------------------------
1 |
59 |
60 |
61 |
62 |
63 |
72 |
103 |
104 |
105 |
106 |
107 |
108 |
--------------------------------------------------------------------------------
/src/components/highcharts-content.vue:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/components/index-center.vue:
--------------------------------------------------------------------------------
1 |
84 |
85 |
86 |
87 | I am a web coder
88 |
89 |
90 |
91 |
97 |
98 |
99 |

100 |
前端组件
101 |
102 |
103 |
104 |
105 |

106 |
个人作品
107 |
108 |
109 |
110 |
111 |

112 |
个人博客
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
--------------------------------------------------------------------------------
/src/components/share.vue:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/src/components/vue-editor.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
The HTML contents are as follows:
7 |
8 |
{{{text}}}
9 |
10 |
11 |
12 |
13 |
14 |
27 |
28 |
29 |
32 |
--------------------------------------------------------------------------------
/src/components/vue-touch.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
请在红色区块内操作:触摸,左滑,右滑...
4 |
15 |
16 |
touch事件名称:{{event}}
17 |
18 |
19 |
20 |
51 |
52 |
53 |
61 |
--------------------------------------------------------------------------------
/src/components/works-content.vue:
--------------------------------------------------------------------------------
1 |
39 |
40 |
41 |
42 |
43 |
作品图
44 |
2015.12-2016.03
45 |
46 | -
47 |
48 |
{{item.name}}
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/src/main.js:
--------------------------------------------------------------------------------
1 | // import Vue from 'vue'
2 | // import App from './App'
3 |
4 | // new Vue({
5 | // el: 'body',
6 | // components: { App }
7 | // })
8 |
9 | var Vue = require('vue')
10 | var Index = require('./views/index.vue')
11 | var blogManage = require('./views/blog-manage.vue')
12 | var blog = require('./views/blog.vue')
13 | var works = require('./views/works.vue')
14 | var formValidate = require('./views/form.vue')
15 | var vueTouch = require('./views/vuetouch.vue')
16 | var vueEditor = require('./views/vueeditor.vue')
17 |
18 | // new Vue({
19 | // el: 'body',
20 | // components: {
21 | // app: App2
22 | // }
23 | // })
24 |
25 | var VueRouter = require('vue-router')
26 | Vue.use(VueRouter)
27 |
28 | //get json数据
29 | var VueResource = require('vue-resource')
30 | Vue.use(VueResource)
31 |
32 |
33 | //表单验证
34 | // var VueValidator = require('vue-validator')
35 | // Vue.use(VueValidator)
36 |
37 | // 定义组件
38 | var Foo = Vue.extend({
39 | template: 'This is foo!
'
40 | })
41 |
42 | var Bar = Vue.extend({
43 | template: 'This is bar!
'
44 | })
45 |
46 | // 路由器需要一个根组件。
47 | // 出于演示的目的,这里使用一个空的组件,直接使用 HTML 作为应用的模板
48 | var Apptest = Vue.extend({})
49 |
50 | // 创建一个路由器实例
51 | // 创建实例时可以传入配置参数进行定制,为保持简单,这里使用默认配置
52 | var router = new VueRouter()
53 |
54 | // 定义路由规则
55 | // 每条路由规则应该映射到一个组件。这里的“组件”可以是一个使用 Vue.extend
56 | // 创建的组件构造函数,也可以是一个组件选项对象。
57 | // 稍后我们会讲解嵌套路由
58 | router.map({
59 | '/index': {
60 | component: Index
61 | },
62 | '/blogmanage': {
63 | component: blogManage
64 | },
65 | '/blog': {
66 | component: blog
67 | },
68 | '/works': {
69 | component: works
70 | },
71 | '/form': {
72 | component: formValidate
73 | },
74 | '/touch': {
75 | component: vueTouch
76 | },
77 | '/editor': {
78 | component: vueEditor
79 | }
80 | })
81 |
82 | // 现在我们可以启动应用了!
83 | // 路由器会创建一个 App 实例,并且挂载到选择符 #app 匹配的元素上。
84 | router.start(Apptest, '#test')
85 |
86 | Vue.config.devtools = true
87 |
--------------------------------------------------------------------------------
/src/test.js:
--------------------------------------------------------------------------------
1 | // import Vue from 'vue'
2 | // import App from './App'
3 |
4 | // new Vue({
5 | // el: 'body',
6 | // components: { App }
7 | // })
8 |
9 | var Vue = require('vue')
10 | var Index = require('./views/hello.vue')
11 |
12 | // new Vue({
13 | // el: 'body',
14 | // components: {
15 | // app: App2
16 | // }
17 | // })
18 |
19 | var VueRouter = require('vue-router')
20 | Vue.use(VueRouter)
21 |
22 | //get json数据
23 | var VueResource = require('vue-resource')
24 | Vue.use(VueResource)
25 |
26 |
27 | //表单验证
28 | // var VueValidator = require('vue-validator')
29 | // Vue.use(VueValidator)
30 |
31 | // 定义组件
32 | var Foo = Vue.extend({
33 | template: 'This is foo!
'
34 | })
35 |
36 | var Bar = Vue.extend({
37 | template: 'This is bar!
'
38 | })
39 |
40 | // 路由器需要一个根组件。
41 | // 出于演示的目的,这里使用一个空的组件,直接使用 HTML 作为应用的模板
42 | var Apptest = Vue.extend({})
43 |
44 | // 创建一个路由器实例
45 | // 创建实例时可以传入配置参数进行定制,为保持简单,这里使用默认配置
46 | var router = new VueRouter()
47 |
48 | // 定义路由规则
49 | // 每条路由规则应该映射到一个组件。这里的“组件”可以是一个使用 Vue.extend
50 | // 创建的组件构造函数,也可以是一个组件选项对象。
51 | // 稍后我们会讲解嵌套路由
52 | router.map({
53 | '/index': {
54 | component: Index
55 | }
56 | })
57 |
58 | // 现在我们可以启动应用了!
59 | // 路由器会创建一个 App 实例,并且挂载到选择符 #app 匹配的元素上。
60 | router.start(Apptest, '#test')
61 |
62 | Vue.config.devtools = true
63 |
--------------------------------------------------------------------------------
/src/views/blog-manage.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/views/blog.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/views/form.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/views/hello.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/views/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/views/vueeditor.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/views/vuetouch.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/views/works.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/static/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coder-Yin/learn-vue/9d417b8f10a798e87a755e081ad0600aef233de6/static/.gitkeep
--------------------------------------------------------------------------------
/static/css/base/common.css:
--------------------------------------------------------------------------------
1 | @charset "UTF-8";
2 | /**
3 | *
4 | * @author yin
5 | * @date 2015-11-01 9:00
6 | * @version V 2.0
7 | */
8 |
9 | body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,fieldset,lengend,button,input,textarea,th,td {margin: 0;padding: 0;}
10 | body,button,input,select,textarea {font: 14px/1.5 "Microsoft YaHei", "微软雅黑","Lantinghei SC", Helvetica, Tahoma, Arial, sans-serif,SimSun,"Hiragino Sans GB", "Hiragino Sans GB";}
11 | h1 {font-size: 18px;}
12 | h2 {font-size: 16px;}
13 | h3 {font-size: 14px;}
14 | h4,h5,h6 { font-size: 100%;}
15 | address,cite,dfn,em,var { font-style: normal;}
16 | code,kbd,pre,samp,tt {font-family: "Courier New", Courier, monospace;}
17 | small { font-size: 12px;}
18 | ul,ol {list-style: none;}
19 | abbr[title],acronym[title] {border-bottom: 1px dotted;cursor: help;}
20 | q:before,q:after {content: '';}
21 | legend { color: #000;}
22 | fieldset,img { border: 0;}
23 | button,input,select,textarea {font-size: 100%;}
24 | table {border-collapse: collapse;border-spacing: 0;}
25 | hr {border: 0;height: 1px;}
26 | .pi{position: fixed;}
27 | .pr{position: relative;}
28 | .pa{position:absolute;}
29 | .tl{text-align: left;}
30 | .tc{text-align: center;}
31 | .tr{text-align: right;}
32 | .fwb { font-weight:bold;}
33 | .fwn { font-weight:normal;}
34 | .oh{ overflow: hidden;}
35 | .dn{display: none;}
36 | .db{display: block;}
37 | .d-ib{display: inline-block;}
38 | .fl{float: left;}
39 | .fr{float: right;}
40 | .td-line{text-decoration: underline;}
41 |
42 | .mt5{margin-top: 5px;} .mr5{margin-right: 5px;} .mb5{margin-bottom: 5px;} .ml5{margin-left: 5px;}
43 | .mt10{margin-top: 10px;} .mr10{margin-right: 10px;} .mb10{margin-bottom: 10px;} .ml10{margin-left: 10px;}
44 | .mt15{margin-top: 15px;} .mr15{margin-right: 15px;} .mb15{margin-bottom: 15px;} .ml15{margin-left: 15px;}
45 | .mt20{margin-top: 20px;} .mr20{margin-right: 20px;} .mb20{margin-bottom: 20px;} .ml20{margin-left: 20px;}
46 | .mt25{margin-top: 25px;} .mr25{margin-right: 25px;} .mb25{margin-bottom: 25px;} .ml25{margin-left: 25px;}
47 | .mt30{margin-top: 30px;} .mr30{margin-right: 30px;} .mb30{margin-bottom: 30px;} .ml30{margin-left: 30px;}
48 | .mt35{margin-top: 35px;} .mr35{margin-right: 35px;} .mb35{margin-bottom: 35px;} .ml35{margin-left: 35px;}
49 | .pt0{padding-top: 0;} .pr0{padding-right: 0;} .pb0{padding-bottom: 0;} .pl0{padding-left: 0;}
50 | .pt5{padding-top: 5px;} .pr5{padding-right: 5px;} .pb5{padding-bottom: 5px;} .pl5{padding-left: 5px;}
51 | .pt10{padding-top: 10px;} .pr10{padding-right: 10px;} .pb10{padding-bottom: 10px;} .pl10{padding-left: 10px;}
52 | .pt15{padding-top: 15px;} .pr15{padding-right: 15px;} .pb15{padding-bottom: 15px;} .pl15{padding-left: 15px;}
53 | .pt20{padding-top: 20px;} .pr20{padding-right: 20px;} .pb20{padding-bottom: 20px;} .pl20{padding-left: 20px;}
54 |
55 | .f12{font-size:12px;}
56 | .f14{font-size:14px;}
57 | .f16{font-size:16px;}
58 | .f18{font-size:18px;}
59 | .f20{font-size: 20px;}
60 | .f22{font-size: 22px;}
61 | .f24{font-size: 24px;}
62 | .f26{font-size: 26px;}
63 | .f28{font-size: 28px;}
64 | .f30{font-size: 30px;}
65 |
66 | a.a-block { display:block; width:100%; height:100%;}
67 | a.a-inline-block { display:block; }
68 | a{color: #333;}
69 | a,a:hover,a:focus {text-decoration: none;}
70 |
71 | .bgf9{background-color: #f9f9f9;}
72 | .bg-white{background-color: #fff;}
73 | .c-666,a.c-666{color: #666;}
74 | .c-999,a.c-999{color: #999;}
75 | .c-333,a.c-333{color: #333;}
76 | .c-fff,a.c-fff{color: #fff;}
77 | .c-f00,a.c-f00{color: #ff0000;}
78 | .c-blue,a.c-blue{color: #58aff6;}
79 |
80 | .clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}
81 | .clearfix{*+height:1%;}
82 |
83 | .op0 { opacity:0; filter:alpha(opacity=0);}
84 | .op1 { opacity:0.1; filter:alpha(opacity=10);}
85 | .op2 { opacity:0.2; filter:alpha(opacity=20);}
86 | .op3 { opacity:0.3; filter:alpha(opacity=30);}
87 | .op4 { opacity:0.4; filter:alpha(opacity=40);}
88 | .op5 { opacity:0.5; filter:alpha(opacity=50);}
89 | .op6 { opacity:0.6; filter:alpha(opacity=60);}
90 | .op7 { opacity:0.7; filter:alpha(opacity=70);}
91 | .op8 { opacity:0.8; filter:alpha(opacity=80);}
92 | .op9 { opacity:0.9; filter:alpha(opacity=90);}
93 |
94 | /* **
95 | * CSS3 rounded style definitions.
96 | * IE 9.0 +
97 | */
98 | .br3 { -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px;}
99 | .br5 { -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px;}
100 | .br6 { -moz-border-radius:6px; -webkit-border-radius:6px; border-radius:6px;}
101 | .br8 { -moz-border-radius:8px; -webkit-border-radius:8px; border-radius:8px;}
102 | .br10 { -moz-border-radius:10px; -webkit-border-radius:10px; border-radius:10px;}
103 | .br15 { -moz-border-radius:15px; -webkit-border-radius:15px; border-radius:15px;}
104 | .br-50 { -moz-border-radius:50%; -webkit-border-radius:50%; border-radius:50%;}
105 |
106 | /* latin-ext */
107 | @font-face {
108 | font-family: 'Amatic SC';
109 | font-style: normal;
110 | font-weight: 700;
111 | src: local('Amatic SC Bold'), local('AmaticSC-Bold'), url(../fonts/AmaticSC-Bold2.woff2) format('woff2');
112 | unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
113 | }
114 | /* latin */
115 | @font-face {
116 | font-family: 'Amatic SC';
117 | font-style: normal;
118 | font-weight: 700;
119 | src: local('Amatic SC Bold'), local('AmaticSC-Bold'), url(../fonts/AmaticSC-Bold1.woff2) format('woff2');
120 | unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
121 | }
122 |
123 |
124 | .f-yahei{font-family: Microsoft YaHei;}
125 |
126 | .f-as{font-family: Amatic SC,cursive;}
--------------------------------------------------------------------------------
/static/css/fonts/AmaticSC-Bold1.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coder-Yin/learn-vue/9d417b8f10a798e87a755e081ad0600aef233de6/static/css/fonts/AmaticSC-Bold1.woff2
--------------------------------------------------------------------------------
/static/css/fonts/AmaticSC-Bold2.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coder-Yin/learn-vue/9d417b8f10a798e87a755e081ad0600aef233de6/static/css/fonts/AmaticSC-Bold2.woff2
--------------------------------------------------------------------------------
/static/css/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coder-Yin/learn-vue/9d417b8f10a798e87a755e081ad0600aef233de6/static/css/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/static/css/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coder-Yin/learn-vue/9d417b8f10a798e87a755e081ad0600aef233de6/static/css/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/static/css/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coder-Yin/learn-vue/9d417b8f10a798e87a755e081ad0600aef233de6/static/css/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/static/css/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coder-Yin/learn-vue/9d417b8f10a798e87a755e081ad0600aef233de6/static/css/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/static/img/blog/author.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coder-Yin/learn-vue/9d417b8f10a798e87a755e081ad0600aef233de6/static/img/blog/author.jpg
--------------------------------------------------------------------------------
/static/img/blog/pic-cannot-be-found.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coder-Yin/learn-vue/9d417b8f10a798e87a755e081ad0600aef233de6/static/img/blog/pic-cannot-be-found.png
--------------------------------------------------------------------------------
/static/img/blog/pic-lattern.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coder-Yin/learn-vue/9d417b8f10a798e87a755e081ad0600aef233de6/static/img/blog/pic-lattern.png
--------------------------------------------------------------------------------
/static/img/blog/pic-vue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coder-Yin/learn-vue/9d417b8f10a798e87a755e081ad0600aef233de6/static/img/blog/pic-vue.png
--------------------------------------------------------------------------------
/static/img/blog/weibo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coder-Yin/learn-vue/9d417b8f10a798e87a755e081ad0600aef233de6/static/img/blog/weibo.png
--------------------------------------------------------------------------------
/static/img/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coder-Yin/learn-vue/9d417b8f10a798e87a755e081ad0600aef233de6/static/img/favicon.ico
--------------------------------------------------------------------------------
/static/img/g-share-ico.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coder-Yin/learn-vue/9d417b8f10a798e87a755e081ad0600aef233de6/static/img/g-share-ico.png
--------------------------------------------------------------------------------
/static/img/index-icon1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coder-Yin/learn-vue/9d417b8f10a798e87a755e081ad0600aef233de6/static/img/index-icon1.png
--------------------------------------------------------------------------------
/static/img/index-icon3.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coder-Yin/learn-vue/9d417b8f10a798e87a755e081ad0600aef233de6/static/img/index-icon3.gif
--------------------------------------------------------------------------------
/static/img/index-icon4.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coder-Yin/learn-vue/9d417b8f10a798e87a755e081ad0600aef233de6/static/img/index-icon4.gif
--------------------------------------------------------------------------------
/static/img/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coder-Yin/learn-vue/9d417b8f10a798e87a755e081ad0600aef233de6/static/img/logo.png
--------------------------------------------------------------------------------
/static/js/common/bootstrap.min.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Bootstrap v4.0.0-alpha (http://getbootstrap.com)
3 | * Copyright 2011-2015 Twitter, Inc.
4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5 | */
6 | if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(){"use strict";function a(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function b(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}{var c=function(a,b,c){for(var d=!0;d;){var e=a,f=b,g=c;h=j=i=void 0,d=!1,null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,f);if(void 0!==h){if("value"in h)return h.value;var i=h.get;return void 0===i?void 0:i.call(g)}var j=Object.getPrototypeOf(e);if(null===j)return void 0;a=j,b=f,c=g,d=!0}},d=function(){function a(a,b){for(var c=0;cthis._items.length-1||0>b)){if(this._isSliding)return void a(this._element).one(o.SLID,function(){return c.to(b)});if(d===b)return this.pause(),void this.cycle();var e=b>d?n.NEXT:n.PREVIOUS;this._slide(e,this._items[b])}}},{key:"dispose",value:function(){a(this._element).off(h),a.removeData(this._element,g),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null}},{key:"_getConfig",value:function(b){return b=a.extend({},l,b),e.typeCheckConfig(c,b,m),b}},{key:"_addEventListeners",value:function(){this._config.keyboard&&a(this._element).on(o.KEYDOWN,a.proxy(this._keydown,this)),"hover"!==this._config.pause||"ontouchstart"in document.documentElement||a(this._element).on(o.MOUSEENTER,a.proxy(this.pause,this)).on(o.MOUSELEAVE,a.proxy(this.cycle,this))}},{key:"_keydown",value:function(a){if(a.preventDefault(),!/input|textarea/i.test(a.target.tagName))switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}}},{key:"_getItemIndex",value:function(b){return this._items=a.makeArray(a(b).parent().find(q.ITEM)),this._items.indexOf(b)}},{key:"_getItemByDirection",value:function(a,b){var c=a===n.NEXT,d=a===n.PREVIOUS,e=this._getItemIndex(b),f=this._items.length-1,g=d&&0===e||c&&e===f;if(g&&!this._config.wrap)return b;var h=a===n.PREVIOUS?-1:1,i=(e+h)%this._items.length;return-1===i?this._items[this._items.length-1]:this._items[i]}},{key:"_triggerSlideEvent",value:function(b,c){var d=a.Event(o.SLIDE,{relatedTarget:b,direction:c});return a(this._element).trigger(d),d}},{key:"_setActiveIndicatorElement",value:function(b){if(this._indicatorsElement){a(this._indicatorsElement).find(q.ACTIVE).removeClass(p.ACTIVE);var c=this._indicatorsElement.children[this._getItemIndex(b)];c&&a(c).addClass(p.ACTIVE)}}},{key:"_slide",value:function(b,c){var d=this,f=a(this._element).find(q.ACTIVE_ITEM)[0],g=c||f&&this._getItemByDirection(b,f),h=Boolean(this._interval),i=b===n.NEXT?p.LEFT:p.RIGHT;if(g&&a(g).hasClass(p.ACTIVE))return void(this._isSliding=!1);var j=this._triggerSlideEvent(g,i);if(!j.isDefaultPrevented()&&f&&g){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(g);var l=a.Event(o.SLID,{relatedTarget:g,direction:i});e.supportsTransitionEnd()&&a(this._element).hasClass(p.SLIDE)?(a(g).addClass(b),e.reflow(g),a(f).addClass(i),a(g).addClass(i),a(f).one(e.TRANSITION_END,function(){a(g).removeClass(i).removeClass(b),a(g).addClass(p.ACTIVE),a(f).removeClass(p.ACTIVE).removeClass(b).removeClass(i),d._isSliding=!1,setTimeout(function(){return a(d._element).trigger(l)},0)}).emulateTransitionEnd(k)):(a(f).removeClass(p.ACTIVE),a(g).addClass(p.ACTIVE),this._isSliding=!1,a(this._element).trigger(l)),h&&this.cycle()}}}],[{key:"_jQueryInterface",value:function(b){return this.each(function(){var c=a(this).data(g),d=a.extend({},l,a(this).data());"object"==typeof b&&a.extend(d,b);var e="string"==typeof b?b:d.slide;c||(c=new i(this,d),a(this).data(g,c)),"number"==typeof b?c.to(b):e?c[e]():d.interval&&(c.pause(),c.cycle())})}},{key:"_dataApiClickHandler",value:function(b){var c=e.getSelectorFromElement(this);if(c){var d=a(c)[0];if(d&&a(d).hasClass(p.CAROUSEL)){var f=a.extend({},a(d).data(),a(this).data()),h=this.getAttribute("data-slide-to");h&&(f.interval=!1),i._jQueryInterface.call(a(d),f),h&&a(d).data(g).to(h),b.preventDefault()}}}},{key:"VERSION",get:function(){return f}},{key:"Default",get:function(){return l}}]),i}();return a(document).on(o.CLICK_DATA_API,q.DATA_SLIDE,r._dataApiClickHandler),a(window).on(o.LOAD_DATA_API,function(){a(q.DATA_RIDE).each(function(){var b=a(this);r._jQueryInterface.call(b,b.data())})}),a.fn[c]=r._jQueryInterface,a.fn[c].Constructor=r,a.fn[c].noConflict=function(){return a.fn[c]=j,r._jQueryInterface},r}(jQuery),function(a){var c="collapse",f="4.0.0",g="bs.collapse",h="."+g,i=".data-api",j=a.fn[c],k=600,l={toggle:!0,parent:""},m={toggle:"boolean",parent:"string"},n={SHOW:"show"+h,SHOWN:"shown"+h,HIDE:"hide"+h,HIDDEN:"hidden"+h,CLICK_DATA_API:"click"+h+i},o={IN:"in",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},p={WIDTH:"width",HEIGHT:"height"},q={ACTIVES:".panel > .in, .panel > .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},r=function(){function h(c,d){b(this,h),this._isTransitioning=!1,this._element=c,this._config=this._getConfig(d),this._triggerArray=a.makeArray(a('[data-toggle="collapse"][href="#'+c.id+'"],'+('[data-toggle="collapse"][data-target="#'+c.id+'"]'))),this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return d(h,[{key:"toggle",value:function(){a(this._element).hasClass(o.IN)?this.hide():this.show()}},{key:"show",value:function(){var b=this;if(!this._isTransitioning&&!a(this._element).hasClass(o.IN)){var c=void 0,d=void 0;if(this._parent&&(c=a.makeArray(a(q.ACTIVES)),c.length||(c=null)),!(c&&(d=a(c).data(g),d&&d._isTransitioning))){var f=a.Event(n.SHOW);if(a(this._element).trigger(f),!f.isDefaultPrevented()){c&&(h._jQueryInterface.call(a(c),"hide"),d||a(c).data(g,null));var i=this._getDimension();a(this._element).removeClass(o.COLLAPSE).addClass(o.COLLAPSING),this._element.style[i]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&a(this._triggerArray).removeClass(o.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var j=function(){a(b._element).removeClass(o.COLLAPSING).addClass(o.COLLAPSE).addClass(o.IN),b._element.style[i]="",b.setTransitioning(!1),a(b._element).trigger(n.SHOWN)};if(!e.supportsTransitionEnd())return void j();var l=i[0].toUpperCase()+i.slice(1),m="scroll"+l;a(this._element).one(e.TRANSITION_END,j).emulateTransitionEnd(k),this._element.style[i]=this._element[m]+"px"}}}}},{key:"hide",value:function(){var b=this;if(!this._isTransitioning&&a(this._element).hasClass(o.IN)){var c=a.Event(n.HIDE);if(a(this._element).trigger(c),!c.isDefaultPrevented()){var d=this._getDimension(),f=d===p.WIDTH?"offsetWidth":"offsetHeight";this._element.style[d]=this._element[f]+"px",e.reflow(this._element),a(this._element).addClass(o.COLLAPSING).removeClass(o.COLLAPSE).removeClass(o.IN),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&a(this._triggerArray).addClass(o.COLLAPSED).attr("aria-expanded",!1),this.setTransitioning(!0);var g=function(){b.setTransitioning(!1),a(b._element).removeClass(o.COLLAPSING).addClass(o.COLLAPSE).trigger(n.HIDDEN)};return this._element.style[d]=0,e.supportsTransitionEnd()?void a(this._element).one(e.TRANSITION_END,g).emulateTransitionEnd(k):void g()}}}},{key:"setTransitioning",value:function(a){this._isTransitioning=a}},{key:"dispose",value:function(){a.removeData(this._element,g),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null}},{key:"_getConfig",value:function(b){return b=a.extend({},l,b),b.toggle=Boolean(b.toggle),e.typeCheckConfig(c,b,m),b}},{key:"_getDimension",value:function(){var b=a(this._element).hasClass(p.WIDTH);return b?p.WIDTH:p.HEIGHT}},{key:"_getParent",value:function(){var b=this,c=a(this._config.parent)[0],d='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return a(c).find(d).each(function(a,c){b._addAriaAndCollapsedClass(h._getTargetFromElement(c),[c])}),c}},{key:"_addAriaAndCollapsedClass",value:function(b,c){if(b){var d=a(b).hasClass(o.IN);b.setAttribute("aria-expanded",d),c.length&&a(c).toggleClass(o.COLLAPSED,!d).attr("aria-expanded",d)}}}],[{key:"_getTargetFromElement",value:function(b){var c=e.getSelectorFromElement(b);return c?a(c)[0]:null}},{key:"_jQueryInterface",value:function(b){return this.each(function(){var c=a(this),d=c.data(g),e=a.extend({},l,c.data(),"object"==typeof b&&b);!d&&e.toggle&&/show|hide/.test(b)&&(e.toggle=!1),d||(d=new h(this,e),c.data(g,d)),"string"==typeof b&&d[b]()})}},{key:"VERSION",get:function(){return f}},{key:"Default",get:function(){return l}}]),h}();return a(document).on(n.CLICK_DATA_API,q.DATA_TOGGLE,function(b){b.preventDefault();var c=r._getTargetFromElement(this),d=a(c).data(g),e=d?"toggle":a(this).data();r._jQueryInterface.call(a(c),e)}),a.fn[c]=r._jQueryInterface,a.fn[c].Constructor=r,a.fn[c].noConflict=function(){return a.fn[c]=j,r._jQueryInterface},r}(jQuery),function(a){var c="dropdown",f="4.0.0",g="bs.dropdown",h="."+g,i=".data-api",j=a.fn[c],k={HIDE:"hide"+h,HIDDEN:"hidden"+h,SHOW:"show"+h,SHOWN:"shown"+h,CLICK:"click"+h,CLICK_DATA_API:"click"+h+i,KEYDOWN_DATA_API:"keydown"+h+i},l={BACKDROP:"dropdown-backdrop",DISABLED:"disabled",OPEN:"open"},m={BACKDROP:".dropdown-backdrop",DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",ROLE_MENU:'[role="menu"]',ROLE_LISTBOX:'[role="listbox"]',NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:'[role="menu"] li:not(.disabled) a, [role="listbox"] li:not(.disabled) a'},n=function(){function c(a){b(this,c),this._element=a,this._addEventListeners()}return d(c,[{key:"toggle",value:function(){if(this.disabled||a(this).hasClass(l.DISABLED))return!1;var b=c._getParentFromElement(this),d=a(b).hasClass(l.OPEN);if(c._clearMenus(),d)return!1;if("ontouchstart"in document.documentElement&&!a(b).closest(m.NAVBAR_NAV).length){var e=document.createElement("div");e.className=l.BACKDROP,a(e).insertBefore(this),a(e).on("click",c._clearMenus)}var f={relatedTarget:this},g=a.Event(k.SHOW,f);return a(b).trigger(g),g.isDefaultPrevented()?!1:(this.focus(),this.setAttribute("aria-expanded","true"),a(b).toggleClass(l.OPEN),a(b).trigger(a.Event(k.SHOWN,f)),!1)}},{key:"dispose",value:function(){a.removeData(this._element,g),a(this._element).off(h),this._element=null}},{key:"_addEventListeners",value:function(){a(this._element).on(k.CLICK,this.toggle)}}],[{key:"_jQueryInterface",value:function(b){return this.each(function(){var d=a(this).data(g);d||a(this).data(g,d=new c(this)),"string"==typeof b&&d[b].call(this)})}},{key:"_clearMenus",value:function(b){if(!b||3!==b.which){var d=a(m.BACKDROP)[0];d&&d.parentNode.removeChild(d);for(var e=a.makeArray(a(m.DATA_TOGGLE)),f=0;f0&&h--,40===b.which&&hdocument.documentElement.clientHeight;!this._isBodyOverflowing&&a&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!a&&(this._element.style.paddingRight=this._scrollbarWidth+"px~")}},{key:"_resetAdjustments",value:function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}},{key:"_checkScrollbar",value:function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this._isBodyOverflowing=document.body.clientWidth=c){var d=this._targets[this._targets.length-1];this._activeTarget!==d&&this._activate(d)}if(this._activeTarget&&a=this._offsets[e]&&(void 0===this._offsets[e+1]||a .nav-item .fade, > .fade",ACTIVE:".active",ACTIVE_CHILD:"> .nav-item > .active, > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},o=function(){function c(a){b(this,c),this._element=a}return d(c,[{key:"show",value:function(){var b=this;if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE||!a(this._element).hasClass(m.ACTIVE)){var c=void 0,d=void 0,f=a(this._element).closest(n.UL)[0],g=e.getSelectorFromElement(this._element);f&&(d=a.makeArray(a(f).find(n.ACTIVE)),d=d[d.length-1]);var h=a.Event(l.HIDE,{
7 | relatedTarget:this._element}),i=a.Event(l.SHOW,{relatedTarget:d});if(d&&a(d).trigger(h),a(this._element).trigger(i),!i.isDefaultPrevented()&&!h.isDefaultPrevented()){g&&(c=a(g)[0]),this._activate(this._element,f);var j=function(){var c=a.Event(l.HIDDEN,{relatedTarget:b._element}),e=a.Event(l.SHOWN,{relatedTarget:d});a(d).trigger(c),a(b._element).trigger(e)};c?this._activate(c,c.parentNode,j):j()}}}},{key:"dispose",value:function(){a.removeClass(this._element,g),this._element=null}},{key:"_activate",value:function(b,c,d){var f=a(c).find(n.ACTIVE_CHILD)[0],g=d&&e.supportsTransitionEnd()&&(f&&a(f).hasClass(m.FADE)||Boolean(a(c).find(n.FADE_CHILD)[0])),h=a.proxy(this._transitionComplete,this,b,f,g,d);f&&g?a(f).one(e.TRANSITION_END,h).emulateTransitionEnd(k):h(),f&&a(f).removeClass(m.IN)}},{key:"_transitionComplete",value:function(b,c,d,f){if(c){a(c).removeClass(m.ACTIVE);var g=a(c).find(n.DROPDOWN_ACTIVE_CHILD)[0];g&&a(g).removeClass(m.ACTIVE),c.setAttribute("aria-expanded",!1)}if(a(b).addClass(m.ACTIVE),b.setAttribute("aria-expanded",!0),d?(e.reflow(b),a(b).addClass(m.IN)):a(b).removeClass(m.FADE),b.parentNode&&a(b.parentNode).hasClass(m.DROPDOWN_MENU)){var h=a(b).closest(n.DROPDOWN)[0];h&&a(h).find(n.DROPDOWN_TOGGLE).addClass(m.ACTIVE),b.setAttribute("aria-expanded",!0)}f&&f()}}],[{key:"_jQueryInterface",value:function(b){return this.each(function(){var d=a(this),e=d.data(g);e||(e=e=new c(this),d.data(g,e)),"string"==typeof b&&e[b]()})}},{key:"VERSION",get:function(){return f}}]),c}();return a(document).on(l.CLICK_DATA_API,n.DATA_TOGGLE,function(b){b.preventDefault(),o._jQueryInterface.call(a(this),"show")}),a.fn[c]=o._jQueryInterface,a.fn[c].Constructor=o,a.fn[c].noConflict=function(){return a.fn[c]=j,o._jQueryInterface},o}(jQuery),function(a){var c="tooltip",f="4.0.0",g="bs.tooltip",h="."+g,i=a.fn[c],j=150,k="bs-tether",l={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:"0 0",constraints:[]},m={animation:"boolean",template:"string",title:"(string|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"string",constraints:"array"},n={TOP:"bottom center",RIGHT:"middle left",BOTTOM:"top center",LEFT:"middle right"},o={IN:"in",OUT:"out"},p={HIDE:"hide"+h,HIDDEN:"hidden"+h,SHOW:"show"+h,SHOWN:"shown"+h,INSERTED:"inserted"+h,CLICK:"click"+h,FOCUSIN:"focusin"+h,FOCUSOUT:"focusout"+h,MOUSEENTER:"mouseenter"+h,MOUSELEAVE:"mouseleave"+h},q={FADE:"fade",IN:"in"},r={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner"},s={element:!1,enabled:!1},t={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},u=function(){function i(a,c){b(this,i),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._tether=null,this.element=a,this.config=this._getConfig(c),this.tip=null,this._setListeners()}return d(i,[{key:"enable",value:function(){this._isEnabled=!0}},{key:"disable",value:function(){this._isEnabled=!1}},{key:"toggleEnabled",value:function(){this._isEnabled=!this._isEnabled}},{key:"toggle",value:function(b){if(b){var c=this.constructor.DATA_KEY,d=a(b.currentTarget).data(c);d||(d=new this.constructor(b.currentTarget,this._getDelegateConfig()),a(b.currentTarget).data(c,d)),d._activeTrigger.click=!d._activeTrigger.click,d._isWithActiveTrigger()?d._enter(null,d):d._leave(null,d)}else{if(a(this.getTipElement()).hasClass(q.IN))return void this._leave(null,this);this._enter(null,this)}}},{key:"dispose",value:function(){clearTimeout(this._timeout),this.cleanupTether(),a.removeData(this.element,this.constructor.DATA_KEY),a(this.element).off(this.constructor.EVENT_KEY),this.tip&&a(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._tether=null,this.element=null,this.config=null,this.tip=null}},{key:"show",value:function(){var b=this,c=a.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){a(this.element).trigger(c);var d=a.contains(this.element.ownerDocument.documentElement,this.element);if(c.isDefaultPrevented()||!d)return;var f=this.getTipElement(),g=e.getUID(this.constructor.NAME);f.setAttribute("id",g),this.element.setAttribute("aria-describedby",g),this.setContent(),this.config.animation&&a(f).addClass(q.FADE);var h="function"==typeof this.config.placement?this.config.placement.call(this,f,this.element):this.config.placement,j=this._getAttachment(h);a(f).data(this.constructor.DATA_KEY,this).appendTo(document.body),a(this.element).trigger(this.constructor.Event.INSERTED),this._tether=new Tether({attachment:j,element:f,target:this.element,classes:s,classPrefix:k,offset:this.config.offset,constraints:this.config.constraints}),e.reflow(f),this._tether.position(),a(f).addClass(q.IN);var l=function(){var c=b._hoverState;b._hoverState=null,a(b.element).trigger(b.constructor.Event.SHOWN),c===o.OUT&&b._leave(null,b)};if(e.supportsTransitionEnd()&&a(this.tip).hasClass(q.FADE))return void a(this.tip).one(e.TRANSITION_END,l).emulateTransitionEnd(i._TRANSITION_DURATION);l()}}},{key:"hide",value:function(b){var c=this,d=this.getTipElement(),f=a.Event(this.constructor.Event.HIDE),g=function(){c._hoverState!==o.IN&&d.parentNode&&d.parentNode.removeChild(d),c.element.removeAttribute("aria-describedby"),a(c.element).trigger(c.constructor.Event.HIDDEN),c.cleanupTether(),b&&b()};a(this.element).trigger(f),f.isDefaultPrevented()||(a(d).removeClass(q.IN),e.supportsTransitionEnd()&&a(this.tip).hasClass(q.FADE)?a(d).one(e.TRANSITION_END,g).emulateTransitionEnd(j):g(),this._hoverState="")}},{key:"isWithContent",value:function(){return Boolean(this.getTitle())}},{key:"getTipElement",value:function(){return this.tip=this.tip||a(this.config.template)[0]}},{key:"setContent",value:function(){var b=this.getTipElement(),c=this.getTitle(),d=this.config.html?"innerHTML":"innerText";a(b).find(r.TOOLTIP_INNER)[0][d]=c,a(b).removeClass(q.FADE).removeClass(q.IN),this.cleanupTether()}},{key:"getTitle",value:function(){var a=this.element.getAttribute("data-original-title");return a||(a="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),a}},{key:"cleanupTether",value:function(){this._tether&&(this._tether.destroy(),a(this.element).removeClass(this._removeTetherClasses),a(this.tip).removeClass(this._removeTetherClasses))}},{key:"_getAttachment",value:function(a){return n[a.toUpperCase()]}},{key:"_setListeners",value:function(){var b=this,c=this.config.trigger.split(" ");c.forEach(function(c){if("click"===c)a(b.element).on(b.constructor.Event.CLICK,b.config.selector,a.proxy(b.toggle,b));else if(c!==t.MANUAL){var d=c===t.HOVER?b.constructor.Event.MOUSEENTER:b.constructor.Event.FOCUSIN,e=c===t.HOVER?b.constructor.Event.MOUSELEAVE:b.constructor.Event.FOCUSOUT;a(b.element).on(d,b.config.selector,a.proxy(b._enter,b)).on(e,b.config.selector,a.proxy(b._leave,b))}}),this.config.selector?this.config=a.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()}},{key:"_removeTetherClasses",value:function(a,b){return((b.baseVal||b).match(new RegExp("(^|\\s)"+k+"-\\S+","g"))||[]).join(" ")}},{key:"_fixTitle",value:function(){var a=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==a)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))}},{key:"_enter",value:function(b,c){var d=this.constructor.DATA_KEY;return c=c||a(b.currentTarget).data(d),c||(c=new this.constructor(b.currentTarget,this._getDelegateConfig()),a(b.currentTarget).data(d,c)),b&&(c._activeTrigger["focusin"===b.type?t.FOCUS:t.HOVER]=!0),a(c.getTipElement()).hasClass(q.IN)||c._hoverState===o.IN?void(c._hoverState=o.IN):(clearTimeout(c._timeout),c._hoverState=o.IN,c.config.delay&&c.config.delay.show?void(c._timeout=setTimeout(function(){c._hoverState===o.IN&&c.show()},c.config.delay.show)):void c.show())}},{key:"_leave",value:function(b,c){var d=this.constructor.DATA_KEY;return c=c||a(b.currentTarget).data(d),c||(c=new this.constructor(b.currentTarget,this._getDelegateConfig()),a(b.currentTarget).data(d,c)),b&&(c._activeTrigger["focusout"===b.type?t.FOCUS:t.HOVER]=!1),c._isWithActiveTrigger()?void 0:(clearTimeout(c._timeout),c._hoverState=o.OUT,c.config.delay&&c.config.delay.hide?void(c._timeout=setTimeout(function(){c._hoverState===o.OUT&&c.hide()},c.config.delay.hide)):void c.hide())}},{key:"_isWithActiveTrigger",value:function(){for(var a in this._activeTrigger)if(this._activeTrigger[a])return!0;return!1}},{key:"_getConfig",value:function(b){return b=a.extend({},this.constructor.Default,a(this.element).data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),e.typeCheckConfig(c,b,this.constructor.DefaultType),b}},{key:"_getDelegateConfig",value:function(){var a={};if(this.config)for(var b in this.config)this.constructor.Default[b]!==this.config[b]&&(a[b]=this.config[b]);return a}}],[{key:"_jQueryInterface",value:function(b){return this.each(function(){var c=a(this).data(g),d="object"==typeof b?b:null;(c||!/destroy|hide/.test(b))&&(c||(c=new i(this,d),a(this).data(g,c)),"string"==typeof b&&c[b]())})}},{key:"VERSION",get:function(){return f}},{key:"Default",get:function(){return l}},{key:"NAME",get:function(){return c}},{key:"DATA_KEY",get:function(){return g}},{key:"Event",get:function(){return p}},{key:"EVENT_KEY",get:function(){return h}},{key:"DefaultType",get:function(){return m}}]),i}();return a.fn[c]=u._jQueryInterface,a.fn[c].Constructor=u,a.fn[c].noConflict=function(){return a.fn[c]=i,u._jQueryInterface},u}(jQuery));!function(e){var g="popover",h="4.0.0",i="bs.popover",j="."+i,k=e.fn[g],l=e.extend({},f.Default,{placement:"right",trigger:"click",content:"",template:''}),m=e.extend({},f.DefaultType,{content:"(string|function)"}),n={FADE:"fade",IN:"in"},o={TITLE:".popover-title",CONTENT:".popover-content",ARROW:".popover-arrow"},p={HIDE:"hide"+j,HIDDEN:"hidden"+j,SHOW:"show"+j,SHOWN:"shown"+j,INSERTED:"inserted"+j,CLICK:"click"+j,FOCUSIN:"focusin"+j,FOCUSOUT:"focusout"+j,MOUSEENTER:"mouseenter"+j,MOUSELEAVE:"mouseleave"+j},q=function(f){function k(){b(this,k),c(Object.getPrototypeOf(k.prototype),"constructor",this).apply(this,arguments)}return a(k,f),d(k,[{key:"isWithContent",value:function(){return this.getTitle()||this._getContent()}},{key:"getTipElement",value:function(){return this.tip=this.tip||e(this.config.template)[0]}},{key:"setContent",value:function(){var a=this.getTipElement(),b=this.getTitle(),c=this._getContent(),d=e(a).find(o.TITLE)[0];d&&(d[this.config.html?"innerHTML":"innerText"]=b),e(a).find(o.CONTENT).children().detach().end()[this.config.html?"string"==typeof c?"html":"append":"text"](c),e(a).removeClass(n.FADE).removeClass(n.IN),this.cleanupTether()}},{key:"_getContent",value:function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)}}],[{key:"_jQueryInterface",value:function(a){return this.each(function(){var b=e(this).data(i),c="object"==typeof a?a:null;(b||!/destroy|hide/.test(a))&&(b||(b=new k(this,c),e(this).data(i,b)),"string"==typeof a&&b[a]())})}},{key:"VERSION",get:function(){return h}},{key:"Default",get:function(){return l}},{key:"NAME",get:function(){return g}},{key:"DATA_KEY",get:function(){return i}},{key:"Event",get:function(){return p}},{key:"EVENT_KEY",get:function(){return j}},{key:"DefaultType",get:function(){return m}}]),k}(f);return e.fn[g]=q._jQueryInterface,e.fn[g].Constructor=q,e.fn[g].noConflict=function(){return e.fn[g]=k,q._jQueryInterface},q}(jQuery)}}(jQuery);
--------------------------------------------------------------------------------
/static/js/common/utils.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 |
3 | /**
4 | * @param {参数名}
5 | * @return {[浏览器地址栏中传的参数——参数名对应的value]}
6 | */
7 | const getUrlParam = function(name)
8 | {
9 | var locationUrl = decodeURIComponent(window.location.href);
10 |
11 | var paramArrays = [];
12 | var paramMap = {};
13 |
14 | //获得参数
15 | paramArrays = (locationUrl.split("?")[1]).split("&");
16 |
17 | //获得参数,拼凑成字典,形式为{"paramNameA":"a","paramNameB":"b"}
18 | var length = paramArrays.length;
19 | for(var i=0;i35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}(';(7($){"4j 4k";4 O={};O.2t=$("<1j R=\'2u\'/>").39(0).3a!==1c;O.3b=1d.3c!==1c;$.11.1k=7(z){3(!5.X){Y(\'1k: 4l Z 4m - 4n 4o 1S\');8 5}4 A,1p,16,$9=5;3(1g z==\'7\'){z={17:z}}A=5.18(\'3d\');1p=5.18(\'1p\');16=(1g 1p===\'2v\')?$.4p(1p):\'\';16=16||1d.2w.2x||\'\';3(16){16=(16.4q(/^([^#]+)/)||[])[1]}z=$.2y(1h,{16:16,17:$.1T.17,R:A||\'3e\',22:/^4r/i.1U(1d.2w.2x||\'\')?\'3f:14\':\'4s:4t\'},z);4 B={};5.1e(\'9-2z-3g\',[5,z,B]);3(B.3h){Y(\'1k: Z 3i 23 9-2z-3g 1e\');8 5}3(z.2A&&z.2A(5,z)===14){Y(\'1k: Z 1l 23 2A 2B\');8 5}4 C=z.3j;3(C===1c){C=$.1T.3j}4 D=[];4 E,a=5.2C(z.4u,D);3(z.1a){z.W=z.1a;E=$.1H(z.1a,C)}3(z.2D&&z.2D(a,5,z)===14){Y(\'1k: Z 1l 23 2D 2B\');8 5}5.1e(\'9-Z-3k\',[a,5,z,B]);3(B.3h){Y(\'1k: Z 3i 23 9-Z-3k 1e\');8 5}4 q=$.1H(a,C);3(E){q=(q?(q+\'&\'+E):E)}3(z.R.4v()==\'3e\'){z.16+=(z.16.24(\'?\')>=0?\'&\':\'?\')+q;z.1a=12}P{z.1a=q}4 F=[];3(z.2E){F.V(7(){$9.2E()})}3(z.2F){F.V(7(){$9.2F(z.4w)})}3(!z.1V&&z.1z){4 G=z.17||7(){};F.V(7(a){4 b=z.4x?\'4y\':\'4z\';$(z.1z)[b](a).1A(G,3l)})}P 3(z.17){F.V(z.17)}z.17=7(a,b,c){4 d=z.1i||5;1b(4 i=0,1m=F.X;i<1m;i++){F[i].4A(d,[a,b,c||$9,$9])}};4 H=$(\'1j[R=2u]:4B[S!=""]\',5);4 I=H.X>0;4 J=\'2G/9-1a\';4 K=($9.18(\'3m\')==J||$9.18(\'3n\')==J);4 L=O.2t&&O.3b;Y("4C :"+L);4 M=(I||K)&&!L;4 N;3(z.2H!==14&&(z.2H||M)){3(z.3o){$.39(z.3o,7(){N=2I(a)})}P{N=2I(a)}}P 3((I||K)&&L){N=3p(a)}P{N=$.3q(z)}$9.4D(\'3r\').1a(\'3r\',N);1b(4 k=0;k\');$U.4Z({3A:\'51\',3E:\'-3F\',3G:\'-3F\'})}U=$U[0];6={1l:0,1n:12,1K:12,1f:0,1t:\'n/a\',52:7(){},2L:7(){},53:7(){},1L:7(a){4 e=(a===\'1u\'?\'1u\':\'1l\');Y(\'54 28... \'+e);5.1l=1;3(U.2d.1M.3H){1N{U.2d.1M.3H(\'55\')}1W(56){}}$U.18(\'3D\',s.22);6.19=e;3(s.19)s.19.1q(s.1i,6,e,a);3(g)$.1C.1e("3I",[6,s,e]);3(s.2e)s.2e.1q(s.1i,6,e)}};g=s.3J;3(g&&0===$.2M++){$.1C.1e("57")}3(g){$.1C.1e("58",[6,s])}3(s.29&&s.29.1q(s.1i,6,s)===14){3(s.3J){$.2M--}o.1J();8 o}3(6.1l){o.1J();8 o}1B=l.1v;3(1B){n=1B.Q;3(n&&!1B.1s){s.W=s.W||{};s.W[n]=1B.S;3(1B.R=="1O"){s.W[n+\'.x\']=l.1D;s.W[n+\'.y\']=l.1E}}}4 p=1;4 q=2;7 2N(a){4 b=a.2d?a.2d.1M:a.3K?a.3K:a.1M;8 b}4 r=$(\'3L[Q=3M-59]\').18(\'2f\');4 u=$(\'3L[Q=3M-1H]\').18(\'2f\');3(u&&r){s.W=s.W||{};s.W[u]=r}7 2O(){4 t=$9.18(\'1z\'),a=$9.18(\'1p\');l.1X(\'1z\',1r);3(!A){l.1X(\'3d\',\'3x\')}3(a!=s.16){l.1X(\'1p\',s.16)}3(!s.5a&&(!A||/5b/i.1U(A))){$9.18({3n:\'2G/9-1a\',3m:\'2G/9-1a\'})}3(s.1u){1I=1F(7(){2a=1h;1w(p)},s.1u)}7 2P(){1N{4 a=2N(U).5c;Y(\'5d = \'+a);3(a&&a.1Y()==\'5e\')1F(2P,50)}1W(e){Y(\'5f 1L: \',e,\' (\',e.Q,\')\');1w(q);3(1I)3N(1I);1I=1c}}4 b=[];1N{3(s.W){1b(4 n 3w s.W){3(s.W.27(n)){3($.5g(s.W[n])&&s.W[n].27(\'Q\')&&s.W[n].27(\'S\')){b.V($(\'<1j R="2Q" Q="\'+s.W[n].Q+\'">\').18(\'S\',s.W[n].S).2R(l)[0])}P{b.V($(\'<1j R="2Q" Q="\'+n+\'">\').18(\'S\',s.W[n]).2R(l)[0])}}}}3(!s.2c){$U.2R(\'1P\');3(U.3O)U.3O(\'3P\',1w);P U.5h(\'3Q\',1w,14)}1F(2P,15);l.Z()}5i{l.1X(\'1p\',a);3(t){l.1X(\'1z\',t)}P{$9.3C(\'1z\')}$(b).3R()}}3(s.5j){2O()}P{1F(2O,10)}4 v,13,3S=50,2S;7 1w(e){3(6.1l||2S){8}1N{13=2N(U)}1W(3T){Y(\'5k 5l 5m 1M: \',3T);e=q}3(e===p&&6){6.1L(\'1u\');o.1J(6,\'1u\');8}P 3(e==q&&6){6.1L(\'3U 1L\');o.1J(6,\'19\',\'3U 1L\');8}3(!13||13.2w.2x==s.22){3(!2a)8}3(U.3V)U.3V(\'3P\',1w);P U.5n(\'3Q\',1w,14);4 c=\'17\',1x;1N{3(2a){5o\'1u\';}4 d=s.1V==\'1o\'||13.2T||$.5p(13);Y(\'5q=\'+d);3(!d&&1d.2g&&(13.1P===12||!13.1P.3W)){3(--3S){Y(\'5r 5s 2B, 2U 2b 5t\');1F(1w,5u);8}}4 f=13.1P?13.1P:13.2h;6.1n=f?f.3W:12;6.1K=13.2T?13.2T:13;3(d)s.1V=\'1o\';6.2L=7(a){4 b={\'2f-R\':s.1V};8 b[a]};3(f){6.1f=3X(f.2i(\'1f\'))||6.1f;6.1t=f.2i(\'1t\')||6.1t}4 h=(s.1V||\'\').1Y();4 i=/(2V|3Y|2j)/.1U(h);3(i||s.2k){4 j=13.2l(\'2k\')[0];3(j){6.1n=j.S;6.1f=3X(j.2i(\'1f\'))||6.1f;6.1t=j.2i(\'1t\')||6.1t}P 3(i){4 k=13.2l(\'2z\')[0];4 b=13.2l(\'1P\')[0];3(k){6.1n=k.2m?k.2m:k.3Z}P 3(b){6.1n=b.2m?b.2m:b.3Z}}}P 3(h==\'1o\'&&!6.1K&&6.1n){6.1K=w(6.1n)}1N{v=y(6,h,s)}1W(e){c=\'2n\';6.19=1x=(e||c)}}1W(e){Y(\'19 5v: \',e);c=\'19\';6.19=1x=(e||c)}3(6.1l){Y(\'28 1l\');c=12}3(6.1f){c=(6.1f>=5w&&6.1f<5x||6.1f===5y)?\'17\':\'19\'}3(c===\'17\'){3(s.17)s.17.1q(s.1i,v,\'17\',6);o.5z(6.1n,\'17\',6);3(g)$.1C.1e("5A",[6,s])}P 3(c){3(1x===1c)1x=6.1t;3(s.19)s.19.1q(s.1i,6,c,1x);o.1J(6,\'19\',1x);3(g)$.1C.1e("3I",[6,s,1x])}3(g)$.1C.1e("5B",[6,s]);3(g&&!--$.2M){$.1C.1e("5C")}3(s.2e)s.2e.1q(s.1i,6,c);2S=1h;3(s.1u)3N(1I);1F(7(){3(!s.2c)$U.3R();6.1K=12},2J)}4 w=$.5D||7(s,a){3(1d.40){a=26 40(\'5E.5F\');a.5G=\'14\';a.5H(s)}P{a=(26 5I()).5J(s,\'2j/1o\')}8(a&&a.2h&&a.2h.41!=\'2n\')?a:12};4 x=$.5K||7(s){8 1d[\'5L\'](\'(\'+s+\')\')};4 y=7(a,b,s){4 c=a.2L(\'2f-R\')||\'\',1o=b===\'1o\'||!b&&c.24(\'1o\')>=0,v=1o?a.1K:a.1n;3(1o&&v.2h.41===\'2n\'){3($.19)$.19(\'2n\')}3(s&&s.42){v=s.42(v,b)}3(1g v===\'2v\'){3(b===\'2V\'||!b&&c.24(\'2V\')>=0){v=x(v)}P 3(b==="3Y"||!b&&c.24("3f")>=0){$.5M(v)}}8 v};8 o}};$.11.2W=7(a){a=a||{};a.2o=a.2o&&$.5N($.11.2X);3(!a.2o&&5.X===0){4 o={s:5.1Q,c:5.1i};3(!$.43&&o.s){Y(\'2U 2b 44, 5O 2W\');$(7(){$(o.s,o.c).2W(a)});8 5}Y(\'5P; 5Q 2K 5R 5S 1Q\'+($.43?\'\':\' (2U 2b 44)\'));8 5}3(a.2o){$(1M).45(\'Z.9-1y\',5.1Q,2p).45(\'2q.9-1y\',5.1Q,2r).2X(\'Z.9-1y\',5.1Q,a,2p).2X(\'2q.9-1y\',5.1Q,a,2r);8 5}8 5.46().47(\'Z.9-1y\',a,2p).47(\'2q.9-1y\',a,2r)};7 2p(e){4 a=e.1a;3(!e.5T()){e.5U();$(5).1k(a)}}7 2r(e){4 a=e.1z;4 b=$(a);3(!(b.48("[R=Z],[R=1O]"))){4 t=b.5V(\'[R=Z]\');3(t.X===0){8}a=t[0]}4 c=5;c.1v=a;3(a.R==\'1O\'){3(e.49!==1c){c.1D=e.49;c.1E=e.5W}P 3(1g $.11.4a==\'7\'){4 d=b.4a();c.1D=e.4b-d.3G;c.1E=e.4c-d.3E}P{c.1D=e.4b-a.5X;c.1E=e.4c-a.5Y}}1F(7(){c.1v=c.1D=c.1E=12},2J)}$.11.46=7(){8 5.5Z(\'Z.9-1y 2q.9-1y\')};$.11.2C=7(b,c){4 a=[];3(5.X===0){8 a}4 d=5[0];4 e=b?d.2l(\'*\'):d.2K;3(!e){8 a}4 i,j,n,v,T,1m,2Y;1b(i=0,1m=e.X;i<1m;i++){T=e[i];n=T.Q;3(!n){2Z}3(b&&d.1v&&T.R=="1O"){3(!T.1s&&d.1v==T){a.V({Q:n,S:$(T).30(),R:T.R});a.V({Q:n+\'.x\',S:d.1D},{Q:n+\'.y\',S:d.1E})}2Z}v=$.1Z(T,1h);3(v&&v.2s==20){3(c)c.V(T);1b(j=0,2Y=v.X;j<2Y;j++){a.V({Q:n,S:v[j]})}}P 3(O.2t&&T.R==\'2u\'&&!T.1s){3(c)c.V(T);4 f=T.3a;3(f.X){1b(j=0;j35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(7($){$.J($.2F,{1c:7(c){8(!6.G){8(c&&c.29&&2G.1x){1x.4x("4y 3l, 4z\'t 1c, 4A 4B.")}l}p d=$.11(6[0],"v");8(d){l d}6.12("3m","3m");d=2H $.v(c,6[0]);$.11(6[0],"v",d);8(d.q.3n){6.2a(":2b","3o",7(a){8(d.q.2I){d.1P=a.2c}8($(a.2c).4C("4D")){d.2d=w}8($(a.2c).12("4E")!==1l){d.2d=w}});6.2b(7(b){8(d.q.29){b.4F()}7 2J(){p a;8(d.q.2I){8(d.1P){a=$("<2e F=\'3p\'/>").12("u",d.1P.u).W($(d.1P).W()).4G(d.X)}d.q.2I.16(d,d.X,b);8(d.1P){a.3q()}l K}l w}8(d.2d){d.2d=K;l 2J()}8(d.P()){8(d.1g){d.1m=w;l K}l 2J()}H{d.2f();l K}})}l d},L:7(){8($(6[0]).2K("P")){l 6.1c().P()}H{p a=w;p b=$(6[0].P).1c();6.U(7(){a=a&&b.I(6)});l a}},4H:7(c){p d={},$I=6;$.U(c.1y(/\\s/),7(a,b){d[b]=$I.12(b);$I.4I(b)});l d},13:7(c,d){p e=6[0];8(c){p f=$.11(e.P,"v").q;p g=f.13;p h=$.v.2L(e);2M(c){1z"1n":$.J(h,$.v.1Q(d));Q h.M;g[e.u]=h;8(d.M){f.M[e.u]=$.J(f.M[e.u],d.M)}2N;1z"3q":8(!d){Q g[e.u];l h}p i={};$.U(d.1y(/\\s/),7(a,b){i[b]=h[b];Q h[b]});l i}}p j=$.v.3r($.J({},$.v.3s(e),$.v.3t(e),$.v.3u(e),$.v.2L(e)),e);8(j.14){p k=j.14;Q j.14;j=$.J({14:k},j)}l j}});$.J($.4J[":"],{4K:7(a){l!$.1A(""+$(a).W())},4L:7(a){l!!$.1A(""+$(a).W())},4M:7(a){l!$(a).4N("2O")}});$.v=7(a,b){6.q=$.J(w,{},$.v.2P,a);6.X=b;6.3v()};$.v.15=7(b,c){8(17.G===1){l 7(){p a=$.3w(17);a.4O(b);l $.v.15.2g(6,a)}}8(17.G>2&&c.2h!==3x){c=$.3w(17).4P(1)}8(c.2h!==3x){c=[c]}$.U(c,7(i,n){b=b.1B(2H 4Q("\\\\{"+i+"\\\\}","g"),7(){l n})});l b};$.J($.v,{2P:{M:{},2i:{},13:{},1h:"3y",1R:"L",2Q:"4R",2f:w,3z:$([]),2R:$([]),3n:w,2S:":3p",3A:K,4S:7(a,b){6.3B=a;8(6.q.4T&&!6.4U){8(6.q.1S){6.q.1S.16(6,a,6.q.1h,6.q.1R)}6.2j(6.1T(a)).2T()}},3C:7(a,b){8(!6.1C(a)&&(a.u R 6.1i||!6.N(a))){6.I(a)}},4V:7(a,b){8(b.4W===9&&6.2k(a)===""){l}H 8(a.u R 6.1i||a===6.2U){6.I(a)}},4X:7(a,b){8(a.u R 6.1i){6.I(a)}H 8(a.3D.u R 6.1i){6.I(a.3D)}},2V:7(a,b,c){8(a.F==="1U"){6.1D(a.u).1o(b).1E(c)}H{$(a).1o(b).1E(c)}},1S:7(a,b,c){8(a.F==="1U"){6.1D(a.u).1E(b).1o(c)}H{$(a).1E(b).1o(c)}}},4Y:7(a){$.J($.v.2P,a)},M:{14:"4Z 3E 2K 14.",1p:"O 50 6 3E.",1F:"O S a L 1F 51.",1q:"O S a L 52.",1r:"O S a L 1r.",2l:"O S a L 1r (53).",1j:"O S a L 1j.",1V:"O S 54 1V.",2m:"O S a L 55 56 1j.",2n:"O S 3F 57 1d 58.",1e:$.v.15("O S 3G 59 2W {0} 2X."),1G:$.v.15("O S 5a 5b {0} 2X."),2o:$.v.15("O S a 1d 3H {0} 3I {1} 2X 5c."),1s:$.v.15("O S a 1d 3H {0} 3I {1}."),1H:$.v.15("O S a 1d 5d 2W 3J 3K 3L {0}."),1I:$.v.15("O S a 1d 5e 2W 3J 3K 3L {0}.")},3M:K,5f:{3v:7(){6.2p=$(6.q.2R);6.3N=6.2p.G&&6.2p||$(6.X);6.2q=$(6.q.3z).1n(6.q.2R);6.1i={};6.5g={};6.1g=0;6.1J={};6.18={};6.1W();p e=(6.2i={});$.U(6.q.2i,7(c,d){8(19 d==="1k"){d=d.1y(/\\s/)}$.U(d,7(a,b){e[b]=c})});p f=6.q.13;$.U(f,7(a,b){f[a]=$.v.1Q(b)});7 2Y(a){p b=$.11(6[0].P,"v"),2Z="5h"+a.F.1B(/^1c/,"");8(b.q[2Z]){b.q[2Z].16(b,6[0],a)}}$(6.X).2a(":30, [F=\'5i\'], [F=\'5j\'], 1X, 3O, "+"[F=\'1j\'], [F=\'5k\'] ,[F=\'5l\'], [F=\'1q\'], "+"[F=\'1F\'], [F=\'3P\'], [F=\'1r\'], [F=\'5m\'], "+"[F=\'5n\'], [F=\'5o\'], [F=\'3P-5p\'], "+"[F=\'1s\'], [F=\'5q\'] ","3Q 5r 5s",2Y).2a("[F=\'1U\'], [F=\'31\'], 1X, 3R","3o",2Y);8(6.q.3S){$(6.X).32("18-P.1c",6.q.3S)}},P:7(){6.3T();$.J(6.1i,6.1K);6.18=$.J({},6.1K);8(!6.L()){$(6.X).3U("18-P",[6])}6.1t();l 6.L()},3T:7(){6.33();T(p i=0,1a=(6.2r=6.1a());1a[i];i++){6.2s(1a[i])}l 6.L()},I:7(a){a=6.34(6.35(a));6.2U=a;6.36(a);6.2r=$(a);p b=6.2s(a)!==K;8(b){Q 6.18[a.u]}H{6.18[a.u]=w}8(!6.3V()){6.1b=6.1b.1n(6.2q)}6.1t();l b},1t:7(b){8(b){$.J(6.1K,b);6.V=[];T(p c R b){6.V.2t({1u:b[c],I:6.1D(c)[0]})}6.1v=$.3W(6.1v,7(a){l!(a.u R b)})}8(6.q.1t){6.q.1t.16(6,6.1K,6.V)}H{6.3X()}},37:7(){8($.2F.37){$(6.X).37()}6.1i={};6.2U=38;6.33();6.39();6.1a().1E(6.q.1h).5t("1Y")},3V:7(){l 6.2u(6.18)},2u:7(a){p b=0;T(p i R a){b++}l b},39:7(){6.2j(6.1b).2T()},L:7(){l 6.3Y()===0},3Y:7(){l 6.V.G},2f:7(){8(6.q.2f){3Z{$(6.40()||6.V.G&&6.V[0].I||[]).2v(":5u").5v().5w("3Q")}41(e){}}},40:7(){p a=6.3B;l a&&$.3W(6.V,7(n){l n.I.u===a.u}).G===1&&a},1a:7(){p a=6,3a={};l $(6.X).42("2e, 1X, 3O").1L(":2b, :1W, :5x, [5y]").1L(6.q.2S).2v(7(){8(!6.u&&a.q.29&&2G.1x){1x.3y("%o 5z 3G u 5A",6)}8(6.u R 3a||!a.2u($(6).13())){l K}3a[6.u]=w;l w})},35:7(a){l $(a)[0]},3b:7(){p a=6.q.1h.1B(" ",".");l $(6.q.2Q+"."+a,6.3N)},1W:7(){6.1v=[];6.V=[];6.1K={};6.1w=$([]);6.1b=$([]);6.2r=$([])},33:7(){6.1W();6.1b=6.3b().1n(6.2q)},36:7(a){6.1W();6.1b=6.1T(a)},2k:7(a){p b=$(a).12("F"),W=$(a).W();8(b==="1U"||b==="31"){l $("2e[u=\'"+$(a).12("u")+"\']:2O").W()}8(19 W==="1k"){l W.1B(/\\r/g,"")}l W},2s:7(a){a=6.34(6.35(a));p b=$(a).13();p c=K;p d=6.2k(a);p f;T(p g R b){p h={2w:g,2x:b[g]};3Z{f=$.v.1M[g].16(6,d,a,h.2x);8(f==="1Z-20"){c=w;5B}c=K;8(f==="1J"){6.1b=6.1b.1L(6.1T(a));l}8(!f){6.43(a,h);l K}}41(e){8(6.q.29&&2G.1x){1x.5C("5D 5E 5F 5G I "+a.44+", 2s 3F \'"+h.2w+"\' 2w.",e)}5H e;}}8(c){l}8(6.2u(b)){6.1v.2t(a)}l w},45:7(a,b){l $(a).11("46-"+b.21())||(a.5I&&$(a).12("11-46-"+b.21()))},47:7(a,b){p m=6.q.M[a];l m&&(m.2h===48?m:m[b])},49:7(){T(p i=0;i<17.G;i++){8(17[i]!==1l){l 17[i]}}l 1l},2y:7(a,b){l 6.49(6.47(a.u,b),6.45(a,b),!6.q.3A&&a.5J||1l,$.v.M[b],"<4a>5K: 5L 1u 5M T "+a.u+"4a>")},43:7(a,b){p c=6.2y(a,b.2w),3c=/\\$?\\{(\\d+)\\}/g;8(19 c==="7"){c=c.16(6,b.2x,a)}H 8(3c.Y(c)){c=$.v.15(c.1B(3c,"{$1}"),b.2x)}6.V.2t({1u:c,I:a});6.1K[a.u]=c;6.1i[a.u]=c},2j:7(a){8(6.q.2z){a=a.1n(a.4b(6.q.2z))}l a},3X:7(){p i,1a;T(i=0;6.V[i];i++){p a=6.V[i];8(6.q.2V){6.q.2V.16(6,a.I,6.q.1h,6.q.1R)}6.3d(a.I,a.1u)}8(6.V.G){6.1w=6.1w.1n(6.2q)}8(6.q.1N){T(i=0;6.1v[i];i++){6.3d(6.1v[i])}}8(6.q.1S){T(i=0,1a=6.4c();1a[i];i++){6.q.1S.16(6,1a[i],6.q.1h,6.q.1R)}}6.1b=6.1b.1L(6.1w);6.39();6.2j(6.1w).4d()},4c:7(){l 6.2r.1L(6.4e())},4e:7(){l $(6.V).5N(7(){l 6.I})},3d:7(a,b){p c=6.1T(a);8(c.G){c.1E(6.q.1R).1o(6.q.1h);c.4f(b)}H{c=$("<"+6.q.2Q+">").12("T",6.3e(a)).1o(6.q.1h).4f(b||"");8(6.q.2z){c=c.2T().4d().5O("<"+6.q.2z+"/>").4b()}8(!6.2p.5P(c).G){8(6.q.4g){6.q.4g(c,$(a))}H{c.5Q(a)}}}8(!b&&6.q.1N){c.30("");8(19 6.q.1N==="1k"){c.1o(6.q.1N)}H{6.q.1N(c,a)}}6.1w=6.1w.1n(c)},1T:7(a){p b=6.3e(a);l 6.3b().2v(7(){l $(6).12("T")===b})},3e:7(a){l 6.2i[a.u]||(6.1C(a)?a.u:a.44||a.u)},34:7(a){8(6.1C(a)){a=6.1D(a.u).1L(6.q.2S)[0]}l a},1C:7(a){l(/1U|31/i).Y(a.F)},1D:7(a){l $(6.X).42("[u=\'"+a+"\']")},22:7(a,b){2M(b.4h.21()){1z"1X":l $("3R:3l",b).G;1z"2e":8(6.1C(b)){l 6.1D(b.u).2v(":2O").G}}l a.G},4i:7(a,b){l 6.3f[19 a]?6.3f[19 a](a,b):w},3f:{"5R":7(a,b){l a},"1k":7(a,b){l!!$(a,b.P).G},"7":7(a,b){l a(b)}},N:7(a){p b=6.2k(a);l!$.v.1M.14.16(6,b,a)&&"1Z-20"},4j:7(a){8(!6.1J[a.u]){6.1g++;6.1J[a.u]=w}},4k:7(a,b){6.1g--;8(6.1g<0){6.1g=0}Q 6.1J[a.u];8(b&&6.1g===0&&6.1m&&6.P()){$(6.X).2b();6.1m=K}H 8(!b&&6.1g===0&&6.1m){$(6.X).3U("18-P",[6]);6.1m=K}},1Y:7(a){l $.11(a,"1Y")||$.11(a,"1Y",{3g:38,L:w,1u:6.2y(a,"1p")})}},23:{14:{14:w},1F:{1F:w},1q:{1q:w},1r:{1r:w},2l:{2l:w},1j:{1j:w},1V:{1V:w},2m:{2m:w}},4l:7(a,b){8(a.2h===48){6.23[a]=b}H{$.J(6.23,a)}},3s:7(a){p b={};p c=$(a).12("5S");8(c){$.U(c.1y(" "),7(){8(6 R $.v.23){$.J(b,$.v.23[6])}})}l b},3t:7(a){p b={};p c=$(a);p d=c[0].4m("F");T(p e R $.v.1M){p f;8(e==="14"){f=c.5T(0).4m(e);8(f===""){f=w}f=!!f}H{f=c.12(e)}8(/1I|1H/.Y(e)&&(d===38||/1j|1s|30/.Y(d))){f=1O(f)}8(f){b[e]=f}H 8(d===e&&d!==\'1s\'){b[e]=w}}8(b.1e&&/-1|5U|5V/.Y(b.1e)){Q b.1e}l b},3u:7(a){p b,1d,13={},$I=$(a);T(b R $.v.1M){1d=$I.11("5W-"+b.21());8(1d!==1l){13[b]=1d}}l 13},2L:7(a){p b={};p c=$.11(a.P,"v");8(c.q.13){b=$.v.1Q(c.q.13[a.u])||{}}l b},3r:7(d,e){$.U(d,7(a,b){8(b===K){Q d[a];l}8(b.3h||b.2A){p c=w;2M(19 b.2A){1z"1k":c=!!$(b.2A,e.P).G;2N;1z"7":c=b.2A.16(e,e);2N}8(c){d[a]=b.3h!==1l?b.3h:w}H{Q d[a]}}});$.U(d,7(a,b){d[a]=$.4n(b)?b(e):b});$.U([\'1G\',\'1e\'],7(){8(d[6]){d[6]=1O(d[6])}});$.U([\'2o\',\'1s\'],7(){p a;8(d[6]){8($.2B(d[6])){d[6]=[1O(d[6][0]),1O(d[6][1])]}H 8(19 d[6]==="1k"){a=d[6].1y(/[\\s,]+/);d[6]=[1O(a[0]),1O(a[1])]}}});8($.v.3M){8(d.1I&&d.1H){d.1s=[d.1I,d.1H];Q d.1I;Q d.1H}8(d.1G&&d.1e){d.2o=[d.1G,d.1e];Q d.1G;Q d.1e}}l d},1Q:7(a){8(19 a==="1k"){p b={};$.U(a.1y(/\\s/),7(){b[6]=w});a=b}l a},5X:7(a,b,c){$.v.1M[a]=b;$.v.M[a]=c!==1l?c:$.v.M[a];8(b.G<3){$.v.4l(a,$.v.1Q(a))}},1M:{14:7(a,b,c){8(!6.4i(c,b)){l"1Z-20"}8(b.4h.21()==="1X"){p d=$(b).W();l d&&d.G>0}8(6.1C(b)){l 6.22(a,b)>0}l $.1A(a).G>0},1F:7(a,b){l 6.N(b)||/^((([a-z]|\\d|[!#\\$%&\'\\*\\+\\-\\/=\\?\\^Z`{\\|}~]|[\\x-\\y\\A-\\B\\C-\\E])+(\\.([a-z]|\\d|[!#\\$%&\'\\*\\+\\-\\/=\\?\\^Z`{\\|}~]|[\\x-\\y\\A-\\B\\C-\\E])+)*)|((\\4o)((((\\2C|\\24)*(\\3i\\4p))?(\\2C|\\24)+)?(([\\4q-\\5Y\\4r\\4s\\5Z-\\60\\4t]|\\61|[\\62-\\63]|[\\64-\\65]|[\\x-\\y\\A-\\B\\C-\\E])|(\\\\([\\4q-\\24\\4r\\4s\\3i-\\4t]|[\\x-\\y\\A-\\B\\C-\\E]))))*(((\\2C|\\24)*(\\3i\\4p))?(\\2C|\\24)+)?(\\4o)))@((([a-z]|\\d|[\\x-\\y\\A-\\B\\C-\\E])|(([a-z]|\\d|[\\x-\\y\\A-\\B\\C-\\E])([a-z]|\\d|-|\\.|Z|~|[\\x-\\y\\A-\\B\\C-\\E])*([a-z]|\\d|[\\x-\\y\\A-\\B\\C-\\E])))\\.)+(([a-z]|[\\x-\\y\\A-\\B\\C-\\E])|(([a-z]|[\\x-\\y\\A-\\B\\C-\\E])([a-z]|\\d|-|\\.|Z|~|[\\x-\\y\\A-\\B\\C-\\E])*([a-z]|[\\x-\\y\\A-\\B\\C-\\E])))$/i.Y(a)},1q:7(a,b){l 6.N(b)||/^(66?|s?67):\\/\\/(((([a-z]|\\d|-|\\.|Z|~|[\\x-\\y\\A-\\B\\C-\\E])|(%[\\26-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:)*@)?(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5]))|((([a-z]|\\d|[\\x-\\y\\A-\\B\\C-\\E])|(([a-z]|\\d|[\\x-\\y\\A-\\B\\C-\\E])([a-z]|\\d|-|\\.|Z|~|[\\x-\\y\\A-\\B\\C-\\E])*([a-z]|\\d|[\\x-\\y\\A-\\B\\C-\\E])))\\.)+(([a-z]|[\\x-\\y\\A-\\B\\C-\\E])|(([a-z]|[\\x-\\y\\A-\\B\\C-\\E])([a-z]|\\d|-|\\.|Z|~|[\\x-\\y\\A-\\B\\C-\\E])*([a-z]|[\\x-\\y\\A-\\B\\C-\\E])))\\.?)(:\\d*)?)(\\/((([a-z]|\\d|-|\\.|Z|~|[\\x-\\y\\A-\\B\\C-\\E])|(%[\\26-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)+(\\/(([a-z]|\\d|-|\\.|Z|~|[\\x-\\y\\A-\\B\\C-\\E])|(%[\\26-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)*)*)?)?(\\?((([a-z]|\\d|-|\\.|Z|~|[\\x-\\y\\A-\\B\\C-\\E])|(%[\\26-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)|[\\68-\\69]|\\/|\\?)*)?(#((([a-z]|\\d|-|\\.|Z|~|[\\x-\\y\\A-\\B\\C-\\E])|(%[\\26-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)|\\/|\\?)*)?$/i.Y(a)},1r:7(a,b){l 6.N(b)||!/6a|6b/.Y(2H 6c(a).6d())},2l:7(a,b){l 6.N(b)||/^\\d{4}[\\/\\-]\\d{1,2}[\\/\\-]\\d{1,2}$/.Y(a)},1j:7(a,b){l 6.N(b)||/^-?(?:\\d+|\\d{1,3}(?:,\\d{3})+)?(?:\\.\\d+)?$/.Y(a)},1V:7(a,b){l 6.N(b)||/^\\d+$/.Y(a)},2m:7(a,b){8(6.N(b)){l"1Z-20"}8(/[^0-9 \\-]+/.Y(a)){l K}p c=0,27=0,2D=K;a=a.1B(/\\D/g,"");T(p n=a.G-1;n>=0;n--){p d=a.6e(n);27=6f(d,10);8(2D){8((27*=2)>9){27-=9}}c+=27;2D=!2D}l(c%10)===0},1G:7(a,b,c){p d=$.2B(a)?a.G:6.22($.1A(a),b);l 6.N(b)||d>=c},1e:7(a,b,c){p d=$.2B(a)?a.G:6.22($.1A(a),b);l 6.N(b)||d<=c},2o:7(a,b,c){p d=$.2B(a)?a.G:6.22($.1A(a),b);l 6.N(b)||(d>=c[0]&&d<=c[1])},1I:7(a,b,c){l 6.N(b)||a>=c},1H:7(a,b,c){l 6.N(b)||a<=c},1s:7(a,b,c){l 6.N(b)||(a>=c[0]&&a<=c[1])},2n:7(a,b,c){p d=$(c);8(6.q.3C){d.6g(".1c-2n").32("6h.1c-2n",7(){$(b).L()})}l a===d.W()},1p:7(f,g,h){8(6.N(g)){l"1Z-20"}p i=6.1Y(g);8(!6.q.M[g.u]){6.q.M[g.u]={}}i.4u=6.q.M[g.u].1p;6.q.M[g.u].1p=i.1u;h=19 h==="1k"&&{1q:h}||h;8(i.3g===f){l i.L}i.3g=f;p j=6;6.4j(g);p k={};k[g.u]=f;$.3j($.J(w,{1q:h,2E:"28",1f:"1c"+g.u,6i:"6j",11:k,1N:7(a){j.q.M[g.u].1p=i.4u;p b=a===w||a==="w";8(b){p c=j.1m;j.36(g);j.1m=c;j.1v.2t(g);Q j.18[g.u];j.1t()}H{p d={};p e=a||j.2y(g,"1p");d[g.u]=i.1u=$.4n(e)?e(f):e;j.18[g.u]=w;j.1t(d)}i.L=b;j.4k(g,b)}},h));l"1J"}}});$.15=$.v.15}(3k));(7($){p d={};8($.4v){$.4v(7(a,Z,b){p c=a.1f;8(a.2E==="28"){8(d[c]){d[c].28()}d[c]=b}})}H{p e=$.3j;$.3j=7(a){p b=("2E"R a?a:$.4w).2E,1f=("1f"R a?a:$.4w).1f;8(b==="28"){8(d[1f]){d[1f].28()}d[1f]=e.2g(6,17);l d[1f]}l e.2g(6,17)}}}(3k));(7($){$.J($.2F,{2a:7(c,d,e){l 6.32(d,7(a){p b=$(a.2c);8(b.2K(c)){l e.2g(b,17)}})}})}(3k));',62,392,'||||||this|function|if|||||||||||||return||||var|settings||||name|validator|true|u00A0|uD7FF||uF900|uFDCF|uFDF0||uFFEF|type|length|else|element|extend|false|valid|messages|optional|Please|form|delete|in|enter|for|each|errorList|val|currentForm|test|_||data|attr|rules|required|format|call|arguments|invalid|typeof|elements|toHide|validate|value|maxlength|port|pendingRequest|errorClass|submitted|number|string|undefined|formSubmitted|add|addClass|remote|url|date|range|showErrors|message|successList|toShow|console|split|case|trim|replace|checkable|findByName|removeClass|email|minlength|max|min|pending|errorMap|not|methods|success|Number|submitButton|normalizeRule|validClass|unhighlight|errorsFor|radio|digits|reset|select|previousValue|dependency|mismatch|toLowerCase|getLength|classRuleSettings|x09||da|nDigit|abort|debug|validateDelegate|submit|target|cancelSubmit|input|focusInvalid|apply|constructor|groups|addWrapper|elementValue|dateISO|creditcard|equalTo|rangelength|labelContainer|containers|currentElements|check|push|objectLength|filter|method|parameters|defaultMessage|wrapper|depends|isArray|x20|bEven|mode|fn|window|new|submitHandler|handle|is|staticRules|switch|break|checked|defaults|errorElement|errorLabelContainer|ignore|hide|lastElement|highlight|than|characters|delegate|eventType|text|checkbox|bind|prepareForm|validationTargetFor|clean|prepareElement|resetForm|null|hideErrors|rulesCache|errors|theregex|showLabel|idOrName|dependTypes|old|param|x0d|ajax|jQuery|selected|novalidate|onsubmit|click|hidden|remove|normalizeRules|classRules|attributeRules|dataRules|init|makeArray|Array|error|errorContainer|ignoreTitle|lastActive|onfocusout|parentNode|field|the|no|between|and|or|equal|to|autoCreateRanges|errorContext|textarea|datetime|focusin|option|invalidHandler|checkForm|triggerHandler|numberOfInvalids|grep|defaultShowErrors|size|try|findLastActive|catch|find|formatAndAdd|id|customDataMessage|msg|customMessage|String|findDefined|strong|parent|validElements|show|invalidElements|html|errorPlacement|nodeName|depend|startRequest|stopRequest|addClassRules|getAttribute|isFunction|x22|x0a|x01|x0b|x0c|x7f|originalMessage|ajaxPrefilter|ajaxSettings|warn|Nothing|can|returning|nothing|hasClass|cancel|formnovalidate|preventDefault|appendTo|removeAttrs|removeAttr|expr|blank|filled|unchecked|prop|unshift|slice|RegExp|label|onfocusin|focusCleanup|blockFocusCleanup|onkeyup|which|onclick|setDefaults|This|fix|address|URL|ISO|only|credit|card|same|again|more|at|least|long|less|greater|prototype|valueCache|on|password|file|search|tel|month|week|time|local|color|focusout|keyup|removeData|visible|focus|trigger|image|disabled|has|assigned|continue|log|Exception|occurred|when|checking|throw|attributes|title|Warning|No|defined|map|wrap|append|insertAfter|boolean|class|get|2147483647|524288|rule|addMethod|x08|x0e|x1f|x21|x23|x5b|x5d|x7e|https|ftp|uE000|uF8FF|Invalid|NaN|Date|toString|charAt|parseInt|unbind|blur|dataType|json'.split('|'),0,{}));
6 |
--------------------------------------------------------------------------------
/static/js/plugins/jquery-validate.min.js:
--------------------------------------------------------------------------------
1 | /* http://plugins.jquery.com/validate */
2 | ;(function(a,b,c,d){var e=['input:not([type]),input[type="color"],input[type="date"],input[type="datetime"],input[type="datetime-local"],input[type="email"],input[type="file"],input[type="hidden"],input[type="month"],input[type="number"],input[type="password"],input[type="range"],input[type="search"],input[type="tel"],input[type="text"],input[type="time"],input[type="url"],input[type="week"],textarea',"select",'input[type="checkbox"],input[type="radio"]'],f=e.join(","),g={},h=function(a,c){var f={pattern:!0,conditional:!0,required:!0},h=b(this),i=h.val()||"",j=h.data("validate"),k=j!==d?g[j]:{},l=h.data("prepare")||k.prepare,m=h.data("pattern")||("regexp"==b.type(k.pattern)?k.pattern:/(?:)/),n=h.attr("data-ignore-case")||h.data("ignoreCase")||k.ignoreCase,o=h.data("mask")||k.mask,p=h.data("conditional")||k.conditional,q=h.data("required"),r=h.data("describedby")||k.describedby,s=h.data("description")||k.description,t=h.data("trim"),u=/^(true|)$/i,v=/^false$/i,s=b.isPlainObject(s)?s:c.description[s]||{};if(q=""!=q?q||!!k.required:!0,t=""!=t?t||!!k.trim:!0,u.test(t)&&(i=b.trim(i)),b.isFunction(l)?i=l.call(h,i)+"":b.isFunction(c.prepare[l])&&(i=c.prepare[l].call(h,i)+""),"regexp"!=b.type(m)&&(n=!v.test(n),m=n?RegExp(m,"i"):RegExp(m)),p!=d)if(b.isFunction(p))f.conditional=!!p.call(h,i,c);else for(var x=p.split(/[\s\t]+/),y=0,z=x.length;z>y;y++)c.conditional.hasOwnProperty(x[y])&&!c.conditional[x[y]].call(h,i,c)&&(f.conditional=!1);if(q=u.test(q),q&&(h.is(e[0]+","+e[1])?!i.length>0&&(f.required=!1):h.is(e[2])&&(h.is("[name]")?0==b('[name="'+h.prop("name")+'"]:checked').length&&(f.required=!1):f.required=h.is(":checked"))),h.is(e[0]))if(m.test(i)){if("keyup"!=a.type&&o!==d){for(var A=i.match(m),B=0,z=A.length;z>B;B++)o=o.replace(RegExp("\\$\\{"+B+"(?::`([^`]*)`)?\\}","g"),A[B]!==d?A[B]:"$1");o=o.replace(/\$\{\d+(?::`([^`]*)`)?\}/g,"$1"),m.test(o)&&h.val(o)}}else q?f.pattern=!1:i.length>0&&(f.pattern=!1);var C=b('[id="'+r+'"]'),D=s.valid;return C.length>0&&"keyup"!=a.type&&(f.required?f.pattern?f.conditional||(D=s.conditional):D=s.pattern:D=s.required,C.html(D||"")),"function"==typeof k.each&&k.each.call(h,a,f,c),c.eachField.call(h,a,f,c),f.required&&f.pattern&&f.conditional?(c.waiAria&&h.prop("aria-invalid",!1),"function"==typeof k.valid&&k.valid.call(h,a,f,c),c.eachValidField.call(h,a,f,c)):(c.waiAria&&h.prop("aria-invalid",!0),"function"==typeof k.invalid&&k.invalid.call(h,a,f,c),c.eachInvalidField.call(h,a,f,c)),f};b.extend({validateExtend:function(a){return b.extend(g,a)},validateSetup:function(c){return b.extend(a,c)}}).fn.extend({validate:function(c){return c=b.extend({},a,c),b(this).validateDestroy().each(function(){var a=b(this);if(a.is("form")){a.data(name,{options:c});var d=a.find(f),g=c.namespace;a.is("[id]")&&(d=d.add('[form="'+a.prop("id")+'"]').filter(f)),d=d.filter(c.filter),c.onKeyup&&d.filter(e[0]).on("keyup."+g,function(a){h.call(this,a,c)}),c.onBlur&&d.on("blur."+g,function(a){h.call(this,a,c)}),c.onChange&&d.on("change."+g,function(a){h.call(this,a,c)}),c.onSubmit&&a.on("submit."+g,function(e){var f=!0;d.each(function(){var a=h.call(this,e,c);a.pattern&&a.conditional&&a.required||(f=!1)}),f?(c.sendForm||e.preventDefault(),b.isFunction(c.valid)&&c.valid.call(a,e,c)):(e.preventDefault(),b.isFunction(c.invalid)&&c.invalid.call(a,e,c))})}})},validateDestroy:function(){var a=b(this),c=a.data(name);if(a.is("form")&&b.isPlainObject(c)&&"string"==typeof c.options.nameSpace){var d=a.removeData(name).find(f).add(a);a.is("[id]")&&(d=d.add(b('[form="'+a.prop("id")+'"]').filter(f))),d.off("."+c.options.nameSpace)}return a}})})({sendForm:!0,waiAria:!0,onSubmit:!0,onKeyup:!1,onBlur:!1,onChange:!1,nameSpace:"validate",conditional:{},prepare:{},description:{},eachField:$.noop,eachInvalidField:$.noop,eachValidField:$.noop,invalid:$.noop,valid:$.noop,filter:"*"},jQuery,window);
--------------------------------------------------------------------------------
/static/js/plugins/masonry-docs.min.js:
--------------------------------------------------------------------------------
1 | (function(t){"use strict";function e(t){return RegExp("(^|\\s+)"+t+"(\\s+|$)")}function i(t,e){var i=n(t,e)?r:o;i(t,e)}var n,o,r;"classList"in document.documentElement?(n=function(t,e){return t.classList.contains(e)},o=function(t,e){t.classList.add(e)},r=function(t,e){t.classList.remove(e)}):(n=function(t,i){return e(i).test(t.className)},o=function(t,e){n(t,e)||(t.className=t.className+" "+e)},r=function(t,i){t.className=t.className.replace(e(i)," ")});var s={hasClass:n,addClass:o,removeClass:r,toggleClass:i,has:n,add:o,remove:r,toggle:i};"function"==typeof define&&define.amd?define(s):t.classie=s})(window),function(t){"use strict";function e(e){var i=t.event;return i.target=i.target||i.srcElement||e,i}var i=document.documentElement,n=function(){};i.addEventListener?n=function(t,e,i){t.addEventListener(e,i,!1)}:i.attachEvent&&(n=function(t,i,n){t[i+n]=n.handleEvent?function(){var i=e(t);n.handleEvent.call(n,i)}:function(){var i=e(t);n.call(t,i)},t.attachEvent("on"+i,t[i+n])});var o=function(){};i.removeEventListener?o=function(t,e,i){t.removeEventListener(e,i,!1)}:i.detachEvent&&(o=function(t,e,i){t.detachEvent("on"+e,t[e+i]);try{delete t[e+i]}catch(n){t[e+i]=void 0}});var r={bind:n,unbind:o};"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r:t.eventie=r}(this),function(t){"use strict";function e(t){"function"==typeof t&&(e.isReady?t():r.push(t))}function i(t){var i="readystatechange"===t.type&&"complete"!==o.readyState;if(!e.isReady&&!i){e.isReady=!0;for(var n=0,s=r.length;s>n;n++){var a=r[n];a()}}}function n(n){return n.bind(o,"DOMContentLoaded",i),n.bind(o,"readystatechange",i),n.bind(t,"load",i),e}var o=t.document,r=[];e.isReady=!1,"function"==typeof define&&define.amd?(e.isReady="function"==typeof requirejs,define(["eventie/eventie"],n)):t.docReady=n(t.eventie)}(this),function(t){"use strict";function e(t){if(t){if("string"==typeof n[t])return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e,o=0,r=i.length;r>o;o++)if(e=i[o]+t,"string"==typeof n[e])return e}}var i="Webkit Moz ms Ms O".split(" "),n=document.documentElement.style;"function"==typeof define&&define.amd?define(function(){return e}):"object"==typeof exports?module.exports=e:t.getStyleProperty=e}(window),function(){"use strict";function t(){}function e(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function i(t){return function(){return this[t].apply(this,arguments)}}var n=t.prototype,o=this,r=o.EventEmitter;n.getListeners=function(t){var e,i,n=this._getEvents();if(t instanceof RegExp){e={};for(i in n)n.hasOwnProperty(i)&&t.test(i)&&(e[i]=n[i])}else e=n[t]||(n[t]=[]);return e},n.flattenListeners=function(t){var e,i=[];for(e=0;t.length>e;e+=1)i.push(t[e].listener);return i},n.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&(e={},e[t]=i),e||i},n.addListener=function(t,i){var n,o=this.getListenersAsObject(t),r="object"==typeof i;for(n in o)o.hasOwnProperty(n)&&-1===e(o[n],i)&&o[n].push(r?i:{listener:i,once:!1});return this},n.on=i("addListener"),n.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},n.once=i("addOnceListener"),n.defineEvent=function(t){return this.getListeners(t),this},n.defineEvents=function(t){for(var e=0;t.length>e;e+=1)this.defineEvent(t[e]);return this},n.removeListener=function(t,i){var n,o,r=this.getListenersAsObject(t);for(o in r)r.hasOwnProperty(o)&&(n=e(r[o],i),-1!==n&&r[o].splice(n,1));return this},n.off=i("removeListener"),n.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},n.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},n.manipulateListeners=function(t,e,i){var n,o,r=t?this.removeListener:this.addListener,s=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(n=i.length;n--;)r.call(this,e,i[n]);else for(n in e)e.hasOwnProperty(n)&&(o=e[n])&&("function"==typeof o?r.call(this,n,o):s.call(this,n,o));return this},n.removeEvent=function(t){var e,i=typeof t,n=this._getEvents();if("string"===i)delete n[t];else if(t instanceof RegExp)for(e in n)n.hasOwnProperty(e)&&t.test(e)&&delete n[e];else delete this._events;return this},n.removeAllListeners=i("removeEvent"),n.emitEvent=function(t,e){var i,n,o,r,s=this.getListenersAsObject(t);for(o in s)if(s.hasOwnProperty(o))for(n=s[o].length;n--;)i=s[o][n],i.once===!0&&this.removeListener(t,i.listener),r=i.listener.apply(this,e||[]),r===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},n.trigger=i("emitEvent"),n.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},n.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},n._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return o.EventEmitter=r,t},"function"==typeof define&&define.amd?define(function(){return t}):"object"==typeof module&&module.exports?module.exports=t:this.EventEmitter=t}.call(this),function(t,e){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(i,n){return e(t,i,n)}):"object"==typeof exports?module.exports=e(t,require("eventEmitter"),require("eventie")):t.imagesLoaded=e(t,t.EventEmitter,t.eventie)}(this,function(t,e,i){"use strict";function n(t,e){for(var i in e)t[i]=e[i];return t}function o(t){return"[object Array]"===d.call(t)}function r(t){var e=[];if(o(t))e=t;else if("number"==typeof t.length)for(var i=0,n=t.length;n>i;i++)e.push(t[i]);else e.push(t);return e}function s(t,e,i){if(!(this instanceof s))return new s(t,e);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=r(t),this.options=n({},this.options),"function"==typeof e?i=e:n(this.options,e),i&&this.on("always",i),this.getImages(),h&&(this.jqDeferred=new h.Deferred);var o=this;setTimeout(function(){o.check()})}function a(t){this.img=t}function u(t){this.src=t,l[t]=this}var h=t.jQuery,c=t.console,p=c!==void 0,d=Object.prototype.toString;s.prototype=new e,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var t=0,e=this.elements.length;e>t;t++){var i=this.elements[t];"IMG"===i.nodeName&&this.addImage(i);for(var n=i.querySelectorAll("img"),o=0,r=n.length;r>o;o++){var s=n[o];this.addImage(s)}}},s.prototype.addImage=function(t){var e=new a(t);this.images.push(e)},s.prototype.check=function(){function t(t,o){return e.options.debug&&p&&c.log("confirm",t,o),e.progress(t),i++,i===n&&e.complete(),!0}var e=this,i=0,n=this.images.length;if(this.hasAnyBroken=!1,!n)return this.complete(),void 0;for(var o=0;n>o;o++){var r=this.images[o];r.on("confirm",t),r.check()}},s.prototype.progress=function(t){this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded;var e=this;setTimeout(function(){e.emit("progress",e,t),e.jqDeferred&&e.jqDeferred.notify&&e.jqDeferred.notify(e,t)})},s.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var e=this;setTimeout(function(){if(e.emit(t,e),e.emit("always",e),e.jqDeferred){var i=e.hasAnyBroken?"reject":"resolve";e.jqDeferred[i](e)}})},h&&(h.fn.imagesLoaded=function(t,e){var i=new s(this,t,e);return i.jqDeferred.promise(h(this))}),a.prototype=new e,a.prototype.check=function(){var t=l[this.img.src]||new u(this.img.src);if(t.isConfirmed)return this.confirm(t.isLoaded,"cached was confirmed"),void 0;if(this.img.complete&&void 0!==this.img.naturalWidth)return this.confirm(0!==this.img.naturalWidth,"naturalWidth"),void 0;var e=this;t.on("confirm",function(t,i){return e.confirm(t.isLoaded,i),!0}),t.check()},a.prototype.confirm=function(t,e){this.isLoaded=t,this.emit("confirm",this,e)};var l={};return u.prototype=new e,u.prototype.check=function(){if(!this.isChecked){var t=new Image;i.bind(t,"load",this),i.bind(t,"error",this),t.src=this.src,this.isChecked=!0}},u.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},u.prototype.onload=function(t){this.confirm(!0,"onload"),this.unbindProxyEvents(t)},u.prototype.onerror=function(t){this.confirm(!1,"onerror"),this.unbindProxyEvents(t)},u.prototype.confirm=function(t,e){this.isConfirmed=!0,this.isLoaded=t,this.emit("confirm",this,e)},u.prototype.unbindProxyEvents=function(t){i.unbind(t.target,"load",this),i.unbind(t.target,"error",this)},s}),function(t){"use strict";function e(){}function i(t){function i(e){e.prototype.option||(e.prototype.option=function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))})}function o(e,i){t.fn[e]=function(o){if("string"==typeof o){for(var s=n.call(arguments,1),a=0,u=this.length;u>a;a++){var h=this[a],c=t.data(h,e);if(c)if(t.isFunction(c[o])&&"_"!==o.charAt(0)){var p=c[o].apply(c,s);if(void 0!==p)return p}else r("no such method '"+o+"' for "+e+" instance");else r("cannot call methods on "+e+" prior to initialization; "+"attempted to call '"+o+"'")}return this}return this.each(function(){var n=t.data(this,e);n?(n.option(o),n._init()):(n=new i(this,o),t.data(this,e,n))})}}if(t){var r="undefined"==typeof console?e:function(t){console.error(t)};return t.bridget=function(t,e){i(e),o(t,e)},t.bridget}}var n=Array.prototype.slice;"function"==typeof define&&define.amd?define(["jquery"],i):i(t.jQuery)}(window),function(t){"use strict";function e(t){var e=parseFloat(t),i=-1===t.indexOf("%")&&!isNaN(e);return i&&e}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0,i=s.length;i>e;e++){var n=s[e];t[n]=0}return t}function n(t){function n(t){if("string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var n=r(t);if("none"===n.display)return i();var o={};o.width=t.offsetWidth,o.height=t.offsetHeight;for(var c=o.isBorderBox=!(!h||!n[h]||"border-box"!==n[h]),p=0,d=s.length;d>p;p++){var l=s[p],f=n[l];f=a(t,f);var m=parseFloat(f);o[l]=isNaN(m)?0:m}var y=o.paddingLeft+o.paddingRight,g=o.paddingTop+o.paddingBottom,v=o.marginLeft+o.marginRight,b=o.marginTop+o.marginBottom,E=o.borderLeftWidth+o.borderRightWidth,w=o.borderTopWidth+o.borderBottomWidth,L=c&&u,S=e(n.width);S!==!1&&(o.width=S+(L?0:y+E));var x=e(n.height);return x!==!1&&(o.height=x+(L?0:g+w)),o.innerWidth=o.width-(y+E),o.innerHeight=o.height-(g+w),o.outerWidth=o.width+v,o.outerHeight=o.height+b,o}}function a(t,e){if(o||-1===e.indexOf("%"))return e;var i=t.style,n=i.left,r=t.runtimeStyle,s=r&&r.left;return s&&(r.left=t.currentStyle.left),i.left=e,e=i.pixelLeft,i.left=n,s&&(r.left=s),e}var u,h=t("boxSizing");return function(){if(h){var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style[h]="border-box";var i=document.body||document.documentElement;i.appendChild(t);var n=r(t);u=200===e(n.width),i.removeChild(t)}}(),n}var o=t.getComputedStyle,r=o?function(t){return o(t,null)}:function(t){return t.currentStyle},s=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define(["get-style-property/get-style-property"],n):"object"==typeof exports?module.exports=n(require("get-style-property")):t.getSize=n(t.getStyleProperty)}(window),function(t,e){"use strict";function i(t,e){return t[a](e)}function n(t){if(!t.parentNode){var e=document.createDocumentFragment();e.appendChild(t)}}function o(t,e){n(t);for(var i=t.parentNode.querySelectorAll(e),o=0,r=i.length;r>o;o++)if(i[o]===t)return!0;return!1}function r(t,e){return n(t),i(t,e)}var s,a=function(){if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],i=0,n=t.length;n>i;i++){var o=t[i],r=o+"MatchesSelector";if(e[r])return r}}();if(a){var u=document.createElement("div"),h=i(u,"div");s=h?i:r}else s=o;"function"==typeof define&&define.amd?define(function(){return s}):window.matchesSelector=s}(this,Element.prototype),function(t){"use strict";function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t){for(var e in t)return!1;return e=null,!0}function n(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function o(t,o,r){function a(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var u=r("transition"),h=r("transform"),c=u&&h,p=!!r("perspective"),d={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[u],l=["transform","transition","transitionDuration","transitionProperty"],f=function(){for(var t={},e=0,i=l.length;i>e;e++){var n=l[e],o=r(n);o&&o!==n&&(t[n]=o)}return t}();e(a.prototype,t.prototype),a.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},a.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},a.prototype.getSize=function(){this.size=o(this.element)},a.prototype.css=function(t){var e=this.element.style;for(var i in t){var n=f[i]||i;e[n]=t[i]}},a.prototype.getPosition=function(){var t=s(this.element),e=this.layout.options,i=e.isOriginLeft,n=e.isOriginTop,o=parseInt(t[i?"left":"right"],10),r=parseInt(t[n?"top":"bottom"],10);o=isNaN(o)?0:o,r=isNaN(r)?0:r;var a=this.layout.size;o-=i?a.paddingLeft:a.paddingRight,r-=n?a.paddingTop:a.paddingBottom,this.position.x=o,this.position.y=r},a.prototype.layoutPosition=function(){var t=this.layout.size,e=this.layout.options,i={};e.isOriginLeft?(i.left=this.position.x+t.paddingLeft+"px",i.right=""):(i.right=this.position.x+t.paddingRight+"px",i.left=""),e.isOriginTop?(i.top=this.position.y+t.paddingTop+"px",i.bottom=""):(i.bottom=this.position.y+t.paddingBottom+"px",i.top=""),this.css(i),this.emitEvent("layout",[this])};var m=p?function(t,e){return"translate3d("+t+"px, "+e+"px, 0)"}:function(t,e){return"translate("+t+"px, "+e+"px)"};a.prototype._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=parseInt(t,10),r=parseInt(e,10),s=o===this.position.x&&r===this.position.y;if(this.setPosition(t,e),s&&!this.isTransitioning)return this.layoutPosition(),void 0;var a=t-i,u=e-n,h={},c=this.layout.options;a=c.isOriginLeft?a:-a,u=c.isOriginTop?u:-u,h.transform=m(a,u),this.transition({to:h,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},a.prototype.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},a.prototype.moveTo=c?a.prototype._transitionTo:a.prototype.goTo,a.prototype.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},a.prototype._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},a.prototype._transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return this._nonTransition(t),void 0;var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var y=h&&n(h)+",opacity";a.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:y,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(d,this,!1))},a.prototype.transition=a.prototype[u?"_transition":"_nonTransition"],a.prototype.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},a.prototype.onotransitionend=function(t){this.ontransitionend(t)};var g={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};a.prototype.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=g[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},a.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(d,this,!1),this.isTransitioning=!1},a.prototype._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var v={transitionProperty:"",transitionDuration:""};return a.prototype.removeTransitionStyles=function(){this.css(v)},a.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.emitEvent("remove",[this])},a.prototype.remove=function(){if(!u||!parseFloat(this.layout.options.transitionDuration))return this.removeElem(),void 0;var t=this;this.on("transitionEnd",function(){return t.removeElem(),!0}),this.hide()},a.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options;this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0})},a.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options;this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:{opacity:function(){this.isHidden&&this.css({display:"none"})}}})},a.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},a}var r=t.getComputedStyle,s=r?function(t){return r(t,null)}:function(t){return t.currentStyle};"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property"],o):(t.Outlayer={},t.Outlayer.Item=o(t.EventEmitter,t.getSize,t.getStyleProperty))}(window),function(t){"use strict";function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t){return"[object Array]"===p.call(t)}function n(t){var e=[];if(i(t))e=t;else if(t&&"number"==typeof t.length)for(var n=0,o=t.length;o>n;n++)e.push(t[n]);else e.push(t);return e}function o(t,e){var i=l(e,t);-1!==i&&e.splice(i,1)}function r(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()}function s(i,s,p,l,f,m){function y(t,i){if("string"==typeof t&&(t=a.querySelector(t)),!t||!d(t))return u&&u.error("Bad "+this.constructor.namespace+" element: "+t),void 0;this.element=t,this.options=e({},this.constructor.defaults),this.option(i);var n=++g;this.element.outlayerGUID=n,v[n]=this,this._create(),this.options.isInitLayout&&this.layout()}var g=0,v={};return y.namespace="outlayer",y.Item=m,y.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},e(y.prototype,p.prototype),y.prototype.option=function(t){e(this.options,t)},y.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),e(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},y.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},y.prototype._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0,r=e.length;r>o;o++){var s=e[o],a=new i(s,this);n.push(a)}return n},y.prototype._filterFindItemElements=function(t){t=n(t);for(var e=this.options.itemSelector,i=[],o=0,r=t.length;r>o;o++){var s=t[o];if(d(s))if(e){f(s,e)&&i.push(s);for(var a=s.querySelectorAll(e),u=0,h=a.length;h>u;u++)i.push(a[u])}else i.push(s)}return i},y.prototype.getItemElements=function(){for(var t=[],e=0,i=this.items.length;i>e;e++)t.push(this.items[e].element);return t},y.prototype.layout=function(){this._resetLayout(),this._manageStamps();var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},y.prototype._init=y.prototype.layout,y.prototype._resetLayout=function(){this.getSize()},y.prototype.getSize=function(){this.size=l(this.element)},y.prototype._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):d(n)&&(i=n),this[t]=i?l(i)[e]:n):this[t]=0},y.prototype.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},y.prototype._getItemsForLayout=function(t){for(var e=[],i=0,n=t.length;n>i;i++){var o=t[i];o.isIgnored||e.push(o)}return e},y.prototype._layoutItems=function(t,e){function i(){n.emitEvent("layoutComplete",[n,t])}var n=this;if(!t||!t.length)return i(),void 0;this._itemsOn(t,"layout",i);for(var o=[],r=0,s=t.length;s>r;r++){var a=t[r],u=this._getItemLayoutPosition(a);u.item=a,u.isInstant=e||a.isLayoutInstant,o.push(u)}this._processLayoutQueue(o)},y.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},y.prototype._processLayoutQueue=function(t){for(var e=0,i=t.length;i>e;e++){var n=t[e];this._positionItem(n.item,n.x,n.y,n.isInstant)}},y.prototype._positionItem=function(t,e,i,n){n?t.goTo(e,i):t.moveTo(e,i)},y.prototype._postLayout=function(){this.resizeContainer()},y.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},y.prototype._getContainerSize=c,y.prototype._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},y.prototype._itemsOn=function(t,e,i){function n(){return o++,o===r&&i.call(s),!0}for(var o=0,r=t.length,s=this,a=0,u=t.length;u>a;a++){var h=t[a];h.on(e,n)}},y.prototype.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},y.prototype.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},y.prototype.stamp=function(t){if(t=this._find(t)){this.stamps=this.stamps.concat(t);for(var e=0,i=t.length;i>e;e++){var n=t[e];this.ignore(n)}}},y.prototype.unstamp=function(t){if(t=this._find(t))for(var e=0,i=t.length;i>e;e++){var n=t[e];o(n,this.stamps),this.unignore(n)}},y.prototype._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n(t)):void 0},y.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var t=0,e=this.stamps.length;e>t;t++){var i=this.stamps[t];this._manageStamp(i)}}},y.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},y.prototype._manageStamp=c,y.prototype._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,n=l(t),o={left:e.left-i.left-n.marginLeft,top:e.top-i.top-n.marginTop,right:i.right-e.right-n.marginRight,bottom:i.bottom-e.bottom-n.marginBottom};return o},y.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},y.prototype.bindResize=function(){this.isResizeBound||(i.bind(t,"resize",this),this.isResizeBound=!0)},y.prototype.unbindResize=function(){this.isResizeBound&&i.unbind(t,"resize",this),this.isResizeBound=!1},y.prototype.onresize=function(){function t(){e.resize(),delete e.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var e=this;this.resizeTimeout=setTimeout(t,100)},y.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},y.prototype.needsResizeLayout=function(){var t=l(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},y.prototype.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},y.prototype.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},y.prototype.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},y.prototype.reveal=function(t){var e=t&&t.length;if(e)for(var i=0;e>i;i++){var n=t[i];n.reveal()}},y.prototype.hide=function(t){var e=t&&t.length;if(e)for(var i=0;e>i;i++){var n=t[i];n.hide()}},y.prototype.getItem=function(t){for(var e=0,i=this.items.length;i>e;e++){var n=this.items[e];if(n.element===t)return n}},y.prototype.getItems=function(t){if(t&&t.length){for(var e=[],i=0,n=t.length;n>i;i++){var o=t[i],r=this.getItem(o);r&&e.push(r)}return e}},y.prototype.remove=function(t){t=n(t);var e=this.getItems(t);if(e&&e.length){this._itemsOn(e,"remove",function(){this.emitEvent("removeComplete",[this,e])});for(var i=0,r=e.length;r>i;i++){var s=e[i];s.remove(),o(s,this.items)}}},y.prototype.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="";for(var e=0,i=this.items.length;i>e;e++){var n=this.items[e];n.destroy()}this.unbindResize(),delete this.element.outlayerGUID,h&&h.removeData(this.element,this.constructor.namespace)},y.data=function(t){var e=t&&t.outlayerGUID;return e&&v[e]},y.create=function(t,i){function n(){y.apply(this,arguments)}return Object.create?n.prototype=Object.create(y.prototype):e(n.prototype,y.prototype),n.prototype.constructor=n,n.defaults=e({},y.defaults),e(n.defaults,i),n.prototype.settings={},n.namespace=t,n.data=y.data,n.Item=function(){m.apply(this,arguments)},n.Item.prototype=new m,s(function(){for(var e=r(t),i=a.querySelectorAll(".js-"+e),o="data-"+e+"-options",s=0,c=i.length;c>s;s++){var p,d=i[s],l=d.getAttribute(o);try{p=l&&JSON.parse(l)}catch(f){u&&u.error("Error parsing "+o+" on "+d.nodeName.toLowerCase()+(d.id?"#"+d.id:"")+": "+f);continue}var m=new n(d,p);h&&h.data(d,t,m)}}),h&&h.bridget&&h.bridget(t,n),n},y.Item=m,y}var a=t.document,u=t.console,h=t.jQuery,c=function(){},p=Object.prototype.toString,d="object"==typeof HTMLElement?function(t){return t instanceof HTMLElement}:function(t){return t&&"object"==typeof t&&1===t.nodeType&&"string"==typeof t.nodeName},l=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i;return-1};"function"==typeof define&&define.amd?define(["eventie/eventie","doc-ready/doc-ready","eventEmitter/EventEmitter","get-size/get-size","matches-selector/matches-selector","./item"],s):t.Outlayer=s(t.eventie,t.docReady,t.EventEmitter,t.getSize,t.matchesSelector,t.Outlayer.Item)}(window),function(t){"use strict";function e(t,e){var n=t.create("masonry");return n.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0);this.maxY=0},n.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}this.columnWidth+=this.gutter,this.cols=Math.floor((this.containerWidth+this.gutter)/this.columnWidth),this.cols=Math.max(this.cols,1)},n.prototype.getContainerWidth=function(){var t=this.options.isFitWidth?this.element.parentNode:this.element,i=e(t);this.containerWidth=i&&i.innerWidth},n.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,n=e&&1>e?"round":"ceil",o=Math[n](t.size.outerWidth/this.columnWidth);o=Math.min(o,this.cols);for(var r=this._getColGroup(o),s=Math.min.apply(Math,r),a=i(r,s),u={x:this.columnWidth*a,y:s},h=s+t.size.outerHeight,c=this.cols+1-r.length,p=0;c>p;p++)this.colYs[a+p]=h;return u},n.prototype._getColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++){var o=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,o)}return e},n.prototype._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this.options.isOriginLeft?n.left:n.right,r=o+i.outerWidth,s=Math.floor(o/this.columnWidth);s=Math.max(0,s);var a=Math.floor(r/this.columnWidth);a-=r%this.columnWidth?0:1,a=Math.min(this.cols-1,a);for(var u=(this.options.isOriginTop?n.top:n.bottom)+i.outerHeight,h=s;a>=h;h++)this.colYs[h]=Math.max(u,this.colYs[h])},n.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this.options.isFitWidth&&(t.width=this._getContainerFitWidth()),t},n.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!==this.containerWidth},n}var i=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,n=t.length;n>i;i++){var o=t[i];if(o===e)return i}return-1};"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):t.Masonry=e(t.Outlayer,t.getSize)}(window),function(t){"use strict";function e(t,e){t[s]=e}var i=t.MD={};i.pages={};var n;docReady(function(){n=document.querySelector("#notification");var t=document.body.getAttribute("data-page");t&&"function"==typeof i[t]&&i[t]()}),i.getSomeItemElements=function(){for(var t=document.createDocumentFragment(),e=[],i=0;3>i;i++){var n=document.createElement("div"),o=Math.random(),r=o>.85?"w4":o>.7?"w2":"",s=Math.random(),a=s>.85?"h4":s>.7?"h2":"";n.className="item "+r+" "+a,t.appendChild(n),e.push(n)}};var o,r=document.documentElement,s=void 0!==r.textContent?"textContent":"innerText",a=getStyleProperty("transition"),u=a?1e3:1500;i.notify=function(t,r){e(n,t),a&&(n.style[a]="none"),n.style.display="block",n.style.opacity="1",r&&(o&&clearTimeout(o),o=setTimeout(i.hideNotify,u))},i.hideNotify=function(){a?(n.style[a]="opacity 1.0s",n.style.opacity="0"):n.style.display="none"}}(window),function(t){"use strict";function e(){var t=new Date,e=t.getMinutes();e=10>e?"0"+e:e;var i=t.getSeconds();return i=10>i?"0"+i:i,[t.getHours(),e,i].join(":")}function i(t){n.notify(t+" at "+e(),!0)}var n=t.MD;n.events=function(){(function(){var t=document.querySelector("#layout-complete-demo .masonry"),e=new Masonry(t,{columnWidth:60});e.on("layoutComplete",function(t,e){i("Masonry layout completed on "+e.length+" items")}),eventie.bind(t,"click",function(t){classie.has(t.target,"item")&&(classie.toggle(t.target,"gigante"),e.layout())})})(),function(){var t=document.querySelector("#remove-complete-demo .masonry"),e=new Masonry(t,{columnWidth:60});e.on("removeComplete",function(t,e){i("Removed "+e.length+" items")}),eventie.bind(t,"click",function(t){classie.has(t.target,"item")&&e.remove(t.target)})}()}}(window),function(t){"use strict";var e=t.MD,i=getStyleProperty("transition"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[i];e.faq=function(){(function(){var t=document.querySelector("#animate-item-size .masonry"),e=new Masonry(t,{columnWidth:60});eventie.bind(t,"click",function(t){var i=t.target;if(classie.has(i,"item-content")){var n=i.parentNode;classie.toggleClass(n,"is-expanded"),e.layout()}})})(),function(){var t=document.querySelector("#animate-item-size-responsive .masonry"),e=new Masonry(t,{columnWidth:".grid-sizer",itemSelector:".item"});eventie.bind(t,"click",function(t){var o=t.target;if(classie.has(o,"item-content")){var r=getSize(o);o.style[i]="none",o.style.width=r.width+"px",o.style.height=r.height+"px";var s=o.parentNode;classie.toggleClass(s,"is-expanded");var a=o.offsetWidth;if(o.style[i]="",i){var u=function(){o.style.width="",o.style.height="",o.removeEventListener(n,u,!1)};o.addEventListener(n,u,!1)}var h=getSize(s);o.style.width=h.width+"px",o.style.height=h.height+"px",a=null,e.layout()}})}()}}(window),function(t){"use strict";function e(){for(var t=[],e=document.createDocumentFragment(),r=a,s=0,u=r.length;u>s;s++){var h=i(r[s]);t.push(h),e.appendChild(h)}imagesLoaded(e).on("progress",function(t,e){var i=e.img.parentNode.parentNode;n.appendChild(i),o.appended(i)
2 | })}function i(t){var e=document.createElement("div");e.className="hero-item has-example is-hidden";var i=document.createElement("a");i.href=t.url;var n=document.createElement("img");n.src=t.image;var o=document.createElement("p");return o.className="example-title",o.textContent=t.title,i.appendChild(n),i.appendChild(o),e.appendChild(i),e}var n,o,r,s=t.MD;s.index=function(){(function(){var t=document.querySelector("#hero");n=t.querySelector(".hero-masonry"),o=new Masonry(n,{itemSelector:".hero-item",columnWidth:".grid-sizer"}),e()})(),r=document.querySelector("#load-more-examples")};var a=[{title:"Erik Johansson",url:"http://erikjohanssonphoto.com/work/imagecats/personal/",image:"http://i.imgur.com/6Lo8oun.jpg"},{title:"Tumblr Staff: Archive",url:"http://staff.tumblr.com/archive",image:"http://i.imgur.com/igjvRa3.jpg"},{title:"Halcyon theme",url:"http://halcyon-theme.tumblr.com/",image:"http://i.imgur.com/A1RSOhg.jpg"},{title:"RESIZE.THATSH.IT",url:"http://resize.thatsh.it/",image:"http://i.imgur.com/00xWxLG.png"},{title:"Vox Media",url:"http://www.voxmedia.com",image:"http://i.imgur.com/xSiTFij.jpg"},{title:"Kristian Hammerstad",url:"http://www.kristianhammerstad.com/",image:"http://i.imgur.com/Zwd7Sch.jpg"},{title:"Loading Effects for Grid Items | Demo 2",url:"http://tympanus.net/Development/GridLoadingEffects/index2.html",image:"http://i.imgur.com/iFBSB1t.jpg"}]}(window),function(t){"use strict";function e(){var t=document.createElement("div"),e=Math.random(),i=Math.random(),n=e>.92?"w4":e>.8?"w3":e>.6?"w2":"",o=i>.85?"h4":i>.6?"h3":i>.35?"h2":"";return t.className="item "+n+" "+o,t}var i=t.MD;i.methods=function(){(function(){var t=document.querySelector("#appended-demo"),i=t.querySelector(".masonry"),n=t.querySelector("button"),o=new Masonry(i,{columnWidth:60});eventie.bind(n,"click",function(){for(var t=[],n=document.createDocumentFragment(),r=0;3>r;r++){var s=e();n.appendChild(s),t.push(s)}i.appendChild(n),o.appended(t)})})(),function(){var t=document.querySelector("#destroy-demo"),e=t.querySelector(".masonry"),i=t.querySelector("button"),n=new Masonry(e,{columnWidth:60}),o=!0;eventie.bind(i,"click",function(){o?n.destroy():n=new Masonry(e),o=!o})}(),function(){var t=document.querySelector("#layout-demo .masonry"),e=new Masonry(t,{columnWidth:60});eventie.bind(t,"click",function(t){classie.has(t.target,"item")&&(classie.toggle(t.target,"gigante"),e.layout())})}(),function(){var t=document.querySelector("#prepended-demo"),i=t.querySelector(".masonry"),n=t.querySelector("button"),o=new Masonry(i,{columnWidth:60});eventie.bind(n,"click",function(){for(var t=[],n=document.createDocumentFragment(),r=0;3>r;r++){var s=e();n.appendChild(s),t.push(s)}i.insertBefore(n,i.firstChild),o.prepended(t)})}(),function(){var t=document.querySelector("#stamp-demo"),e=t.querySelector(".stamp"),i=t.querySelector("button"),n=new Masonry(t.querySelector(".masonry"),{columnWidth:60,itemSelector:".item"}),o=!1;eventie.bind(i,"click",function(){o?n.unstamp(e):n.stamp(e),n.layout(),o=!o})}(),function(){var t=document.querySelector("#remove-demo .masonry"),e=new Masonry(t,{columnWidth:60});eventie.bind(t,"click",function(t){classie.has(t.target,"item")&&(e.remove(t.target),e.layout())})}()}}(window);
--------------------------------------------------------------------------------
/static/json/blog_articles.json:
--------------------------------------------------------------------------------
1 | {
2 | "code": 200,
3 | "msg":"success",
4 | "data":{
5 | "article_list":[{
6 | "date":"1天之前",
7 | "title":"jsonp跨域实践(附其他实现跨域的方法)",
8 | "content":"面试中常常会问到如何使用jsonp跨域(jsonp跨域的原理是什么),这篇文章就给大家介绍一下相关的知识,如有不对,麻烦指出 ~",
9 | "desc":"web前端系列",
10 | "img":"../../static/img/blog/pic-vue.png"
11 | },{
12 | "date":"5天之前",
13 | "title":"vue.js+webpack 实践",
14 | "content":"随着前端的快速发展,非常多的js框架被应用到项目中。在比较了vue.js、angular.js以及react后,决定动手使用vue.js搭建一个网站当做学习,主要是想用它的组件化及路由。",
15 | "desc":"web前端系列",
16 | "img":"../../static/img/blog/pic-cannot-be-found.png"
17 | },{
18 | "date":"大约1个月之前",
19 | "title":"Lantern—无需任何配置翻墙",
20 | "content":"今天直奔主题,我们该如何采用最便捷的方式实现翻墙。",
21 | "desc":"工具系列",
22 | "img":"../../static/img/blog/pic-lattern.png"
23 | }
24 | ]
25 | }
26 | }
--------------------------------------------------------------------------------
/static/json/blog_index_tags.json:
--------------------------------------------------------------------------------
1 | {
2 | "code":200,
3 | "msg":"success",
4 | "data":{
5 | "tags":["前端","vue.js","webpack","工具","git"]
6 | }
7 | }
--------------------------------------------------------------------------------
/static/json/works.json:
--------------------------------------------------------------------------------
1 | {
2 | "code":200,
3 | "msg":"success",
4 | "data":{
5 | "works":[{
6 | "pic-desc":"",
7 | "pic-path":"../lib/img/blog/pic-vue.png"
8 | },{
9 | "pic-desc":"",
10 | "pic-path":"../lib/img/blog/pic-vue.png"
11 | }
12 | ]
13 | }
14 | }
--------------------------------------------------------------------------------
/test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | coderYin
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------