├── .editorconfig
├── .eslintrc.js
├── .github
└── ISSUE_TEMPLATE.md
├── .gitignore
├── .travis.yml
├── LICENSE
├── README.md
├── about.html
├── appveyor.yml
├── css
├── jquery-impromptu.css
└── main.css
├── images
├── icon_add.png
├── icon_add_2x.png
├── icon_add_active.png
├── icon_add_active_2x.png
├── icon_add_hover.png
├── icon_add_hover_2x.png
├── icon_close.png
├── icon_close_2x.png
├── icon_close_active.png
├── icon_close_active_2x.png
├── icon_close_hover.png
├── icon_close_hover_2x.png
├── icon_close_mac.png
├── icon_close_mac_2x.png
├── icon_folder.png
├── icon_folder_2x.png
├── icon_folder_active.png
├── icon_folder_active_2x.png
├── icon_folder_hover.png
├── icon_folder_hover_2x.png
├── icon_fullscreen_mac.png
├── icon_fullscreen_mac_2x.png
├── icon_maximize.png
├── icon_maximize_2x.png
├── icon_maximize_active.png
├── icon_maximize_active_2x.png
├── icon_maximize_hover.png
├── icon_maximize_hover_2x.png
├── icon_minimize.png
├── icon_minimize_2x.png
├── icon_minimize_active.png
├── icon_minimize_active_2x.png
├── icon_minimize_hover.png
├── icon_minimize_hover_2x.png
├── icon_minimize_mac.png
├── icon_minimize_mac_2x.png
├── icon_preference.png
├── icon_preference_2x.png
├── icon_preference_active.png
├── icon_preference_active_2x.png
├── icon_preference_hover.png
├── icon_preference_hover_2x.png
├── icon_remove.png
├── icon_remove_2x.png
├── icon_remove_active.png
├── icon_remove_active_2x.png
├── icon_remove_hover.png
├── icon_remove_hover_2x.png
├── icon_restore.png
├── icon_restore_2x.png
├── icon_restore_active.png
├── icon_restore_active_2x.png
├── icon_restore_hover.png
├── icon_restore_hover_2x.png
├── icon_restore_mac.png
├── icon_restore_mac_2x.png
├── logo.icns
├── logo.ico
├── logo.png
├── logo_2x.png
├── logo_tray.png
├── logo_tray@2x.png
├── logo_tray_close.png
├── logo_tray_close@2x.png
├── logo_tray_compass.png
├── logo_tray_compass@2x.png
├── logo_tray_error.png
├── logo_tray_error@2x.png
├── logo_tray_windows.png
├── logo_tray_windows@2x.png
├── welcome_logo.png
└── welcome_logo_2x.png
├── index.html
├── js
├── jquery-impromptu.js
└── jquery.min.js
├── main.js
├── package.json
└── src
├── about.js
├── app.js
├── common.js
├── menu.js
└── tray.js
/.editorconfig:
--------------------------------------------------------------------------------
1 | # EditorConfig is awesome: http://EditorConfig.org
2 |
3 | # top-most EditorConfig file
4 | root = true
5 |
6 | # Unix-style newlines with a newline ending every file
7 | [*]
8 | end_of_line = lf
9 | insert_final_newline = false
10 |
11 | # Matches multiple files with brace expansion notation
12 | # Set default charset
13 | charset = utf-8
14 |
15 | # Tab indentation (no size specified)
16 | indent_style = space
17 | indent_size = 4
18 |
19 | # Others
20 | trim_trailing_whitespace = true
21 |
--------------------------------------------------------------------------------
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | "env": {
3 | "node": true,
4 | "commonjs": true,
5 | "es6": true
6 | },
7 | "extends": "eslint:recommended",
8 | "globals": {
9 | "$": false,
10 | "electron": false,
11 | "__dirname": false,
12 | "remote": false,
13 | "process": false
14 | },
15 | "parserOptions": {
16 | "sourceType": "module"
17 | },
18 | "rules": {
19 | "no-console": 0,
20 | "accessor-pairs": "error",
21 | "array-bracket-spacing": [
22 | "error",
23 | "never"
24 | ],
25 | "array-callback-return": "error",
26 | "arrow-body-style": "error",
27 | "arrow-parens": "error",
28 | "arrow-spacing": "error",
29 | "block-scoped-var": "error",
30 | "block-spacing": "error",
31 | "brace-style": [
32 | "error",
33 | "1tbs"
34 | ],
35 | "callback-return": "error",
36 | "camelcase": "error",
37 | "comma-spacing": "off",
38 | "comma-style": [
39 | "error",
40 | "last"
41 | ],
42 | "complexity": "error",
43 | "computed-property-spacing": [
44 | "error",
45 | "never"
46 | ],
47 | "consistent-return": "error",
48 | "consistent-this": "error",
49 | "curly": "error",
50 | "default-case": "error",
51 | "dot-location": "error",
52 | "dot-notation": "off",
53 | "eol-last": "error",
54 | "eqeqeq": "off",
55 | "func-names": "off",
56 | "func-style": [
57 | "error",
58 | "declaration"
59 | ],
60 | "generator-star-spacing": "error",
61 | "global-require": "off",
62 | "guard-for-in": "off",
63 | "handle-callback-err": "error",
64 | "id-blacklist": "error",
65 | "id-length": "off",
66 | "id-match": "error",
67 | "indent": "error",
68 | "init-declarations": "off",
69 | "jsx-quotes": "error",
70 | "key-spacing": "off",
71 | "keyword-spacing": "off",
72 | "linebreak-style": [
73 | "error",
74 | "unix"
75 | ],
76 | "lines-around-comment": "error",
77 | "max-depth": "error",
78 | "max-len": "off",
79 | "max-nested-callbacks": "error",
80 | "max-params": "off",
81 | "max-statements": "off",
82 | "max-statements-per-line": "error",
83 | "new-cap": "error",
84 | "new-parens": "error",
85 | "newline-after-var": "off",
86 | "newline-before-return": "off",
87 | "newline-per-chained-call": "error",
88 | "no-alert": "off",
89 | "no-array-constructor": "error",
90 | "no-bitwise": "error",
91 | "no-caller": "error",
92 | "no-catch-shadow": "error",
93 | "no-confusing-arrow": "error",
94 | "no-continue": "error",
95 | "no-div-regex": "error",
96 | "no-duplicate-imports": "error",
97 | "no-else-return": "error",
98 | "no-empty-function": "error",
99 | "no-eq-null": "error",
100 | "no-eval": "error",
101 | "no-extend-native": "error",
102 | "no-extra-bind": "error",
103 | "no-extra-label": "error",
104 | "no-extra-parens": "error",
105 | "no-floating-decimal": "error",
106 | "no-implicit-coercion": "error",
107 | "no-implicit-globals": "error",
108 | "no-implied-eval": "error",
109 | "no-inline-comments": "off",
110 | "no-invalid-this": "off",
111 | "no-iterator": "error",
112 | "no-label-var": "error",
113 | "no-labels": "error",
114 | "no-lone-blocks": "error",
115 | "no-lonely-if": "error",
116 | "no-loop-func": "error",
117 | "no-magic-numbers": "off",
118 | "no-mixed-requires": "error",
119 | "no-multi-spaces": "error",
120 | "no-multi-str": "error",
121 | "no-multiple-empty-lines": "error",
122 | "no-native-reassign": "error",
123 | "no-negated-condition": "off",
124 | "no-nested-ternary": "error",
125 | "no-new": "error",
126 | "no-new-func": "error",
127 | "no-new-object": "error",
128 | "no-new-require": "error",
129 | "no-new-wrappers": "error",
130 | "no-octal-escape": "error",
131 | "no-param-reassign": "off",
132 | "no-path-concat": "off",
133 | "no-plusplus": "error",
134 | "no-process-env": "error",
135 | "no-process-exit": "error",
136 | "no-proto": "error",
137 | "no-restricted-globals": "error",
138 | "no-restricted-imports": "error",
139 | "no-restricted-modules": "error",
140 | "no-restricted-syntax": "error",
141 | "no-return-assign": "error",
142 | "no-script-url": "error",
143 | "no-self-compare": "error",
144 | "no-sequences": "error",
145 | "no-shadow": "error",
146 | "no-shadow-restricted-names": "error",
147 | "no-spaced-func": "error",
148 | "no-sync": "off",
149 | "no-ternary": "off",
150 | "no-throw-literal": "error",
151 | "no-trailing-spaces": "off",
152 | "no-undef-init": "error",
153 | "no-undefined": "error",
154 | "no-underscore-dangle": "error",
155 | "no-unmodified-loop-condition": "error",
156 | "no-unneeded-ternary": [
157 | "error",
158 | {
159 | "defaultAssignment": true
160 | }
161 | ],
162 | "no-unsafe-finally": "error",
163 | "no-use-before-define": "off",
164 | "no-useless-call": "error",
165 | "no-useless-computed-key": "error",
166 | "no-useless-concat": "error",
167 | "no-useless-constructor": "error",
168 | "no-useless-escape": "off",
169 | "no-var": "off",
170 | "no-void": "error",
171 | "no-warning-comments": "error",
172 | "no-whitespace-before-property": "error",
173 | "no-with": "error",
174 | "object-curly-spacing": "off",
175 | "object-property-newline": [
176 | "error",
177 | {
178 | "allowMultiplePropertiesPerLine": true
179 | }
180 | ],
181 | "object-shorthand": "off",
182 | "one-var": "off",
183 | "one-var-declaration-per-line": "error",
184 | "operator-assignment": [
185 | "error",
186 | "always"
187 | ],
188 | "operator-linebreak": "error",
189 | "padded-blocks": "off",
190 | "prefer-arrow-callback": "off",
191 | "prefer-const": "off",
192 | "prefer-reflect": "off",
193 | "prefer-rest-params": "error",
194 | "prefer-spread": "error",
195 | "prefer-template": "off",
196 | "quote-props": "off",
197 | "quotes": "off",
198 | "radix": "error",
199 | "require-jsdoc": "off",
200 | "require-yield": "error",
201 | "semi": "off",
202 | "semi-spacing": "error",
203 | "sort-imports": "error",
204 | "sort-vars": "error",
205 | "space-before-blocks": "off",
206 | "space-before-function-paren": "off",
207 | "space-in-parens": [
208 | "error",
209 | "never"
210 | ],
211 | "space-infix-ops": "error",
212 | "space-unary-ops": "error",
213 | "spaced-comment": "off",
214 | "strict": "off",
215 | "template-curly-spacing": [
216 | "error",
217 | "never"
218 | ],
219 | "valid-jsdoc": "error",
220 | "vars-on-top": "off",
221 | "wrap-iife": "error",
222 | "wrap-regex": "error",
223 | "yield-star-spacing": "error",
224 | "yoda": [
225 | "error",
226 | "never"
227 | ]
228 | }
229 | };
230 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | 在提交 Issues 时,请尽量添加以下信息,这将有助于你的 Issues 能更及时、更妥当地被回复和解决。另外,可以检查你所运行的 QMUI Web 与 QMUI Web Desktop 版本是否为 **最新版本**,因为问题可能已经被修复。
2 |
3 | 以上为提交 Issues 的模板说明文字,提交 Issues 时请删除。
4 |
5 | ----
6 |
7 | ### 运行环境 ###
8 |
9 | - [x] 操作系统版本:`macOS (10.x)` / `Windows (7/8/10)`
10 | - [x] QMUI Web Desktop 版本:`1.x.x`
11 | - [x] QMUI Web 版本:`1.x.x`
12 | - [x] Node.js 版本:`4.x.x`
13 |
14 | ### 具体问题描述 ###
15 |
16 | #### 问题截图 ####
17 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 |
6 | # Runtime data
7 | pids
8 | *.pid
9 | *.seed
10 | *.pid.lock
11 |
12 | # Directory for instrumented libs generated by jscoverage/JSCover
13 | lib-cov
14 |
15 | # Coverage directory used by tools like istanbul
16 | coverage
17 |
18 | # nyc test coverage
19 | .nyc_output
20 |
21 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
22 | .grunt
23 |
24 | # node-waf configuration
25 | .lock-wscript
26 |
27 | # Compiled binary addons (http://nodejs.org/api/addons.html)
28 | build/Release
29 | dist
30 |
31 | # Dependency directories
32 | node_modules
33 | jspm_packages
34 |
35 | # Optional npm cache directory
36 | .npm
37 |
38 | # Optional eslint cache
39 | .eslintcache
40 |
41 | # Optional REPL history
42 | .node_repl_history
43 |
44 | # Output of 'npm pack'
45 | *.tgz
46 |
47 | #Others
48 | .DS_Store
49 | .idea
50 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | cache:
3 | directories:
4 | - node_modules
5 | node_js:
6 | - "6.0"
7 | - "7.0"
8 | - "8.0"
9 | - "stable"
10 | before_script:
11 | - npm install
12 | script:
13 | - npm run build:mac
14 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Tencent is pleased to support the open source community by making QMUI Web Desktop available.
2 | Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
3 | If you have downloaded a copy of the QMUI Web Desktop binary from Tencent,
4 | please note that the QMUI Web Desktop binary is licensed under the MIT License.
5 | If you have downloaded a copy of the QMUI Web Desktop source code from Tencent,
6 | please note that QMUI Web Desktop source code is licensed under the MIT License.
7 | Your integration of QMUI Web Desktop into your own projects may require compliance with the MIT License.
8 | A copy of the MIT License is included in this file.
9 |
10 |
11 | Terms of the MIT License:
12 | --------------------------------------------------------------------
13 |
14 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
15 | associated documentation files (the "Software"), to deal in the Software without restriction,
16 | including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
17 | and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
18 |
19 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
20 |
21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
22 | INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 |
26 | Other dependencies and licenses:
27 |
28 | Open Source Software Licensed Under BSD-2:
29 | ----------------------------------------------------------------------------------------
30 | 1. electron-packager v. 7.7.0
31 | Copyright (c) 2015 Max Ogden and other contributors
32 |
33 | Terms of the BSD-2 License:
34 | --------------------------------------------------------------------
35 | Redistribution and use in source and binary forms, with or without modification,
36 | are permitted provided that the following conditions are met:
37 |
38 | Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
39 |
40 | Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
41 | the following disclaimer in the documentation and/or other materials provided with the distribution.
42 |
43 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
44 | INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
45 | IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
46 | OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
47 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
48 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
49 | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
50 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # QMUI Web Desktop [](https://github.com/Tencent/QMUI_Web_Desktop/ "Version Number")
2 | > 基于 [QMUI Web](https://github.com/Tencent/qmui_web) 的桌面 App,它可以管理基于 QMUI Web 进行开发的项目,通过 GUI 界面处理 QMUI Web 的服务开启/关闭,使框架的使用变得更加便捷,并提供了编译提醒,出错提醒,进程关闭提醒等额外的功能。
3 |
4 | [](https://travis-ci.org/Tencent/QMUI_Web_Desktop "Build Status")
5 | [](https://ci.appveyor.com/project/kayo5994/qmui-web-desktop)
6 | [](https://ci.appveyor.com/project/QMUI/QMUI_Web_Desktop "devDependencies")
7 | [](https://github.com/QMUI "QMUI Team")
8 | [](http://opensource.org/licenses/MIT "Feel free to contribute.")
9 |
10 | 详细介绍及文档请浏览:[QMUI Web 官网](http://qmuiteam.com/web)
11 |
12 | ## 下载使用
13 | QMUI Web Desktop 支持 macOS 与 Windows 平台。
14 |
15 | 下载:[Github Release 下载](https://github.com/Tencent/QMUI_Web_Desktop/releases)或[官网下载](http://qmuiteam.com/web/page/index.html#downloadDirect)
16 |
17 | ## 界面预览
18 |
19 |
--------------------------------------------------------------------------------
/about.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 关于
6 |
8 |
9 |
10 |
11 |
12 |
13 |
QMUI Web Desktop
14 |
Version
15 |
管理基于 QMUI Web 的项目的 App
16 |
17 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/appveyor.yml:
--------------------------------------------------------------------------------
1 | # AppVeyor file
2 | # http://www.appveyor.com/docs/appveyor-yml
3 |
4 | version: "{build}"
5 |
6 | platform:
7 | - x64
8 |
9 | environment:
10 | nodejs_version: "8"
11 |
12 | # Install scripts. (runs after repo cloning)
13 | install:
14 | - ps: Install-Product node $env:nodejs_version $env:platform
15 | # install modules
16 | - npm install
17 |
18 | # Post-install test scripts.
19 | test_script:
20 | # Output useful info for debugging.
21 | - node --version
22 | - npm --version
23 | # run tests
24 | - npm run build:win
25 |
26 | # Don't actually build.
27 | build: off
28 |
29 | cache:
30 | - C:\Users\appveyor\AppData\Roaming\npm-cache -> package.json # npm cache
31 | - node_modules -> package.json # local npm modules
--------------------------------------------------------------------------------
/css/jquery-impromptu.css:
--------------------------------------------------------------------------------
1 | .jqifade{
2 | position: absolute;
3 | background-color: #777777;
4 | }
5 | iframe.jqifade{
6 | display:block;
7 | z-index:-1;
8 | }
9 | div.jqi{
10 | width: 400px;
11 | max-width:90%;
12 | font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
13 | position: absolute;
14 | background-color: #ffffff;
15 | font-size: 11px;
16 | text-align: left;
17 | border: solid 1px #eeeeee;
18 | border-radius: 6px;
19 | -moz-border-radius: 6px;
20 | -webkit-border-radius: 6px;
21 | padding: 7px;
22 | }
23 | div.jqi .jqicontainer{
24 | }
25 | div.jqi .jqiclose{
26 | position: absolute;
27 | top: 4px; right: -2px;
28 | width: 18px;
29 | cursor: default;
30 | color: #bbbbbb;
31 | font-weight: bold;
32 | }
33 | div.jqi .jqistate{
34 | background-color: #fff;
35 | }
36 | div.jqi .jqititle{
37 | padding: 5px 10px;
38 | font-size: 16px;
39 | line-height: 20px;
40 | border-bottom: solid 1px #eeeeee;
41 | }
42 | div.jqi .jqimessage{
43 | padding: 10px;
44 | line-height: 20px;
45 | color: #444444;
46 | overflow: auto;
47 | }
48 | div.jqi .jqibuttonshide{
49 | display: none;
50 | }
51 | div.jqi .jqibuttons{
52 | text-align: right;
53 | margin: 0 -7px -7px -7px;
54 | border-top: solid 1px #e4e4e4;
55 | background-color: #f4f4f4;
56 | border-radius: 0 0 6px 6px;
57 | -moz-border-radius: 0 0 6px 6px;
58 | -webkit-border-radius: 0 0 6px 6px;
59 | }
60 | div.jqi .jqibuttons button{
61 | margin: 0;
62 | padding: 15px 20px;
63 | background-color: transparent;
64 | font-weight: normal;
65 | border: none;
66 | border-left: solid 1px #e4e4e4;
67 | color: #777;
68 | font-weight: bold;
69 | font-size: 12px;
70 | }
71 | div.jqi .jqibuttons button.jqidefaultbutton{
72 | color: #489afe;
73 | }
74 | div.jqi .jqibuttons button:hover,
75 | div.jqi .jqibuttons button:focus{
76 | color: #287ade;
77 | outline: none;
78 | }
79 | div.jqi .jqibuttons button[disabled]{
80 | color: #aaa;
81 | }
82 | .jqiwarning .jqi .jqibuttons{
83 | background-color: #b95656;
84 | }
85 |
86 | /* sub states */
87 | div.jqi .jqiparentstate::after{
88 | background-color: #777;
89 | opacity: 0.6;
90 | filter: alpha(opacity=60);
91 | content: '';
92 | position: absolute;
93 | top:0;left:0;bottom:0;right:0;
94 | border-radius: 6px;
95 | -moz-border-radius: 6px;
96 | -webkit-border-radius: 6px;
97 | }
98 | div.jqi .jqisubstate{
99 | position: absolute;
100 | top:0;
101 | left: 20%;
102 | width: 60%;
103 | padding: 7px;
104 | border: solid 1px #eeeeee;
105 | border-top: none;
106 | border-radius: 0 0 6px 6px;
107 | -moz-border-radius: 0 0 6px 6px;
108 | -webkit-border-radius: 0 0 6px 6px;
109 | }
110 | div.jqi .jqisubstate .jqibuttons button{
111 | padding: 10px 18px;
112 | }
113 |
114 | /* arrows for tooltips/tours */
115 | .jqi .jqiarrow{ position: absolute; height: 0; width:0; line-height: 0; font-size: 0; border: solid 10px transparent;}
116 |
117 | .jqi .jqiarrowtl{ left: 10px; top: -20px; border-bottom-color: #ffffff; }
118 | .jqi .jqiarrowtc{ left: 50%; top: -20px; border-bottom-color: #ffffff; margin-left: -10px; }
119 | .jqi .jqiarrowtr{ right: 10px; top: -20px; border-bottom-color: #ffffff; }
120 |
121 | .jqi .jqiarrowbl{ left: 10px; bottom: -20px; border-top-color: #ffffff; }
122 | .jqi .jqiarrowbc{ left: 50%; bottom: -20px; border-top-color: #ffffff; margin-left: -10px; }
123 | .jqi .jqiarrowbr{ right: 10px; bottom: -20px; border-top-color: #ffffff; }
124 |
125 | .jqi .jqiarrowlt{ left: -20px; top: 10px; border-right-color: #ffffff; }
126 | .jqi .jqiarrowlm{ left: -20px; top: 50%; border-right-color: #ffffff; margin-top: -10px; }
127 | .jqi .jqiarrowlb{ left: -20px; bottom: 10px; border-right-color: #ffffff; }
128 |
129 | .jqi .jqiarrowrt{ right: -20px; top: 10px; border-left-color: #ffffff; }
130 | .jqi .jqiarrowrm{ right: -20px; top: 50%; border-left-color: #ffffff; margin-top: -10px; }
131 | .jqi .jqiarrowrb{ right: -20px; bottom: 10px; border-left-color: #ffffff; }
132 |
133 |
--------------------------------------------------------------------------------
/css/main.css:
--------------------------------------------------------------------------------
1 | /**
2 | * main.css 管理端总样式文件
3 | * @author Kayo
4 | * @date 2016-06-15
5 | *
6 | * #reset CSS Reset
7 | * #common 常用公共样式
8 | * #frame 外层大框架
9 | * #welcome 欢迎页
10 | * #project 项目列表
11 | * #operation 操作区域
12 | * #setting 设置界面
13 | * #about 关于
14 | * #retina Retina 适配
15 | */
16 |
17 | /* #reset CSS Reset */
18 | body, dl, dd, h1, h2, h3, h4, h5, h6, p, pre, form, fieldset, legend {
19 | margin: 0;
20 | }
21 |
22 | ul, ol, fieldset {
23 | margin: 0;
24 | padding: 0;
25 | }
26 |
27 | th, td {
28 | padding: 0;
29 | }
30 |
31 | table {
32 | font-size: inherit;
33 | }
34 |
35 | fieldset, img {
36 | border: none;
37 | }
38 |
39 | ul, ol, li {
40 | list-style: none;
41 | }
42 |
43 | body {
44 | font-size: 14px;
45 | line-height: 1;
46 | color: #000;
47 | }
48 |
49 | h1, h2, h3, h4 {
50 | font-size: 18px;
51 | font-weight: normal;
52 | }
53 |
54 | body, input, textarea, select, button {
55 | outline: none;
56 | -webkit-text-size-adjust: none;
57 | }
58 |
59 | input, textarea, select, button {
60 | font-size: inherit;
61 | -webkit-tap-highlight-color: transparent;
62 | }
63 |
64 | a {
65 | color: #4475A7;
66 | text-decoration: none;
67 | -webkit-tap-highlight-color: #4475A7;
68 | }
69 |
70 | :focus {
71 | outline: none;
72 | }
73 |
74 | /* #html5 HTML5 元素的支持 */
75 | article, aside, details,
76 | figcaption, figure,
77 | footer, header, hgroup,
78 | main, nav, section,
79 | summary {
80 | display: block;
81 | }
82 |
83 | audio, canvas, video {
84 | display: inline-block;
85 | }
86 |
87 | /* #common 常用公共样式 */
88 | .qw_hide {
89 | display: none !important;
90 | }
91 |
92 | .qw_clear:after {
93 | clear: both;
94 | content: ".";
95 | display: block;
96 | line-height: 0;
97 | font-size: 0;
98 | visibility: hidden;
99 | overflow: hidden;
100 | }
101 |
102 | .qw_icon {
103 | display: inline-block;
104 | font-size: 0;
105 | background-repeat: no-repeat;
106 | background-size: 100%;
107 | }
108 |
109 | .qw_icon_Add,
110 | .qw_icon_Remove,
111 | .qw_icon_Setting {
112 | height: 32px;
113 | width: 32px;
114 | }
115 |
116 | .qw_icon_Add {
117 | background-image: url(../images/icon_add.png);
118 | }
119 |
120 | .qw_icon_Remove {
121 | background-image: url(../images/icon_remove.png);
122 | }
123 |
124 | .qw_icon_Setting {
125 | background-image: url(../images/icon_preference.png);
126 | }
127 |
128 | .qw_icon_WelcomeLogo {
129 | width: 160px;
130 | height: 216px;
131 | background-image: url(../images/welcome_logo.png);
132 | }
133 |
134 | .qw_icon_Logo {
135 | height: 80px;
136 | width: 80px;
137 | background-image: url(../images/logo.png);
138 | }
139 |
140 | .qw_icon_Folder {
141 | width: 32px;
142 | height: 32px;
143 | background-image: url(../images/icon_folder.png);
144 | }
145 |
146 | .qw_label {
147 | font-size: 14px;
148 | line-height: 1.5;
149 | }
150 |
151 | .qw_checkbox {
152 | width: 12px;
153 | height: 12px;
154 | margin: 0;
155 | }
156 |
157 | .qw_label .qw_checkbox {
158 | margin-right: 4px;
159 | vertical-align: 1px;
160 | }
161 |
162 | .qw_label span {
163 | vertical-align: top;
164 | }
165 |
166 | /* #frame 外层大框架 */
167 | html {
168 | height: 100%;
169 | }
170 |
171 | .frame_wrap {
172 | position: relative;
173 | height: 100%;
174 | padding-bottom: 292px;
175 | background-color: #fff;
176 | font-family: "Helvetica Neue", "Arial", "PingFang SC", "Hiragino Sans GB", "STHeiti", "Microsoft YaHei", sans-serif;
177 | box-sizing: border-box;
178 | -webkit-user-select: none;
179 | user-select: none;
180 | -webkit-font-smoothing: antialiased;
181 | }
182 |
183 | .frame_statusBar {
184 | position: fixed;
185 | top: 0;
186 | left: 0;
187 | z-index: 90;
188 | width: 100%;
189 | padding: 7px 10px 7px 7px;
190 | box-sizing: border-box;
191 | -webkit-app-region: drag;
192 | }
193 |
194 | .frame_statusBar_inner {
195 | display: inline-block;
196 | }
197 |
198 | .frame_statusBar:after {
199 | clear: both;
200 | content: ".";
201 | display: block;
202 | line-height: 0;
203 | font-size: 0;
204 | visibility: hidden;
205 | overflow: hidden;
206 | }
207 |
208 | .frame_statusBar_btn {
209 | -webkit-app-region: no-drag;
210 | padding: 3px;
211 | }
212 |
213 | .frame_statusBar_btn_icon {
214 | display: block;
215 | background-repeat: no-repeat;
216 | background-position: center;
217 | background-size: 100%;
218 | }
219 |
220 | .qw_macOS .frame_statusBar_btn {
221 | float: left;
222 | margin-right: 2px;
223 | }
224 |
225 | .qw_macOS .frame_statusBar_btn_icon {
226 | height: 12px;
227 | width: 12px;
228 | border-radius: 50%;
229 | }
230 |
231 | .qw_macOS .frame_statusBar_btn_Close .frame_statusBar_btn_icon {
232 | background-color: #FE6057;
233 | }
234 |
235 | .qw_macOS .frame_statusBar_btn_Close.frame_statusBar_btn_Hover .frame_statusBar_btn_icon {
236 | background-image: url(../images/icon_close_mac.png);
237 | }
238 |
239 | .qw_macOS .frame_statusBar_btn_Close:active .frame_statusBar_btn_icon {
240 | background-color: #BF4743;
241 | }
242 |
243 | .qw_macOS .frame_statusBar_btn_Min .frame_statusBar_btn_icon {
244 | background-color: #FFBD2E;
245 | }
246 |
247 | .qw_macOS .frame_statusBar_btn_Min.frame_statusBar_btn_Hover .frame_statusBar_btn_icon {
248 | background-image: url(../images/icon_minimize_mac.png);
249 | }
250 |
251 | .qw_macOS .frame_statusBar_btn_Min:active .frame_statusBar_btn_icon {
252 | background-color: #BF8D1E;
253 | }
254 |
255 | .qw_macOS .frame_statusBar_btn_Max .frame_statusBar_btn_icon {
256 | background-color: #28C940;
257 | }
258 |
259 | .qw_macOS .frame_statusBar_btn_Max.frame_statusBar_btn_Hover .frame_statusBar_btn_icon {
260 | background-image: url(../images/icon_fullscreen_mac.png);
261 | }
262 |
263 | .qw_macOS .frame_statusBar_btn_Max:active .frame_statusBar_btn_icon {
264 | background-color: #1C952C;
265 | }
266 |
267 | .qw_macOS .frame_statusBar_btn_Unmax.frame_statusBar_btn_Hover .frame_statusBar_btn_icon {
268 | background-image: url(../images/icon_restore_mac.png);
269 | }
270 |
271 | .qw_windows .frame_statusBar_inner {
272 | float: right;
273 | }
274 |
275 | .qw_windows .frame_statusBar_btn {
276 | float: right;
277 | margin-left: 20px;
278 | }
279 |
280 | .qw_windows .frame_statusBar_btn_icon {
281 | display: block;
282 | height: 12px;
283 | width: 12px;
284 | }
285 |
286 | .qw_windows .frame_statusBar_btn_Close .frame_statusBar_btn_icon {
287 | background-image: url(../images/icon_close.png);
288 | }
289 |
290 | .qw_windows .frame_statusBar_btn_Close:hover .frame_statusBar_btn_icon {
291 | background-image: url(../images/icon_close_hover.png);
292 | }
293 |
294 | .qw_windows .frame_statusBar_btn_Close:active .frame_statusBar_btn_icon {
295 | background-image: url(../images/icon_close_active.png);
296 | }
297 |
298 | .qw_windows .frame_statusBar_btn_Min .frame_statusBar_btn_icon {
299 | background-image: url(../images/icon_minimize.png);
300 | }
301 |
302 | .qw_windows .frame_statusBar_btn_Min:hover .frame_statusBar_btn_icon {
303 | background-image: url(../images/icon_minimize_hover.png);
304 | }
305 |
306 | .qw_windows .frame_statusBar_btn_Min:active .frame_statusBar_btn_icon {
307 | background-image: url(../images/icon_minimize_active.png);
308 | }
309 |
310 | .qw_windows .frame_statusBar_btn_Max .frame_statusBar_btn_icon {
311 | background-image: url(../images/icon_maximize.png);
312 | }
313 |
314 | .qw_windows .frame_statusBar_btn_Max:hover .frame_statusBar_btn_icon {
315 | background-image: url(../images/icon_maximize_hover.png);
316 | }
317 |
318 | .qw_windows .frame_statusBar_btn_Max:active .frame_statusBar_btn_icon {
319 | background-image: url(../images/icon_maximize_active.png);
320 | }
321 |
322 | .qw_windows .frame_statusBar_btn_Unmax .frame_statusBar_btn_icon {
323 | background-image: url(../images/icon_restore.png);
324 | }
325 |
326 | .qw_windows .frame_statusBar_btn_Unmax:hover .frame_statusBar_btn_icon {
327 | background-image: url(../images/icon_restore_hover.png);
328 | }
329 |
330 | .qw_windows .frame_statusBar_btn_Unmax:active .frame_statusBar_btn_icon {
331 | background-image: url(../images/icon_restore_active.png);
332 | }
333 |
334 | .frame_toolbar {
335 | position: absolute;
336 | bottom: 0;
337 | left: 0;
338 | width: 100%;
339 | padding: 12px 10px 12px 12px;
340 | box-sizing: border-box;
341 | border-top: 1px solid #DEE0E2;
342 | }
343 |
344 | .frame_toolbar_btn {
345 | float: right;
346 | height: 32px;
347 | margin-right: 8px;
348 | padding: 0 8px;
349 | border: 1px solid #00A3E1;
350 | border-radius: 4px;
351 | line-height: 32px;
352 | text-align: center;
353 | color: #00A3E1;
354 | font-size: 13px;
355 | box-sizing: border-box;
356 | }
357 |
358 | .frame_toolbar_btn:hover {
359 | background-color: #00A3E1;
360 | color: #fff;
361 | }
362 |
363 | .frame_toolbar_btn:active {
364 | border-color: #0094CD;
365 | background-color: #0094CD;
366 | }
367 |
368 | .frame_toolbar_btn_Watching {
369 | border-color: #3ECE5A;
370 | color: #3ECE5A;
371 | }
372 |
373 | .frame_toolbar_btn_Watching:hover {
374 | background-color: #3ECE5A;
375 | color: #fff;
376 | }
377 |
378 | .frame_toolbar_btn_Watching:active {
379 | background-color: #1CB83A;
380 | border-color: #1CB83A;
381 | }
382 |
383 | .frame_toolbar_btn_Disabled {
384 | opacity: .5;
385 | }
386 |
387 | .frame_toolbar_btn_Disabled:hover,
388 | .frame_toolbar_btn_Disabled:active {
389 | background-color: transparent;
390 | border: 1px solid #00A3E1;
391 | color: #00A3E1;
392 | }
393 |
394 | .frame_toolbar_btn_Install,
395 | .frame_toolbar_btn_Gulp {
396 | margin-right: 0;
397 | }
398 |
399 | .frame_toolbar_btn_Gulp {
400 | width: 105px;
401 | }
402 |
403 | .frame_toolbar_item {
404 | float: left;
405 | margin-right: 2px;
406 | }
407 |
408 | .frame_toolbar_item:last-child {
409 | margin-right: 0;
410 | }
411 |
412 | .frame_toolbar_item:hover .qw_icon_Add {
413 | background-image: url(../images/icon_add_hover.png);
414 | }
415 |
416 | .frame_toolbar_item:active .qw_icon_Add {
417 | background-image: url(../images/icon_add_active.png);
418 | }
419 |
420 | .frame_toolbar_item:hover .qw_icon_Remove {
421 | background-image: url(../images/icon_remove_hover.png);
422 | }
423 |
424 | .frame_toolbar_item:active .qw_icon_Remove {
425 | background-image: url(../images/icon_remove_active.png);
426 | }
427 |
428 | .frame_toolbar_item:hover .qw_icon_Setting {
429 | background-image: url(../images/icon_preference_hover.png);
430 | }
431 |
432 | .frame_toolbar_item:active .qw_icon_Setting {
433 | background-image: url(../images/icon_preference_active.png);
434 | }
435 |
436 | .frame_toolbar_item_OpenProject {
437 | position: relative;
438 | overflow: hidden;
439 | }
440 |
441 | .frame_toolbar_item_openProjectIpt {
442 | position: absolute;
443 | top: 0;
444 | right: 0;
445 | width: 1000%;
446 | height: 1000%;
447 | opacity: 0;
448 | }
449 |
450 | .frame_toolbar_item_openProjectText {
451 | display: none;
452 | color: #858C96;
453 | }
454 |
455 | .frame_toolbar_item:hover .frame_toolbar_item_openProjectText {
456 | color: #ADB4BE;
457 | }
458 |
459 | .frame_toolbar_item:active .frame_toolbar_item_openProjectText {
460 | color: #5D646E;
461 | }
462 |
463 | .frame_toolbar_EmptyProject {
464 | border-top: none;
465 | }
466 |
467 | .frame_toolbar_EmptyProject .frame_toolbar_item_openProjectText {
468 | display: inline-block;
469 | vertical-align: top;
470 | margin-top: 9px;
471 | }
472 |
473 | .frame_toolbar_EmptyProject .frame_toolbar_item_DelProject,
474 | .frame_toolbar_EmptyProject .frame_toolbar_item_Setting,
475 | .frame_toolbar_EmptyProject .frame_toolbar_btn {
476 | display: none;
477 | }
478 |
479 | .frame_wrap_Draging {
480 | border: 1px solid #3398d2;
481 | }
482 |
483 | .frame_wrap_About {
484 | padding-bottom: 30px;
485 | }
486 |
487 | /* #welcome 欢迎页 */
488 | .welcome_stage {
489 | padding: 100px 0 40px;
490 | text-align: center;
491 | }
492 |
493 | .welcome_stage_title {
494 | margin-bottom: 8px;
495 | line-height: 200;
496 | font-size: 0;
497 | }
498 |
499 | .welcome_stage_desc {
500 | color: #858C96;
501 | font-size: 14px;
502 | line-height: 24px;
503 | }
504 |
505 | /* #project 项目列表 */
506 | .project_stage {
507 | position: absolute;
508 | left: 0;
509 | top: 0;
510 | bottom: 336px;
511 | z-index: 10;
512 | display: flex;
513 | flex-direction: column;
514 | width: 100%;
515 | padding-top: 45px;
516 | background-image: linear-gradient(to bottom, #00A3E1, #05CAE8 100%);
517 | background-repeat: repeat-x;
518 | box-sizing: border-box;
519 | overflow-y: auto;
520 | }
521 |
522 | .project_stage_title {
523 | flex-shrink: 0;
524 | margin-bottom: 18px;
525 | padding: 0 16px;
526 | font-size: 20px;
527 | color: #fff;
528 | }
529 |
530 | .project_stage_list {
531 | flex-grow: 1;
532 | max-height: 100%;
533 | overflow-y: auto;
534 | }
535 |
536 | .project_stage_cnt {
537 | overflow: hidden;
538 | }
539 |
540 | .project_stage_item {
541 | position: relative;
542 | padding: 7px 74px 9px 32px;
543 | cursor: pointer;
544 | }
545 |
546 | .project_stage_item:hover {
547 | background-color: rgba(255, 255, 255, .15);
548 | }
549 |
550 | .project_stage_item .qw_icon {
551 | position: absolute;
552 | right: 20px;
553 | top: 50%;
554 | margin-top: -16px;
555 | }
556 |
557 | .project_stage_item .qw_icon:active {
558 | opacity: .5;
559 | }
560 |
561 | .project_stage_item_title {
562 | margin-bottom: 7px;
563 | color: #fff;
564 | font-size: 18px;
565 | }
566 |
567 | .project_stage_item_path {
568 | white-space: nowrap;
569 | text-overflow: ellipsis;
570 | overflow: hidden;
571 | color: rgba(255, 255, 255, .75);
572 | font-size: 12px;
573 | }
574 |
575 | .project_stage_item_Watching:before {
576 | content: ".";
577 | position: absolute;
578 | left: 13px;
579 | top: 50%;
580 | display: block;
581 | width: 8px;
582 | height: 8px;
583 | margin-top: -4px;
584 | background-color: #fff;
585 | font-size: 0;
586 | border-radius: 50%;
587 | }
588 |
589 | .project_stage_item_Current {
590 | background-color: rgba(255, 255, 255, .3);
591 | }
592 |
593 | .project_stage_item_Current:hover {
594 | background-color: rgba(255, 255, 255, .3);
595 | }
596 |
597 | /* #operation 操作区域 */
598 | .operation_stage {
599 | position: absolute;
600 | bottom: 57px;
601 | left: 0;
602 | display: flex;
603 | width: 100%;
604 | height: 280px;
605 | padding-top: 24px;
606 | box-sizing: border-box;
607 | text-align: center;
608 | }
609 |
610 | .operation_stage_mask {
611 | position: absolute;
612 | left: 0;
613 | top: 24px;
614 | height: 32px;
615 | width: 100%;
616 | background-image: linear-gradient(to bottom, #fff, transparent 100%);
617 | background-repeat: repeat-x;
618 | }
619 |
620 | .operation_stage_clearLogBtn {
621 | position: absolute;
622 | top: 14px;
623 | right: 12px;
624 | color: #858C96;
625 | font-size: 13px;
626 | }
627 |
628 | .operation_stage_clearLogBtn:hover {
629 | color: #ADB4BE;
630 | }
631 |
632 | .operation_stage_clearLogBtn:active {
633 | color: #5D646E;
634 | }
635 |
636 | .operation_stage_log {
637 | width: 100%;
638 | padding: 12px 24px 22px;
639 | text-align: left;
640 | overflow: auto;
641 | color: #595959;
642 | word-break: break-word;
643 | word-wrap: break-word;
644 | line-height: 22px;
645 | box-sizing: border-box;
646 | -webkit-user-select: auto;
647 | user-select: auto;
648 | }
649 |
650 | .operation_stage_log_time {
651 | color: #858C96;
652 | }
653 |
654 | .operation_stage_log_keyword {
655 | color: #00A3E1;
656 | }
657 |
658 | .operation_stage_log_qmui {
659 | color: #00A3E1;
660 | }
661 |
662 | /* #setting 设置界面 */
663 | .setting_panelMask {
664 | position: absolute;
665 | top: 0;
666 | right: 0;
667 | bottom: 0;
668 | left: 0;
669 | z-index: 90;
670 | }
671 |
672 | .setting_panel {
673 | position: absolute;
674 | left: 76px;
675 | bottom: 48px;
676 | z-index: 100;
677 | padding: 18px 16px 16px;
678 | background-color: #fff;
679 | border: 1px solid #DEE0E2;
680 | border-radius: 5px;
681 | box-sizing: border-box;
682 | box-shadow: 0 2px 20px rgba(0, 0, 0, .15);
683 | }
684 |
685 | .setting_panel_title {
686 | margin-bottom: 15px;
687 | font-size: 16px;
688 | color: #858C96;
689 | }
690 |
691 | .setting_panel_item {
692 | font-size: 14px;
693 | margin-top: 12px;
694 | color: #353C46;
695 | }
696 |
697 | .setting_panel_item:first-child {
698 | margin-top: 0;
699 | }
700 |
701 | /* #about 关于 */
702 | .about_stage {
703 | padding: 30px;
704 | text-align: center;
705 | }
706 |
707 | .about_stage .qw_icon_Logo {
708 | margin-bottom: 20px;
709 | }
710 |
711 | .about_stage_title {
712 | margin-bottom: 10px;
713 | font-size: 24px;
714 | color: #00A3E1;
715 | }
716 |
717 | .about_stage_version {
718 | margin-bottom: 14px;
719 | font-size: 12px;
720 | color: #a0a0a0;
721 | }
722 |
723 | .about_stage_desc {
724 | color: #595959;
725 | }
726 |
727 | /* #retina Retina 适配 */
728 | @media (-webkit-min-device-pixel-ratio: 2),(min--moz-device-pixel-ratio: 2),(-o-min-device-pixel-ratio: 2),(min-device-pixel-ratio: 2),(min-resolution: 2dppx),(min-resolution: 192dpi) {
729 | .qw_macOS .frame_statusBar_btn_Close.frame_statusBar_btn_Hover .frame_statusBar_btn_icon {
730 | background-image: url(../images/icon_close_mac_2x.png);
731 | }
732 |
733 | .qw_macOS .frame_statusBar_btn_Min.frame_statusBar_btn_Hover .frame_statusBar_btn_icon {
734 | background-image: url(../images/icon_minimize_mac_2x.png);
735 | }
736 |
737 | .qw_macOS .frame_statusBar_btn_Max.frame_statusBar_btn_Hover .frame_statusBar_btn_icon {
738 | background-image: url(../images/icon_fullscreen_mac_2x.png);
739 | }
740 |
741 | .qw_macOS .frame_statusBar_btn_Unmax.frame_statusBar_btn_Hover .frame_statusBar_btn_icon {
742 | background-image: url(../images/icon_restore_mac_2x.png);
743 | }
744 |
745 | .qw_windows .frame_statusBar_btn_Close .frame_statusBar_btn_icon {
746 | background-image: url(../images/icon_close_2x.png);
747 | }
748 |
749 | .qw_windows .frame_statusBar_btn_Close:hover .frame_statusBar_btn_icon {
750 | background-image: url(../images/icon_close_hover_2x.png);
751 | }
752 |
753 | .qw_windows .frame_statusBar_btn_Close:active .frame_statusBar_btn_icon {
754 | background-image: url(../images/icon_close_active_2x.png);
755 | }
756 |
757 | .qw_windows .frame_statusBar_btn_Min .frame_statusBar_btn_icon {
758 | background-image: url(../images/icon_minimize_2x.png);
759 | }
760 |
761 | .qw_windows .frame_statusBar_btn_Min:hover .frame_statusBar_btn_icon {
762 | background-image: url(../images/icon_minimize_hover_2x.png);
763 | }
764 |
765 | .qw_windows .frame_statusBar_btn_Min:active .frame_statusBar_btn_icon {
766 | background-image: url(../images/icon_minimize_active_2x.png);
767 | }
768 |
769 | .qw_windows .frame_statusBar_btn_Max .frame_statusBar_btn_icon {
770 | background-image: url(../images/icon_maximize_2x.png);
771 | }
772 |
773 | .qw_windows .frame_statusBar_btn_Max:hover .frame_statusBar_btn_icon {
774 | background-image: url(../images/icon_maximize_hover_2x.png);
775 | }
776 |
777 | .qw_windows .frame_statusBar_btn_Max:active .frame_statusBar_btn_icon {
778 | background-image: url(../images/icon_maximize_active_2x.png);
779 | }
780 |
781 | .qw_windows .frame_statusBar_btn_Unmax .frame_statusBar_btn_icon {
782 | background-image: url(../images/icon_restore_2x.png);
783 | }
784 |
785 | .qw_windows .frame_statusBar_btn_Unmax:hover .frame_statusBar_btn_icon {
786 | background-image: url(../images/icon_restore_hover_2x.png);
787 | }
788 |
789 | .qw_windows .frame_statusBar_btn_Unmax:active .frame_statusBar_btn_icon {
790 | background-image: url(../images/icon_restore_active_2x.png);
791 | }
792 |
793 | .qw_icon_Add {
794 | background-image: url(../images/icon_add_2x.png);
795 | }
796 |
797 | .frame_toolbar_item:hover .qw_icon_Add {
798 | background-image: url(../images/icon_add_hover_2x.png);
799 | }
800 |
801 | .frame_toolbar_item:active .qw_icon_Add {
802 | background-image: url(../images/icon_add_active_2x.png);
803 | }
804 |
805 | .qw_icon_Remove {
806 | background-image: url(../images/icon_remove_2x.png);
807 | }
808 |
809 | .frame_toolbar_item:hover .qw_icon_Remove {
810 | background-image: url(../images/icon_remove_hover_2x.png);
811 | }
812 |
813 | .frame_toolbar_item:active .qw_icon_Remove {
814 | background-image: url(../images/icon_remove_active_2x.png);
815 | }
816 |
817 | .qw_icon_Setting {
818 | background-image: url(../images/icon_preference_2x.png);
819 | }
820 |
821 | .frame_toolbar_item:hover .qw_icon_Setting {
822 | background-image: url(../images/icon_preference_hover_2x.png);
823 | }
824 |
825 | .frame_toolbar_item:active .qw_icon_Setting {
826 | background-image: url(../images/icon_preference_active_2x.png);
827 | }
828 |
829 | .qw_icon_Folder {
830 | background-image: url(../images/icon_folder_2x.png);
831 | }
832 |
833 | .qw_icon_Logo {
834 | background-image: url(../images/logo_2x.png);
835 | }
836 |
837 | .qw_icon_WelcomeLogo {
838 | background-image: url(../images/welcome_logo_2x.png);
839 | }
840 | }
841 |
--------------------------------------------------------------------------------
/images/icon_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_add.png
--------------------------------------------------------------------------------
/images/icon_add_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_add_2x.png
--------------------------------------------------------------------------------
/images/icon_add_active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_add_active.png
--------------------------------------------------------------------------------
/images/icon_add_active_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_add_active_2x.png
--------------------------------------------------------------------------------
/images/icon_add_hover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_add_hover.png
--------------------------------------------------------------------------------
/images/icon_add_hover_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_add_hover_2x.png
--------------------------------------------------------------------------------
/images/icon_close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_close.png
--------------------------------------------------------------------------------
/images/icon_close_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_close_2x.png
--------------------------------------------------------------------------------
/images/icon_close_active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_close_active.png
--------------------------------------------------------------------------------
/images/icon_close_active_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_close_active_2x.png
--------------------------------------------------------------------------------
/images/icon_close_hover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_close_hover.png
--------------------------------------------------------------------------------
/images/icon_close_hover_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_close_hover_2x.png
--------------------------------------------------------------------------------
/images/icon_close_mac.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_close_mac.png
--------------------------------------------------------------------------------
/images/icon_close_mac_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_close_mac_2x.png
--------------------------------------------------------------------------------
/images/icon_folder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_folder.png
--------------------------------------------------------------------------------
/images/icon_folder_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_folder_2x.png
--------------------------------------------------------------------------------
/images/icon_folder_active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_folder_active.png
--------------------------------------------------------------------------------
/images/icon_folder_active_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_folder_active_2x.png
--------------------------------------------------------------------------------
/images/icon_folder_hover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_folder_hover.png
--------------------------------------------------------------------------------
/images/icon_folder_hover_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_folder_hover_2x.png
--------------------------------------------------------------------------------
/images/icon_fullscreen_mac.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_fullscreen_mac.png
--------------------------------------------------------------------------------
/images/icon_fullscreen_mac_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_fullscreen_mac_2x.png
--------------------------------------------------------------------------------
/images/icon_maximize.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_maximize.png
--------------------------------------------------------------------------------
/images/icon_maximize_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_maximize_2x.png
--------------------------------------------------------------------------------
/images/icon_maximize_active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_maximize_active.png
--------------------------------------------------------------------------------
/images/icon_maximize_active_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_maximize_active_2x.png
--------------------------------------------------------------------------------
/images/icon_maximize_hover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_maximize_hover.png
--------------------------------------------------------------------------------
/images/icon_maximize_hover_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_maximize_hover_2x.png
--------------------------------------------------------------------------------
/images/icon_minimize.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_minimize.png
--------------------------------------------------------------------------------
/images/icon_minimize_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_minimize_2x.png
--------------------------------------------------------------------------------
/images/icon_minimize_active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_minimize_active.png
--------------------------------------------------------------------------------
/images/icon_minimize_active_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_minimize_active_2x.png
--------------------------------------------------------------------------------
/images/icon_minimize_hover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_minimize_hover.png
--------------------------------------------------------------------------------
/images/icon_minimize_hover_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_minimize_hover_2x.png
--------------------------------------------------------------------------------
/images/icon_minimize_mac.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_minimize_mac.png
--------------------------------------------------------------------------------
/images/icon_minimize_mac_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_minimize_mac_2x.png
--------------------------------------------------------------------------------
/images/icon_preference.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_preference.png
--------------------------------------------------------------------------------
/images/icon_preference_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_preference_2x.png
--------------------------------------------------------------------------------
/images/icon_preference_active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_preference_active.png
--------------------------------------------------------------------------------
/images/icon_preference_active_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_preference_active_2x.png
--------------------------------------------------------------------------------
/images/icon_preference_hover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_preference_hover.png
--------------------------------------------------------------------------------
/images/icon_preference_hover_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_preference_hover_2x.png
--------------------------------------------------------------------------------
/images/icon_remove.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_remove.png
--------------------------------------------------------------------------------
/images/icon_remove_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_remove_2x.png
--------------------------------------------------------------------------------
/images/icon_remove_active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_remove_active.png
--------------------------------------------------------------------------------
/images/icon_remove_active_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_remove_active_2x.png
--------------------------------------------------------------------------------
/images/icon_remove_hover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_remove_hover.png
--------------------------------------------------------------------------------
/images/icon_remove_hover_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_remove_hover_2x.png
--------------------------------------------------------------------------------
/images/icon_restore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_restore.png
--------------------------------------------------------------------------------
/images/icon_restore_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_restore_2x.png
--------------------------------------------------------------------------------
/images/icon_restore_active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_restore_active.png
--------------------------------------------------------------------------------
/images/icon_restore_active_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_restore_active_2x.png
--------------------------------------------------------------------------------
/images/icon_restore_hover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_restore_hover.png
--------------------------------------------------------------------------------
/images/icon_restore_hover_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_restore_hover_2x.png
--------------------------------------------------------------------------------
/images/icon_restore_mac.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_restore_mac.png
--------------------------------------------------------------------------------
/images/icon_restore_mac_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/icon_restore_mac_2x.png
--------------------------------------------------------------------------------
/images/logo.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/logo.icns
--------------------------------------------------------------------------------
/images/logo.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/logo.ico
--------------------------------------------------------------------------------
/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/logo.png
--------------------------------------------------------------------------------
/images/logo_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/logo_2x.png
--------------------------------------------------------------------------------
/images/logo_tray.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/logo_tray.png
--------------------------------------------------------------------------------
/images/logo_tray@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/logo_tray@2x.png
--------------------------------------------------------------------------------
/images/logo_tray_close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/logo_tray_close.png
--------------------------------------------------------------------------------
/images/logo_tray_close@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/logo_tray_close@2x.png
--------------------------------------------------------------------------------
/images/logo_tray_compass.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/logo_tray_compass.png
--------------------------------------------------------------------------------
/images/logo_tray_compass@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/logo_tray_compass@2x.png
--------------------------------------------------------------------------------
/images/logo_tray_error.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/logo_tray_error.png
--------------------------------------------------------------------------------
/images/logo_tray_error@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/logo_tray_error@2x.png
--------------------------------------------------------------------------------
/images/logo_tray_windows.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/logo_tray_windows.png
--------------------------------------------------------------------------------
/images/logo_tray_windows@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/logo_tray_windows@2x.png
--------------------------------------------------------------------------------
/images/welcome_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/welcome_logo.png
--------------------------------------------------------------------------------
/images/welcome_logo_2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tencent/QMUI_Web_Desktop/148b7338d7de48c54e3124eb1ea1bdd397dfc4ac/images/welcome_logo_2x.png
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | QMUI Web Desktop
6 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
28 |
QMUI Web Desktop
29 |
你可以把 QMUI Web 项目的根目录拖到这里
30 |
31 |
32 |
36 |
37 |
38 |
39 |
清空日志
40 |
41 |
42 |
43 |
44 |
62 |
63 |
64 |
65 |
66 |
Compass 编译通知
67 |
81 |
82 |
83 |
84 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
--------------------------------------------------------------------------------
/js/jquery-impromptu.js:
--------------------------------------------------------------------------------
1 | (function(root, factory) {
2 | if (typeof define === 'function' && define.amd) {
3 | define(['jquery'], factory);
4 | } else {
5 | factory(root.jQuery);
6 | }
7 | }(this, function($) {
8 | 'use strict';
9 |
10 | // ########################################################################
11 | // Base object
12 | // ########################################################################
13 |
14 | /**
15 | * Imp - Impromptu object - passing no params will not open, only return the instance
16 | * @param message String/Object - String of html or Object of states
17 | * @param options Object - Options to set the prompt
18 | * @return Imp - the instance of this Impromptu object
19 | */
20 | var Imp = function(message, options){
21 | var t = this;
22 | t.id = Imp.count++;
23 |
24 | Imp.lifo.push(t);
25 |
26 | if(message){
27 | t.open(message, options);
28 | }
29 | return t;
30 | };
31 |
32 | // ########################################################################
33 | // static properties and methods
34 | // ########################################################################
35 |
36 | /**
37 | * defaults - the default options
38 | */
39 | Imp.defaults = {
40 | prefix:'jqi',
41 | classes: {
42 | box: '',
43 | fade: '',
44 | prompt: '',
45 | form: '',
46 | close: '',
47 | title: '',
48 | message: '',
49 | buttons: '',
50 | button: '',
51 | defaultButton: ''
52 | },
53 | title: '',
54 | closeText: '×',
55 | buttons: {
56 | Ok: true
57 | },
58 | buttonTimeout: 1000,
59 | loaded: function(e){},
60 | submit: function(e,v,m,f){},
61 | close: function(e,v,m,f){},
62 | statechanging: function(e, from, to){},
63 | statechanged: function(e, to){},
64 | opacity: 0.6,
65 | zIndex: 999,
66 | overlayspeed: 'slow',
67 | promptspeed: 'fast',
68 | show: 'fadeIn',
69 | hide: 'fadeOut',
70 | focus: 0,
71 | defaultButton: 0,
72 | useiframe: false,
73 | top: '15%',
74 | position: {
75 | container: null,
76 | x: null,
77 | y: null,
78 | arrow: null,
79 | width: null
80 | },
81 | persistent: true,
82 | timeout: 0,
83 | states: {},
84 | initialState: 0,
85 | state: {
86 | name: null,
87 | title: '',
88 | html: '',
89 | buttons: {
90 | Ok: true
91 | },
92 | focus: 0,
93 | defaultButton: 0,
94 | position: {
95 | container: null,
96 | x: null,
97 | y: null,
98 | arrow: null,
99 | width: null
100 | },
101 | submit: function(e,v,m,f){
102 | return true;
103 | }
104 | }
105 | };
106 |
107 | /**
108 | * setDefaults - Sets the default options
109 | * @param o Object - Options to set as defaults
110 | * @return void
111 | */
112 | Imp.setDefaults = function(o) {
113 | Imp.defaults = $.extend({}, Imp.defaults, o);
114 | };
115 |
116 | /**
117 | * setStateDefaults - Sets the default options for a state
118 | * @param o Object - Options to set as defaults
119 | * @return void
120 | */
121 | Imp.setStateDefaults = function(o) {
122 | Imp.defaults.state = $.extend({}, Imp.defaults.state, o);
123 | };
124 |
125 | /**
126 | * @var Int - A counter used to provide a unique ID for new prompts
127 | */
128 | Imp.count = 0;
129 |
130 | /**
131 | * @var Array - An array of Impromptu intances in a LIFO queue (last in first out)
132 | */
133 | Imp.lifo = [];
134 |
135 | /**
136 | * getLast - get the last element from the queue (doesn't pop, just returns)
137 | * @return Imp - the instance of this Impromptu object or false if queue is empty
138 | */
139 | Imp.getLast = function(){
140 | var l = Imp.lifo.length;
141 | return (l > 0)? Imp.lifo[l-1] : false;
142 | };
143 |
144 | /**
145 | * removeFromStack - remove an element from the lifo stack by its id
146 | * @param id int - id of the instance to remove
147 | * @return api - The api of the element removed from the stack or void
148 | */
149 | Imp.removeFromStack = function(id){
150 | for(var i=Imp.lifo.length-1; i>=0; i--){
151 | if(Imp.lifo[i].id === id){
152 | return Imp.lifo.splice(i,1)[0];
153 | }
154 | }
155 | };
156 |
157 | // ########################################################################
158 | // extend our object instance properties and methods
159 | // ########################################################################
160 | Imp.prototype = {
161 |
162 | /**
163 | * @var Int - A unique id, simply an autoincremented number
164 | */
165 | id: null,
166 |
167 | /**
168 | * open - Opens the prompt
169 | * @param message String/Object - String of html or Object of states
170 | * @param options Object - Options to set the prompt
171 | * @return Imp - the instance of this Impromptu object
172 | */
173 | open: function(message, options) {
174 | var t = this;
175 |
176 | t.options = $.extend({},Imp.defaults,options);
177 |
178 | // Be sure any previous timeouts are destroyed
179 | if(t.timeout){
180 | clearTimeout(t.timeout);
181 | }
182 | t.timeout = false;
183 |
184 | var opts = t.options,
185 | $body = $(document.body),
186 | $window = $(window);
187 |
188 | //build the box and fade
189 | var msgbox = '';
190 | if(opts.useiframe && ($('object, applet').length > 0)) {
191 | msgbox += '
';
192 | } else {
193 | msgbox += '
';
194 | }
195 | msgbox += '
'+
201 | '
';
202 |
203 | t.jqib = $(msgbox).appendTo($body);
204 | t.jqi = t.jqib.children('.'+ opts.prefix);
205 | t.jqif = t.jqib.children('.'+ opts.prefix +'fade');
206 |
207 | //if a string was passed, convert to a single state
208 | if(message.constructor === String){
209 | message = {
210 | state0: {
211 | title: opts.title,
212 | html: message,
213 | buttons: opts.buttons,
214 | position: opts.position,
215 | focus: opts.focus,
216 | defaultButton: opts.defaultButton,
217 | submit: opts.submit
218 | }
219 | };
220 | }
221 |
222 | //build the states
223 | t.options.states = {};
224 | var k,v;
225 | for(k in message){
226 | v = $.extend({},Imp.defaults.state,{name:k},message[k]);
227 | t.addState(v.name, v);
228 |
229 | if(t.currentStateName === ''){
230 | t.currentStateName = v.name;
231 | }
232 | }
233 |
234 | //Events
235 | t.jqi.on('click', '.'+ opts.prefix +'buttons button', function(e){
236 | var $t = $(this),
237 | $state = $t.parents('.'+ opts.prefix +'state'),
238 | statename = $state.data('jqi-name'),
239 | stateobj = t.options.states[statename],
240 | msg = $state.children('.'+ opts.prefix +'message'),
241 | clicked = stateobj.buttons[$t.text()] || stateobj.buttons[$t.html()],
242 | forminputs = {};
243 |
244 | // disable for a moment to prevent multiple clicks
245 | if(t.options.buttonTimeout > 0){
246 | t.disableStateButtons(statename);
247 | setTimeout(function(){
248 | t.enableStateButtons(statename);
249 | }, t.options.buttonTimeout);
250 | }
251 |
252 | // if for some reason we couldn't get the value
253 | if(clicked === undefined){
254 | for(var i in stateobj.buttons){
255 | if(stateobj.buttons[i].title === $t.text() || stateobj.buttons[i].title === $t.html()){
256 | clicked = stateobj.buttons[i].value;
257 | }
258 | }
259 | }
260 |
261 | //collect all form element values from all states.
262 | $.each(t.jqi.children('form').serializeArray(),function(i,obj){
263 | if (forminputs[obj.name] === undefined) {
264 | forminputs[obj.name] = obj.value;
265 | } else if (typeof forminputs[obj.name] === Array || typeof forminputs[obj.name] === 'object') {
266 | forminputs[obj.name].push(obj.value);
267 | } else {
268 | forminputs[obj.name] = [forminputs[obj.name],obj.value];
269 | }
270 | });
271 |
272 | // trigger an event
273 | var promptsubmite = new $.Event('impromptu:submit');
274 | promptsubmite.stateName = stateobj.name;
275 | promptsubmite.state = $state;
276 | $state.trigger(promptsubmite, [clicked, msg, forminputs]);
277 |
278 | if(!promptsubmite.isDefaultPrevented()){
279 | t.close(true, clicked,msg,forminputs);
280 | }
281 | });
282 |
283 | // if the fade is clicked blink the prompt
284 | var fadeClicked = function(){
285 | if(opts.persistent){
286 | var offset = (opts.top.toString().indexOf('%') >= 0? ($window.height()*(parseInt(opts.top,10)/100)) : parseInt(opts.top,10)),
287 | top = parseInt(t.jqi.css('top').replace('px',''),10) - offset;
288 |
289 | //$window.scrollTop(top);
290 | $('html,body').animate({ scrollTop: top }, 'fast', function(){
291 | var i = 0;
292 | t.jqib.addClass(opts.prefix +'warning');
293 | var intervalid = setInterval(function(){
294 | t.jqib.toggleClass(opts.prefix +'warning');
295 | if(i++ > 1){
296 | clearInterval(intervalid);
297 | t.jqib.removeClass(opts.prefix +'warning');
298 | }
299 | }, 100);
300 | });
301 | }
302 | else {
303 | t.close(true);
304 | }
305 | };
306 |
307 | // listen for esc or tab keys
308 | var keyDownEventHandler = function(e){
309 | var key = (window.event) ? event.keyCode : e.keyCode;
310 |
311 | //escape key closes
312 | if(key === 27) {
313 | fadeClicked();
314 | }
315 |
316 | //enter key pressed trigger the default button if its not on it, ignore if it is a textarea
317 | if(key === 13){
318 | var $defBtn = t.getCurrentState().find('.'+ opts.prefix +'defaultbutton');
319 | var $tgt = $(e.target);
320 |
321 | if($tgt.is('textarea,.'+opts.prefix+'button') === false && $defBtn.length > 0){
322 | e.preventDefault();
323 | $defBtn.click();
324 | }
325 | }
326 |
327 | //constrain tabs, tabs should iterate through the state and not leave
328 | if (key === 9){
329 | var $inputels = $('input,select,textarea,button',t.getCurrentState());
330 | var fwd = !e.shiftKey && e.target === $inputels[$inputels.length-1];
331 | var back = e.shiftKey && e.target === $inputels[0];
332 | if (fwd || back) {
333 | setTimeout(function(){
334 | if (!$inputels){
335 | return;
336 | }
337 | var el = $inputels[back===true ? $inputels.length-1 : 0];
338 |
339 | if (el){
340 | el.focus();
341 | }
342 | },10);
343 | return false;
344 | }
345 | }
346 | };
347 |
348 | t.position();
349 | t.style();
350 |
351 | // store copy of the window resize function for interal use only
352 | t._windowResize = function(e){
353 | t.position(e);
354 | };
355 | $window.resize({ animate: false }, t._windowResize);
356 |
357 | t.jqif.click(fadeClicked);
358 | t.jqi.find('.'+ opts.prefix +'close').click(function(){ t.close(); });
359 | t.jqi.find('.'+ opts.prefix +'form').submit(function(){ return false; });
360 | t.jqib.on("keydown",keyDownEventHandler)
361 | .on('impromptu:loaded', opts.loaded)
362 | .on('impromptu:close', opts.close)
363 | .on('impromptu:statechanging', opts.statechanging)
364 | .on('impromptu:statechanged', opts.statechanged);
365 |
366 | // Show it
367 | t.jqif[opts.show](opts.overlayspeed);
368 | t.jqi[opts.show](opts.promptspeed, function(){
369 |
370 | t.goToState(
371 | isNaN(opts.initialState) ? opts.initialState :
372 | t.jqi.find('.'+ opts.prefix +'states .'+ opts.prefix +'state').eq(opts.initialState).data('jqi-name')
373 | );
374 |
375 | t.jqib.trigger('impromptu:loaded');
376 | });
377 |
378 | // Timeout
379 | if(opts.timeout > 0){
380 | t.timeout = setTimeout(function(){ t.close(true); },opts.timeout);
381 | }
382 |
383 | return t;
384 | },
385 |
386 | /**
387 | * close - Closes the prompt
388 | * @param callback Function - called when the transition is complete
389 | * @param clicked String - value of the button clicked (only used internally)
390 | * @param msg jQuery - The state message body (only used internally)
391 | * @param forvals Object - key/value pairs of all form field names and values (only used internally)
392 | * @return Imp - the instance of this Impromptu object
393 | */
394 | close: function(callCallback, clicked, msg, formvals){
395 | var t = this;
396 | Imp.removeFromStack(t.id);
397 |
398 | if(t.timeout){
399 | clearTimeout(t.timeout);
400 | t.timeout = false;
401 | }
402 |
403 | if(t.jqib){
404 | t.jqib[t.options.hide]('fast',function(){
405 |
406 | t.jqib.trigger('impromptu:close', [clicked,msg,formvals]);
407 |
408 | t.jqib.remove();
409 |
410 | $(window).off('resize', t._windowResize);
411 |
412 | if(typeof callCallback === 'function'){
413 | callCallback();
414 | }
415 | });
416 | }
417 | t.currentStateName = "";
418 |
419 | return t;
420 | },
421 |
422 | /**
423 | * addState - Injects a state into the prompt
424 | * @param statename String - Name of the state
425 | * @param stateobj Object - options for the state
426 | * @param afterState String - selector of the state to insert after
427 | * @return jQuery - the newly created state
428 | */
429 | addState: function(statename, stateobj, afterState) {
430 | var t = this,
431 | state = '',
432 | $state = null,
433 | arrow = '',
434 | title = '',
435 | opts = t.options,
436 | pos = $.isFunction(stateobj.position) ? stateobj.position() : stateobj.position,
437 | $jqistates = t.jqi.find('.'+ opts.prefix +'states'),
438 | buttons = [],
439 | showHtml,defbtn,k,v,l,i=0;
440 |
441 | stateobj = $.extend({},Imp.defaults.state, {name:statename}, stateobj);
442 |
443 | if($.isPlainObject(pos) && pos.arrow !== null){
444 | arrow = '';
445 | }
446 | if(stateobj.title && stateobj.title !== ''){
447 | title = ''+ stateobj.title +'
';
448 | }
449 |
450 | showHtml = stateobj.html;
451 | if (typeof stateobj.html === 'function') {
452 | showHtml = 'Error: html function must return text';
453 | }
454 |
455 | state += ''+
456 | arrow + title +
457 | '
' + showHtml +'
'+
458 | '
';
459 |
460 | // state buttons may be in object or array, lets convert objects to arrays
461 | if($.isArray(stateobj.buttons)){
462 | buttons = stateobj.buttons;
463 | }
464 | else if($.isPlainObject(stateobj.buttons)){
465 | for(k in stateobj.buttons){
466 | if(stateobj.buttons.hasOwnProperty(k)){
467 | buttons.push({ title: k, value: stateobj.buttons[k] });
468 | }
469 | }
470 | }
471 |
472 | // iterate over each button and create them
473 | for(i=0, l=buttons.length; i' + v.title + '';
484 | }
485 |
486 | state += '
';
487 |
488 | $state = $(state).css({display:'none'});
489 |
490 | $state.on('impromptu:submit', stateobj.submit);
491 |
492 | if(afterState !== undefined){
493 | t.getState(afterState).after($state);
494 | }
495 | else{
496 | $jqistates.append($state);
497 | }
498 |
499 | t.options.states[statename] = stateobj;
500 |
501 | return $state;
502 | },
503 |
504 | /**
505 | * removeState - Removes a state from the prompt
506 | * @param state String - Name of the state
507 | * @param newState String - Name of the state to transition to
508 | * @return Boolean - returns true on success, false on failure
509 | */
510 | removeState: function(state, newState) {
511 | var t = this,
512 | $state = t.getState(state),
513 | rm = function(){ $state.remove(); };
514 |
515 | if($state.length === 0){
516 | return false;
517 | }
518 |
519 | // transition away from it before deleting
520 | if($state.css('display') !== 'none'){
521 | if(newState !== undefined && t.getState(newState).length > 0){
522 | t.goToState(newState, false, rm);
523 | }
524 | else if($state.next().length > 0){
525 | t.nextState(rm);
526 | }
527 | else if($state.prev().length > 0){
528 | t.prevState(rm);
529 | }
530 | else{
531 | t.close();
532 | }
533 | }
534 | else{
535 | $state.slideUp('slow', rm);
536 | }
537 |
538 | return true;
539 | },
540 |
541 | /**
542 | * getApi - Get the api, so you can extract it from $.prompt stack
543 | * @return jQuery - the prompt
544 | */
545 | getApi: function() {
546 | return this;
547 | },
548 |
549 | /**
550 | * getBox - Get the box containing fade and prompt
551 | * @return jQuery - the prompt
552 | */
553 | getBox: function() {
554 | return this.jqib;
555 | },
556 |
557 | /**
558 | * getPrompt - Get the prompt
559 | * @return jQuery - the prompt
560 | */
561 | getPrompt: function() {
562 | return this.jqi;
563 | },
564 |
565 | /**
566 | * getState - Get the state by its name
567 | * @param statename String - Name of the state
568 | * @return jQuery - the state
569 | */
570 | getState: function(statename) {
571 | return this.jqi.find('[data-jqi-name="'+ statename +'"]');
572 | },
573 |
574 | /**
575 | * getCurrentState - Get the current visible state
576 | * @return jQuery - the current visible state
577 | */
578 | getCurrentState: function() {
579 | return this.getState(this.getCurrentStateName());
580 | },
581 |
582 | /**
583 | * getCurrentStateName - Get the name of the current visible state/substate
584 | * @return String - the current visible state's name
585 | */
586 | getCurrentStateName: function() {
587 | return this.currentStateName;
588 | },
589 |
590 | /**
591 | * disableStateButtons - Disables the buttons in a state
592 | * @param statename String - Name of the state containing buttons
593 | * @param buttons Array - Array of button values to disable. By default all are disabled
594 | * @param enable Boolean - True to enable the buttons instead of disabling (internally use only)
595 | * @return Void
596 | */
597 | disableStateButtons: function(statename, buttons, enable) {
598 | var t = this;
599 |
600 | if($.isArray(statename)){
601 | buttons = statename;
602 | statename = null;
603 | }
604 |
605 | t.getState(statename || t.getCurrentStateName()).find('.'+ t.options.prefix + 'button').each(function(i,btn){
606 | if(buttons === undefined || $.inArray(btn.value, buttons) !== -1){
607 | btn.disabled = !enable;
608 | }
609 | });
610 | },
611 |
612 | /**
613 | * enableStateButtons - Enables the buttons in a state
614 | * @param statename String - Name of the state containing buttons. Defaults to current state
615 | * @param buttons Array - Array of button values to enable. By default all are enabled
616 | * @return Void
617 | */
618 | enableStateButtons: function(statename, buttons) {
619 | this.disableStateButtons(statename, buttons, true);
620 | },
621 |
622 | /**
623 | * position - Repositions the prompt (Used internally)
624 | * @return void
625 | */
626 | position: function(e){
627 | var t = this,
628 | restoreFx = $.fx.off,
629 | $state = t.getCurrentState(),
630 | stateObj = t.options.states[$state.data('jqi-name')],
631 | pos = stateObj ? $.isFunction(stateObj.position) ? stateObj.position() : stateObj.position : undefined,
632 | $window = $(window),
633 | bodyHeight = document.body.scrollHeight, //$(document.body).outerHeight(true),
634 | windowHeight = $(window).height(),
635 | documentHeight = $(document).height(),
636 | height = (bodyHeight > windowHeight) ? bodyHeight : windowHeight,
637 | scrollTop = parseInt($window.scrollTop(),10),
638 | top = scrollTop + (t.options.top.toString().indexOf('%') >= 0?
639 | (windowHeight*(parseInt(t.options.top,10)/100)) : parseInt(t.options.top,10));
640 |
641 | // when resizing the window turn off animation
642 | if(e !== undefined && e.data.animate === false){
643 | $.fx.off = true;
644 | }
645 |
646 | t.jqib.css({
647 | position: "absolute",
648 | height: height,
649 | width: "100%",
650 | top: 0,
651 | left: 0,
652 | right: 0,
653 | bottom: 0
654 | });
655 | t.jqif.css({
656 | position: "fixed",
657 | height: height,
658 | width: "100%",
659 | top: 0,
660 | left: 0,
661 | right: 0,
662 | bottom: 0
663 | });
664 |
665 | // tour positioning
666 | if(pos && pos.container){
667 | var offset = $(pos.container).offset(),
668 | hasScrolled = false;
669 |
670 | if($.isPlainObject(offset) && offset.top !== undefined){
671 | top = (offset.top + pos.y) - (t.options.top.toString().indexOf('%') >= 0? (windowHeight*(parseInt(t.options.top,10)/100)) : parseInt(t.options.top,10));
672 |
673 | t.jqi.css({
674 | position: "absolute"
675 | });
676 | t.jqi.animate({
677 | top: offset.top + pos.y,
678 | left: offset.left + pos.x,
679 | marginLeft: 0,
680 | width: (pos.width !== undefined)? pos.width : null
681 | }, function(){
682 | // if it didn't scroll before, check that the bottom is within view. Since width
683 | // is animated we must use the callback before we know the height
684 | if(!hasScrolled && (offset.top + pos.y + t.jqi.outerHeight(true)) > (scrollTop + windowHeight)){
685 | $('html,body').animate({ scrollTop: top }, 'slow', 'swing', function(){});
686 | hasScrolled = true;
687 | }
688 | });
689 |
690 | // scroll if the top is out of the viewing area
691 | if(top < scrollTop || top > scrollTop + windowHeight){
692 | $('html,body').animate({ scrollTop: top }, 'slow', 'swing', function(){});
693 | hasScrolled = true;
694 | }
695 | }
696 | }
697 | // custom state width animation
698 | else if(pos && pos.width){
699 | t.jqi.css({
700 | position: "absolute",
701 | left: '50%'
702 | });
703 | t.jqi.animate({
704 | top: pos.y || top,
705 | left: pos.x || '50%',
706 | marginLeft: ((pos.width/2)*-1),
707 | width: pos.width
708 | });
709 | }
710 | // standard prompt positioning
711 | else{
712 | t.jqi.css({
713 | position: "absolute",
714 | top: top,
715 | left: '50%',//$window.width()/2,
716 | marginLeft: ((t.jqi.outerWidth(false)/2)*-1)
717 | });
718 | }
719 |
720 | // restore fx settings
721 | if(e !== undefined && e.data.animate === false){
722 | $.fx.off = restoreFx;
723 | }
724 | },
725 |
726 | /**
727 | * style - Restyles the prompt (Used internally)
728 | * @return void
729 | */
730 | style: function(){
731 | var t = this;
732 |
733 | t.jqif.css({
734 | zIndex: t.options.zIndex,
735 | display: "none",
736 | opacity: t.options.opacity
737 | });
738 | t.jqi.css({
739 | zIndex: t.options.zIndex+1,
740 | display: "none"
741 | });
742 | t.jqib.css({
743 | zIndex: t.options.zIndex
744 | });
745 | },
746 |
747 | /**
748 | * goToState - Goto the specified state
749 | * @param state String - name of the state to transition to
750 | * @param subState Boolean - true to be a sub state within the currently open state
751 | * @param callback Function - called when the transition is complete
752 | * @return jQuery - the newly active state
753 | */
754 | goToState: function(state, subState, callback) {
755 | var t = this,
756 | $jqi = t.jqi,
757 | jqiopts = t.options,
758 | $state = t.getState(state),
759 | stateobj = jqiopts.states[$state.data('jqi-name')],
760 | promptstatechanginge = new $.Event('impromptu:statechanging'),
761 | opts = t.options;
762 |
763 | if(stateobj !== undefined){
764 |
765 |
766 | if (typeof stateobj.html === 'function') {
767 | var contentLaterFunc = stateobj.html;
768 | $state.find('.' + opts.prefix +'message ').html(contentLaterFunc());
769 | }
770 |
771 | // subState can be ommitted
772 | if(typeof subState === 'function'){
773 | callback = subState;
774 | subState = false;
775 | }
776 |
777 | t.jqib.trigger(promptstatechanginge, [t.getCurrentStateName(), state]);
778 |
779 | if(!promptstatechanginge.isDefaultPrevented() && $state.length > 0){
780 | t.jqi.find('.'+ opts.prefix +'parentstate').removeClass(opts.prefix +'parentstate');
781 |
782 | if(subState){ // hide any open substates
783 | // get rid of any substates
784 | t.jqi.find('.'+ opts.prefix +'substate').not($state)
785 | .slideUp(jqiopts.promptspeed)
786 | .removeClass('.'+ opts.prefix +'substate')
787 | .find('.'+ opts.prefix +'arrow').hide();
788 |
789 | // add parent state class so it can be visible, but blocked
790 | t.jqi.find('.'+ opts.prefix +'state:visible').addClass(opts.prefix +'parentstate');
791 |
792 | // add substate class so we know it will be smaller
793 | $state.addClass(opts.prefix +'substate');
794 | }
795 | else{ // hide any open states
796 | t.jqi.find('.'+ opts.prefix +'state').not($state)
797 | .slideUp(jqiopts.promptspeed)
798 | .find('.'+ opts.prefix +'arrow').hide();
799 | }
800 | t.currentStateName = stateobj.name;
801 |
802 | $state.slideDown(jqiopts.promptspeed,function(){
803 | var $t = $(this);
804 | t.enableStateButtons();
805 |
806 | // if focus is a selector, find it, else its button index
807 | if(typeof(stateobj.focus) === 'string'){
808 | $t.find(stateobj.focus).eq(0).focus();
809 | }
810 | else{
811 | $t.find('.'+ opts.prefix +'defaultbutton').focus();
812 | }
813 |
814 | $t.find('.'+ opts.prefix +'arrow').show(jqiopts.promptspeed);
815 |
816 | if (typeof callback === 'function'){
817 | t.jqib.on('impromptu:statechanged', callback);
818 | }
819 | t.jqib.trigger('impromptu:statechanged', [state]);
820 | if (typeof callback === 'function'){
821 | t.jqib.off('impromptu:statechanged', callback);
822 | }
823 | });
824 | if(!subState){
825 | t.position();
826 | }
827 | } // end isDefaultPrevented()
828 | }// end stateobj !== undefined
829 |
830 | return $state;
831 | },
832 |
833 | /**
834 | * nextState - Transition to the next state
835 | * @param callback Function - called when the transition is complete
836 | * @return jQuery - the newly active state
837 | */
838 | nextState: function(callback) {
839 | var t = this,
840 | $next = t.getCurrentState().next();
841 | if($next.length > 0){
842 | t.goToState( $next.data('jqi-name'), callback );
843 | }
844 | return $next;
845 | },
846 |
847 | /**
848 | * prevState - Transition to the previous state
849 | * @param callback Function - called when the transition is complete
850 | * @return jQuery - the newly active state
851 | */
852 | prevState: function(callback) {
853 | var t = this,
854 | $prev = t.getCurrentState().prev();
855 | if($prev.length > 0){
856 | t.goToState( $prev.data('jqi-name'), callback );
857 | }
858 | return $prev;
859 | }
860 |
861 | };
862 |
863 | // ########################################################################
864 | // $.prompt will manage a queue of Impromptu instances
865 | // ########################################################################
866 |
867 | /**
868 | * $.prompt create a new Impromptu instance and push it on the stack of instances
869 | * @param message String/Object - String of html or Object of states
870 | * @param options Object - Options to set the prompt
871 | * @return jQuery - the jQuery object of the prompt within the modal
872 | */
873 | $.prompt = function(message, options){
874 | var api = new Imp(message, options);
875 | return api.jqi;
876 | };
877 |
878 | /**
879 | * Copy over static methods
880 | */
881 | $.each(Imp, function(k,v){
882 | $.prompt[k] = v;
883 | });
884 |
885 | /**
886 | * Create a proxy for accessing all instance methods. The close method pops from queue.
887 | */
888 | $.each(Imp.prototype, function(k,v){
889 | $.prompt[k] = function(){
890 | var api = Imp.getLast(); // always use the last instance on the stack
891 |
892 | if(api && typeof api[k] === "function"){
893 | return api[k].apply(api, arguments);
894 | }
895 | };
896 | });
897 |
898 | // ########################################################################
899 | // jQuery Plugin and public access
900 | // ########################################################################
901 |
902 | /**
903 | * Enable using $('.selector').prompt({});
904 | * This will grab the html within the prompt as the prompt message
905 | */
906 | $.fn.prompt = function(options){
907 | if(options === undefined){
908 | options = {};
909 | }
910 | if(options.withDataAndEvents === undefined){
911 | options.withDataAndEvents = false;
912 | }
913 |
914 | $.prompt($(this).clone(options.withDataAndEvents).html(),options);
915 | };
916 |
917 | /**
918 | * Export it as Impromptu and $.prompt
919 | * Can be used from here forth as new Impromptu(states, opts)
920 | */
921 | window.Impromptu = Imp;
922 |
923 | }));
924 |
--------------------------------------------------------------------------------
/js/jquery.min.js:
--------------------------------------------------------------------------------
1 | /*! jQuery v2.2.2 | (c) jQuery Foundation | jquery.org/license */
2 | !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="2.2.2",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isPlainObject:function(a){var b;if("object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype||{},"isPrototypeOf"))return!1;for(b in a);return void 0===b||k.call(a,b)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=d.createElement("script"),b.text=a,d.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:h.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(d=e.call(arguments,2),f=function(){return a.apply(b||this,d.concat(e.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return h.call(b,a)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&f.parentNode&&(this.length=1,this[0]=f),this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?void 0!==c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?h.call(n(a),this[0]):h.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||n.uniqueSort(e),D.test(a)&&e.reverse()),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.removeEventListener("DOMContentLoaded",J),a.removeEventListener("load",J),n.ready()}n.ready.promise=function(b){return I||(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(n.ready):(d.addEventListener("DOMContentLoaded",J),a.addEventListener("load",J))),I.promise(b)},n.ready.promise();var K=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)K(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},L=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function M(){this.expando=n.expando+M.uid++}M.uid=1,M.prototype={register:function(a,b){var c=b||{};return a.nodeType?a[this.expando]=c:Object.defineProperty(a,this.expando,{value:c,writable:!0,configurable:!0}),a[this.expando]},cache:function(a){if(!L(a))return{};var b=a[this.expando];return b||(b={},L(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[b]=c;else for(d in b)e[d]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=a[this.expando];if(void 0!==f){if(void 0===b)this.register(a);else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in f?d=[b,e]:(d=e,d=d in f?[d]:d.match(G)||[])),c=d.length;while(c--)delete f[d[c]]}(void 0===b||n.isEmptyObject(f))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!n.isEmptyObject(b)}};var N=new M,O=new M,P=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function R(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Q,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:P.test(c)?n.parseJSON(c):c;
3 | }catch(e){}O.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return O.hasData(a)||N.hasData(a)},data:function(a,b,c){return O.access(a,b,c)},removeData:function(a,b){O.remove(a,b)},_data:function(a,b,c){return N.access(a,b,c)},_removeData:function(a,b){N.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=O.get(f),1===f.nodeType&&!N.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),R(f,d,e[d])));N.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){O.set(this,a)}):K(this,function(b){var c,d;if(f&&void 0===b){if(c=O.get(f,a)||O.get(f,a.replace(Q,"-$&").toLowerCase()),void 0!==c)return c;if(d=n.camelCase(a),c=O.get(f,d),void 0!==c)return c;if(c=R(f,d,void 0),void 0!==c)return c}else d=n.camelCase(a),this.each(function(){var c=O.get(this,d);O.set(this,d,b),a.indexOf("-")>-1&&void 0!==c&&O.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){O.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=N.get(a,b),c&&(!d||n.isArray(c)?d=N.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return N.get(a,c)||N.access(a,c,{empty:n.Callbacks("once memory").add(function(){N.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length",""],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};$.optgroup=$.option,$.tbody=$.tfoot=$.colgroup=$.caption=$.thead,$.th=$.td;function _(a,b){var c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function aa(a,b){for(var c=0,d=a.length;d>c;c++)N.set(a[c],"globalEval",!b||N.get(b[c],"globalEval"))}var ba=/<|?\w+;/;function ca(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],o=0,p=a.length;p>o;o++)if(f=a[o],f||0===f)if("object"===n.type(f))n.merge(m,f.nodeType?[f]:f);else if(ba.test(f)){g=g||l.appendChild(b.createElement("div")),h=(Y.exec(f)||["",""])[1].toLowerCase(),i=$[h]||$._default,g.innerHTML=i[1]+n.htmlPrefilter(f)+i[2],k=i[0];while(k--)g=g.lastChild;n.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));l.textContent="",o=0;while(f=m[o++])if(d&&n.inArray(f,d)>-1)e&&e.push(f);else if(j=n.contains(f.ownerDocument,f),g=_(l.appendChild(f),"script"),j&&aa(g),c){k=0;while(f=g[k++])Z.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var da=/^key/,ea=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fa=/^([^.]*)(?:\.(.+)|)/;function ga(){return!0}function ha(){return!1}function ia(){try{return d.activeElement}catch(a){}}function ja(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)ja(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=ha;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return"undefined"!=typeof n&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(G)||[""],j=b.length;while(j--)h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.hasData(a)&&N.get(a);if(r&&(i=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&N.remove(a,"handle events")}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(N.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!==this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]*)\/>/gi,la=/