Version Description
(13/05/2021) =
* Design: add "Custom CSS" setting; Finally! :)
* Design: add "Footer links" color setting
* Design: add a list of available shortcodes under the "Text" editor
* Bot: make {visitor_name} placeholder work in all messages after the visitor types his name
* Misc: add [embed] shortcode for responsive video embeds; Compatible with YouTube, Vimeo, DailyMotion.
* Misc: make the exclude mechanism work with Cyrillic characters
* Misc: add wpmm_maintenance_template
filter; It works the same way as the wpmm_contact_template
filter, but for the maintenance template.
* Misc: now you can override the contact
email template too; Check /views/contact.php
for more details.
* Misc: better compatibility with translation plugins like Loco Translate
* Misc: the image uploaders (from the dashboard) are now translatable
* Misc: improve uninstall routine
* Misc: add wpmm_delete_cache
action; It is called after each setting change.
* Misc: add support for cache plugins like WP Rocket, WP Fastest Cache, Endurance Page Cache, Swift Performance Lite, Cache Enabler, SG Optimizer, LiteSpeed Cache, Nginx Helper;
* Misc: remove wpmm_count_where
helper function
* Misc: code improvements
Release Info
Developer | GeorgeJipa |
Plugin | WP Maintenance Mode |
Version | 2.4.0 |
Comparing to | |
See all releases |
Code changes from version 2.3.0 to 2.4.0
- assets/css/chosen.css +109 -61
- assets/css/chosen.min.css +1 -1
- assets/css/style-admin.css +35 -1
- assets/css/style-admin.min.css +1 -1
- assets/css/style.bot.css +9 -12
- assets/css/style.bot.min.css +1 -1
- assets/css/style.css +19 -17
- assets/css/style.min.css +1 -1
- assets/images/{chosen-sprite.png → chosen/chosen-sprite.png} +0 -0
- assets/images/{chosen-sprite@2x.png → chosen/chosen-sprite@2x.png} +0 -0
- assets/images/recommended/strictthemes.png +0 -0
- assets/js/bot.js +270 -254
- assets/js/bot.min.js +1 -1
- assets/js/chosen.jquery.js +422 -347
- assets/js/chosen.jquery.min.js +1 -1
- assets/js/jquery.fitvids.js +87 -0
- assets/js/jquery.fitvids.min.js +1 -0
- assets/js/scripts-admin.js +65 -64
- assets/js/scripts-admin.min.js +1 -1
- assets/js/scripts.js +7 -0
- assets/js/scripts.min.js +1 -1
- changelog.txt +412 -0
- includes/classes/shortcodes/index.php +2 -0
- includes/classes/shortcodes/wp-maintenance-mode-shortcode-loginform.php +28 -0
- includes/classes/wp-maintenance-mode-admin.php +737 -679
- includes/classes/wp-maintenance-mode-shortcodes.php +59 -72
- includes/classes/wp-maintenance-mode.php +539 -389
- includes/functions/helpers.php +378 -129
- includes/functions/hooks.php +32 -26
- languages/wp-maintenance-mode-de_DE.mo +0 -0
- languages/wp-maintenance-mode-de_DE.po +368 -216
- languages/wp-maintenance-mode-en_US.mo +0 -0
- languages/wp-maintenance-mode-en_US.po +344 -213
- languages/wp-maintenance-mode-es_ES.mo +0 -0
- languages/wp-maintenance-mode-es_ES.po +369 -217
- languages/wp-maintenance-mode-fa_IR.mo +0 -0
- languages/wp-maintenance-mode-fa_IR.po +367 -213
- languages/wp-maintenance-mode-fr_FR.mo +0 -0
- languages/wp-maintenance-mode-fr_FR.po +367 -213
- languages/wp-maintenance-mode-it_IT.mo +0 -0
- languages/wp-maintenance-mode-it_IT.po +369 -217
- languages/wp-maintenance-mode-nb_NO.mo +0 -0
- languages/wp-maintenance-mode-nb_NO.po +369 -217
- languages/wp-maintenance-mode-nl_NL.mo +0 -0
- languages/wp-maintenance-mode-nl_NL.po +369 -217
- languages/wp-maintenance-mode-pl_PL.mo +0 -0
- languages/wp-maintenance-mode-pl_PL.po +369 -217
- languages/wp-maintenance-mode-pt_BR.mo +0 -0
- languages/wp-maintenance-mode-pt_BR.po +381 -216
- languages/wp-maintenance-mode-pt_PT.mo +0 -0
- languages/wp-maintenance-mode-pt_PT.po +376 -222
- languages/wp-maintenance-mode-ro_RO.mo +0 -0
- languages/wp-maintenance-mode-ro_RO.po +372 -217
- languages/wp-maintenance-mode-ru_RU.mo +0 -0
- languages/wp-maintenance-mode-ru_RU.po +369 -217
- languages/wp-maintenance-mode-sv_SE.mo +0 -0
- languages/wp-maintenance-mode-sv_SE.po +369 -217
- languages/wp-maintenance-mode-uk_UA.mo +0 -0
- languages/wp-maintenance-mode-uk_UA.po +369 -214
- readme.txt +29 -376
- uninstall.php +48 -22
- views/contact.php +124 -100
- views/google-analytics.php +17 -8
- views/loginform.php +17 -8
- views/maintenance.php +161 -136
- views/notice.php +0 -10
- views/notices.php +16 -0
- views/promo-blocksy.php +18 -9
- views/settings.php +9 -497
@@ -2,9 +2,9 @@
|
|
2 |
Chosen, a Select Box Enhancer for jQuery and Prototype
|
3 |
by Patrick Filler for Harvest, http://getharvest.com
|
4 |
|
5 |
-
Version 1.
|
6 |
Full source at https://github.com/harvesthq/chosen
|
7 |
-
Copyright (c) 2011-
|
8 |
|
9 |
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
10 |
This file is generated by `grunt build`, do not edit it by hand.
|
@@ -17,31 +17,41 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
17 |
vertical-align: middle;
|
18 |
font-size: 13px;
|
19 |
-webkit-user-select: none;
|
20 |
-
|
21 |
-
|
|
|
22 |
}
|
|
|
23 |
.chosen-container * {
|
24 |
-webkit-box-sizing: border-box;
|
25 |
-
|
26 |
-
box-sizing: border-box;
|
27 |
}
|
|
|
28 |
.chosen-container .chosen-drop {
|
29 |
position: absolute;
|
30 |
top: 100%;
|
31 |
-
left: -9999px;
|
32 |
z-index: 1010;
|
33 |
width: 100%;
|
34 |
border: 1px solid #aaa;
|
35 |
border-top: 0;
|
36 |
background: #fff;
|
37 |
-
box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
|
|
|
|
|
|
|
|
|
38 |
}
|
|
|
39 |
.chosen-container.chosen-with-drop .chosen-drop {
|
40 |
-
|
|
|
|
|
41 |
}
|
|
|
42 |
.chosen-container a {
|
43 |
cursor: pointer;
|
44 |
}
|
|
|
45 |
.chosen-container .search-choice .group-name, .chosen-container .chosen-single .group-name {
|
46 |
margin-right: 4px;
|
47 |
overflow: hidden;
|
@@ -50,6 +60,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
50 |
font-weight: normal;
|
51 |
color: #999999;
|
52 |
}
|
|
|
53 |
.chosen-container .search-choice .group-name:after, .chosen-container .chosen-single .group-name:after {
|
54 |
content: ":";
|
55 |
padding-left: 2px;
|
@@ -67,21 +78,21 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
67 |
border: 1px solid #aaa;
|
68 |
border-radius: 5px;
|
69 |
background-color: #fff;
|
70 |
-
background: -webkit-gradient(linear,
|
71 |
-
background:
|
72 |
-
background: -moz-linear-gradient(#ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
73 |
-
background: -o-linear-gradient(#ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
74 |
-
background: linear-gradient(#ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
75 |
background-clip: padding-box;
|
76 |
-
box-shadow: 0 0 3px
|
|
|
77 |
color: #444;
|
78 |
text-decoration: none;
|
79 |
white-space: nowrap;
|
80 |
line-height: 24px;
|
81 |
}
|
|
|
82 |
.chosen-container-single .chosen-default {
|
83 |
color: #999;
|
84 |
}
|
|
|
85 |
.chosen-container-single .chosen-single span {
|
86 |
display: block;
|
87 |
overflow: hidden;
|
@@ -89,9 +100,11 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
89 |
text-overflow: ellipsis;
|
90 |
white-space: nowrap;
|
91 |
}
|
|
|
92 |
.chosen-container-single .chosen-single-with-deselect span {
|
93 |
margin-right: 38px;
|
94 |
}
|
|
|
95 |
.chosen-container-single .chosen-single abbr {
|
96 |
position: absolute;
|
97 |
top: 6px;
|
@@ -99,15 +112,18 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
99 |
display: block;
|
100 |
width: 12px;
|
101 |
height: 12px;
|
102 |
-
background: url(
|
103 |
font-size: 1px;
|
104 |
}
|
|
|
105 |
.chosen-container-single .chosen-single abbr:hover {
|
106 |
background-position: -42px -10px;
|
107 |
}
|
|
|
108 |
.chosen-container-single.chosen-disabled .chosen-single abbr:hover {
|
109 |
background-position: -42px -10px;
|
110 |
}
|
|
|
111 |
.chosen-container-single .chosen-single div {
|
112 |
position: absolute;
|
113 |
top: 0;
|
@@ -116,12 +132,14 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
116 |
width: 18px;
|
117 |
height: 100%;
|
118 |
}
|
|
|
119 |
.chosen-container-single .chosen-single div b {
|
120 |
display: block;
|
121 |
width: 100%;
|
122 |
height: 100%;
|
123 |
-
background: url(
|
124 |
}
|
|
|
125 |
.chosen-container-single .chosen-search {
|
126 |
position: relative;
|
127 |
z-index: 1010;
|
@@ -129,6 +147,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
129 |
padding: 3px 4px;
|
130 |
white-space: nowrap;
|
131 |
}
|
|
|
132 |
.chosen-container-single .chosen-search input[type="text"] {
|
133 |
margin: 1px 0;
|
134 |
padding: 4px 20px 4px 5px;
|
@@ -136,21 +155,24 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
136 |
height: auto;
|
137 |
outline: 0;
|
138 |
border: 1px solid #aaa;
|
139 |
-
background:
|
140 |
-
background: url('chosen-sprite.png') no-repeat 100% -20px;
|
141 |
font-size: 1em;
|
142 |
font-family: sans-serif;
|
143 |
line-height: normal;
|
144 |
border-radius: 0;
|
145 |
}
|
|
|
146 |
.chosen-container-single .chosen-drop {
|
147 |
margin-top: -1px;
|
148 |
border-radius: 0 0 4px 4px;
|
149 |
background-clip: padding-box;
|
150 |
}
|
|
|
151 |
.chosen-container-single.chosen-container-single-nosearch .chosen-search {
|
152 |
position: absolute;
|
153 |
-
|
|
|
|
|
154 |
}
|
155 |
|
156 |
/* @end */
|
@@ -165,6 +187,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
165 |
max-height: 240px;
|
166 |
-webkit-overflow-scrolling: touch;
|
167 |
}
|
|
|
168 |
.chosen-container .chosen-results li {
|
169 |
display: none;
|
170 |
margin: 0;
|
@@ -174,37 +197,41 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
174 |
word-wrap: break-word;
|
175 |
-webkit-touch-callout: none;
|
176 |
}
|
|
|
177 |
.chosen-container .chosen-results li.active-result {
|
178 |
display: list-item;
|
179 |
cursor: pointer;
|
180 |
}
|
|
|
181 |
.chosen-container .chosen-results li.disabled-result {
|
182 |
display: list-item;
|
183 |
color: #ccc;
|
184 |
cursor: default;
|
185 |
}
|
|
|
186 |
.chosen-container .chosen-results li.highlighted {
|
187 |
background-color: #3875d7;
|
188 |
-
background-image: -webkit-gradient(linear,
|
189 |
-
background-image: -webkit-linear-gradient(#3875d7 20%, #2a62bc 90%);
|
190 |
-
background-image: -moz-linear-gradient(#3875d7 20%, #2a62bc 90%);
|
191 |
-
background-image: -o-linear-gradient(#3875d7 20%, #2a62bc 90%);
|
192 |
background-image: linear-gradient(#3875d7 20%, #2a62bc 90%);
|
193 |
color: #fff;
|
194 |
}
|
|
|
195 |
.chosen-container .chosen-results li.no-results {
|
196 |
color: #777;
|
197 |
display: list-item;
|
198 |
background: #f4f4f4;
|
199 |
}
|
|
|
200 |
.chosen-container .chosen-results li.group-result {
|
201 |
display: list-item;
|
202 |
font-weight: bold;
|
203 |
cursor: default;
|
204 |
}
|
|
|
205 |
.chosen-container .chosen-results li.group-option {
|
206 |
padding-left: 15px;
|
207 |
}
|
|
|
208 |
.chosen-container .chosen-results li em {
|
209 |
font-style: normal;
|
210 |
text-decoration: underline;
|
@@ -218,26 +245,25 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
218 |
margin: 0;
|
219 |
padding: 0 5px;
|
220 |
width: 100%;
|
221 |
-
height: auto
|
222 |
-
height: 1%;
|
223 |
border: 1px solid #aaa;
|
224 |
background-color: #fff;
|
225 |
-
background-image: -webkit-gradient(linear,
|
226 |
-
background-image:
|
227 |
-
background-image: -moz-linear-gradient(#eeeeee 1%, #ffffff 15%);
|
228 |
-
background-image: -o-linear-gradient(#eeeeee 1%, #ffffff 15%);
|
229 |
-
background-image: linear-gradient(#eeeeee 1%, #ffffff 15%);
|
230 |
cursor: text;
|
231 |
}
|
|
|
232 |
.chosen-container-multi .chosen-choices li {
|
233 |
float: left;
|
234 |
list-style: none;
|
235 |
}
|
|
|
236 |
.chosen-container-multi .chosen-choices li.search-field {
|
237 |
margin: 0;
|
238 |
padding: 0;
|
239 |
white-space: nowrap;
|
240 |
}
|
|
|
241 |
.chosen-container-multi .chosen-choices li.search-field input[type="text"] {
|
242 |
margin: 1px 0;
|
243 |
padding: 0;
|
@@ -245,13 +271,16 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
245 |
outline: 0;
|
246 |
border: 0 !important;
|
247 |
background: transparent !important;
|
248 |
-
box-shadow: none;
|
|
|
249 |
color: #999;
|
250 |
font-size: 100%;
|
251 |
font-family: sans-serif;
|
252 |
line-height: normal;
|
253 |
border-radius: 0;
|
|
|
254 |
}
|
|
|
255 |
.chosen-container-multi .chosen-choices li.search-choice {
|
256 |
position: relative;
|
257 |
margin: 3px 5px 3px 0;
|
@@ -260,22 +289,22 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
260 |
max-width: 100%;
|
261 |
border-radius: 3px;
|
262 |
background-color: #eeeeee;
|
263 |
-
background-image: -webkit-gradient(linear,
|
264 |
-
background-image:
|
265 |
-
background-image: -moz-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
266 |
-
background-image: -o-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
267 |
-
background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
268 |
background-size: 100% 19px;
|
269 |
background-repeat: repeat-x;
|
270 |
background-clip: padding-box;
|
271 |
-
box-shadow: 0 0 2px
|
|
|
272 |
color: #333;
|
273 |
line-height: 13px;
|
274 |
cursor: default;
|
275 |
}
|
|
|
276 |
.chosen-container-multi .chosen-choices li.search-choice span {
|
277 |
word-wrap: break-word;
|
278 |
}
|
|
|
279 |
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
|
280 |
position: absolute;
|
281 |
top: 4px;
|
@@ -283,33 +312,36 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
283 |
display: block;
|
284 |
width: 12px;
|
285 |
height: 12px;
|
286 |
-
background: url(
|
287 |
font-size: 1px;
|
288 |
}
|
|
|
289 |
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
|
290 |
background-position: -42px -10px;
|
291 |
}
|
|
|
292 |
.chosen-container-multi .chosen-choices li.search-choice-disabled {
|
293 |
padding-right: 5px;
|
294 |
border: 1px solid #ccc;
|
295 |
background-color: #e4e4e4;
|
296 |
-
background-image: -webkit-gradient(linear,
|
297 |
-
background-image:
|
298 |
-
background-image: -moz-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
299 |
-
background-image: -o-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
300 |
-
background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
301 |
color: #666;
|
302 |
}
|
|
|
303 |
.chosen-container-multi .chosen-choices li.search-choice-focus {
|
304 |
background: #d4d4d4;
|
305 |
}
|
|
|
306 |
.chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {
|
307 |
background-position: -42px -10px;
|
308 |
}
|
|
|
309 |
.chosen-container-multi .chosen-results {
|
310 |
margin: 0;
|
311 |
padding: 0;
|
312 |
}
|
|
|
313 |
.chosen-container-multi .chosen-drop .result-selected {
|
314 |
display: list-item;
|
315 |
color: #ccc;
|
@@ -320,32 +352,35 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
320 |
/* @group Active */
|
321 |
.chosen-container-active .chosen-single {
|
322 |
border: 1px solid #5897fb;
|
323 |
-
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
|
|
324 |
}
|
|
|
325 |
.chosen-container-active.chosen-with-drop .chosen-single {
|
326 |
border: 1px solid #aaa;
|
327 |
-
-moz-border-radius-bottomright: 0;
|
328 |
border-bottom-right-radius: 0;
|
329 |
-
-moz-border-radius-bottomleft: 0;
|
330 |
border-bottom-left-radius: 0;
|
331 |
-
background-image: -webkit-gradient(linear,
|
332 |
-
background-image:
|
333 |
-
|
334 |
-
|
335 |
-
background-image: linear-gradient(#eeeeee 20%, #ffffff 80%);
|
336 |
-
box-shadow: 0 1px 0 #fff inset;
|
337 |
}
|
|
|
338 |
.chosen-container-active.chosen-with-drop .chosen-single div {
|
339 |
border-left: none;
|
340 |
background: transparent;
|
341 |
}
|
|
|
342 |
.chosen-container-active.chosen-with-drop .chosen-single div b {
|
343 |
background-position: -18px 2px;
|
344 |
}
|
|
|
345 |
.chosen-container-active .chosen-choices {
|
346 |
border: 1px solid #5897fb;
|
347 |
-
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
|
|
348 |
}
|
|
|
349 |
.chosen-container-active .chosen-choices li.search-field input[type="text"] {
|
350 |
color: #222 !important;
|
351 |
}
|
@@ -356,9 +391,11 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
356 |
opacity: 0.5 !important;
|
357 |
cursor: default;
|
358 |
}
|
|
|
359 |
.chosen-disabled .chosen-single {
|
360 |
cursor: default;
|
361 |
}
|
|
|
362 |
.chosen-disabled .chosen-choices .search-choice .search-choice-close {
|
363 |
cursor: default;
|
364 |
}
|
@@ -368,64 +405,74 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
368 |
.chosen-rtl {
|
369 |
text-align: right;
|
370 |
}
|
|
|
371 |
.chosen-rtl .chosen-single {
|
372 |
overflow: visible;
|
373 |
padding: 0 8px 0 0;
|
374 |
}
|
|
|
375 |
.chosen-rtl .chosen-single span {
|
376 |
margin-right: 0;
|
377 |
margin-left: 26px;
|
378 |
direction: rtl;
|
379 |
}
|
|
|
380 |
.chosen-rtl .chosen-single-with-deselect span {
|
381 |
margin-left: 38px;
|
382 |
}
|
|
|
383 |
.chosen-rtl .chosen-single div {
|
384 |
right: auto;
|
385 |
left: 3px;
|
386 |
}
|
|
|
387 |
.chosen-rtl .chosen-single abbr {
|
388 |
right: auto;
|
389 |
left: 26px;
|
390 |
}
|
|
|
391 |
.chosen-rtl .chosen-choices li {
|
392 |
float: right;
|
393 |
}
|
|
|
394 |
.chosen-rtl .chosen-choices li.search-field input[type="text"] {
|
395 |
direction: rtl;
|
396 |
}
|
|
|
397 |
.chosen-rtl .chosen-choices li.search-choice {
|
398 |
margin: 3px 5px 3px 0;
|
399 |
padding: 3px 5px 3px 19px;
|
400 |
}
|
|
|
401 |
.chosen-rtl .chosen-choices li.search-choice .search-choice-close {
|
402 |
right: auto;
|
403 |
left: 4px;
|
404 |
}
|
405 |
-
|
406 |
-
.chosen-rtl .chosen-drop {
|
407 |
-
left: 9999px;
|
408 |
-
}
|
409 |
.chosen-rtl.chosen-container-single .chosen-results {
|
410 |
margin: 0 0 4px 4px;
|
411 |
padding: 0 4px 0 0;
|
412 |
}
|
|
|
413 |
.chosen-rtl .chosen-results li.group-option {
|
414 |
padding-right: 15px;
|
415 |
padding-left: 0;
|
416 |
}
|
|
|
417 |
.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div {
|
418 |
border-right: none;
|
419 |
}
|
|
|
420 |
.chosen-rtl .chosen-search input[type="text"] {
|
421 |
padding: 4px 5px 4px 20px;
|
422 |
-
background:
|
423 |
-
background: url('../images/chosen-sprite.png') no-repeat -30px -20px;
|
424 |
direction: rtl;
|
425 |
}
|
|
|
426 |
.chosen-rtl.chosen-container-single .chosen-single div b {
|
427 |
background-position: 6px 2px;
|
428 |
}
|
|
|
429 |
.chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b {
|
430 |
background-position: -12px 2px;
|
431 |
}
|
@@ -440,9 +487,10 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
440 |
.chosen-container-multi .chosen-choices .search-choice .search-choice-close,
|
441 |
.chosen-container .chosen-results-scroll-down span,
|
442 |
.chosen-container .chosen-results-scroll-up span {
|
443 |
-
background-image: url(
|
444 |
background-size: 52px 37px !important;
|
445 |
background-repeat: no-repeat !important;
|
446 |
}
|
447 |
}
|
|
|
448 |
/* @end */
|
2 |
Chosen, a Select Box Enhancer for jQuery and Prototype
|
3 |
by Patrick Filler for Harvest, http://getharvest.com
|
4 |
|
5 |
+
Version 1.8.7
|
6 |
Full source at https://github.com/harvesthq/chosen
|
7 |
+
Copyright (c) 2011-2018 Harvest http://getharvest.com
|
8 |
|
9 |
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
10 |
This file is generated by `grunt build`, do not edit it by hand.
|
17 |
vertical-align: middle;
|
18 |
font-size: 13px;
|
19 |
-webkit-user-select: none;
|
20 |
+
-moz-user-select: none;
|
21 |
+
-ms-user-select: none;
|
22 |
+
user-select: none;
|
23 |
}
|
24 |
+
|
25 |
.chosen-container * {
|
26 |
-webkit-box-sizing: border-box;
|
27 |
+
box-sizing: border-box;
|
|
|
28 |
}
|
29 |
+
|
30 |
.chosen-container .chosen-drop {
|
31 |
position: absolute;
|
32 |
top: 100%;
|
|
|
33 |
z-index: 1010;
|
34 |
width: 100%;
|
35 |
border: 1px solid #aaa;
|
36 |
border-top: 0;
|
37 |
background: #fff;
|
38 |
+
-webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
|
39 |
+
box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
|
40 |
+
clip: rect(0, 0, 0, 0);
|
41 |
+
-webkit-clip-path: inset(100% 100%);
|
42 |
+
clip-path: inset(100% 100%);
|
43 |
}
|
44 |
+
|
45 |
.chosen-container.chosen-with-drop .chosen-drop {
|
46 |
+
clip: auto;
|
47 |
+
-webkit-clip-path: none;
|
48 |
+
clip-path: none;
|
49 |
}
|
50 |
+
|
51 |
.chosen-container a {
|
52 |
cursor: pointer;
|
53 |
}
|
54 |
+
|
55 |
.chosen-container .search-choice .group-name, .chosen-container .chosen-single .group-name {
|
56 |
margin-right: 4px;
|
57 |
overflow: hidden;
|
60 |
font-weight: normal;
|
61 |
color: #999999;
|
62 |
}
|
63 |
+
|
64 |
.chosen-container .search-choice .group-name:after, .chosen-container .chosen-single .group-name:after {
|
65 |
content: ":";
|
66 |
padding-left: 2px;
|
78 |
border: 1px solid #aaa;
|
79 |
border-radius: 5px;
|
80 |
background-color: #fff;
|
81 |
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(20%, #fff), color-stop(50%, #f6f6f6), color-stop(52%, #eee), to(#f4f4f4));
|
82 |
+
background: linear-gradient(#fff 20%, #f6f6f6 50%, #eee 52%, #f4f4f4 100%);
|
|
|
|
|
|
|
83 |
background-clip: padding-box;
|
84 |
+
-webkit-box-shadow: 0 0 3px #fff inset, 0 1px 1px rgba(0, 0, 0, 0.1);
|
85 |
+
box-shadow: 0 0 3px #fff inset, 0 1px 1px rgba(0, 0, 0, 0.1);
|
86 |
color: #444;
|
87 |
text-decoration: none;
|
88 |
white-space: nowrap;
|
89 |
line-height: 24px;
|
90 |
}
|
91 |
+
|
92 |
.chosen-container-single .chosen-default {
|
93 |
color: #999;
|
94 |
}
|
95 |
+
|
96 |
.chosen-container-single .chosen-single span {
|
97 |
display: block;
|
98 |
overflow: hidden;
|
100 |
text-overflow: ellipsis;
|
101 |
white-space: nowrap;
|
102 |
}
|
103 |
+
|
104 |
.chosen-container-single .chosen-single-with-deselect span {
|
105 |
margin-right: 38px;
|
106 |
}
|
107 |
+
|
108 |
.chosen-container-single .chosen-single abbr {
|
109 |
position: absolute;
|
110 |
top: 6px;
|
112 |
display: block;
|
113 |
width: 12px;
|
114 |
height: 12px;
|
115 |
+
background: url("../images/chosen/chosen-sprite.png") -42px 1px no-repeat;
|
116 |
font-size: 1px;
|
117 |
}
|
118 |
+
|
119 |
.chosen-container-single .chosen-single abbr:hover {
|
120 |
background-position: -42px -10px;
|
121 |
}
|
122 |
+
|
123 |
.chosen-container-single.chosen-disabled .chosen-single abbr:hover {
|
124 |
background-position: -42px -10px;
|
125 |
}
|
126 |
+
|
127 |
.chosen-container-single .chosen-single div {
|
128 |
position: absolute;
|
129 |
top: 0;
|
132 |
width: 18px;
|
133 |
height: 100%;
|
134 |
}
|
135 |
+
|
136 |
.chosen-container-single .chosen-single div b {
|
137 |
display: block;
|
138 |
width: 100%;
|
139 |
height: 100%;
|
140 |
+
background: url("../images/chosen/chosen-sprite.png") no-repeat 0px 2px;
|
141 |
}
|
142 |
+
|
143 |
.chosen-container-single .chosen-search {
|
144 |
position: relative;
|
145 |
z-index: 1010;
|
147 |
padding: 3px 4px;
|
148 |
white-space: nowrap;
|
149 |
}
|
150 |
+
|
151 |
.chosen-container-single .chosen-search input[type="text"] {
|
152 |
margin: 1px 0;
|
153 |
padding: 4px 20px 4px 5px;
|
155 |
height: auto;
|
156 |
outline: 0;
|
157 |
border: 1px solid #aaa;
|
158 |
+
background: url("../images/chosen/chosen-sprite.png") no-repeat 100% -20px;
|
|
|
159 |
font-size: 1em;
|
160 |
font-family: sans-serif;
|
161 |
line-height: normal;
|
162 |
border-radius: 0;
|
163 |
}
|
164 |
+
|
165 |
.chosen-container-single .chosen-drop {
|
166 |
margin-top: -1px;
|
167 |
border-radius: 0 0 4px 4px;
|
168 |
background-clip: padding-box;
|
169 |
}
|
170 |
+
|
171 |
.chosen-container-single.chosen-container-single-nosearch .chosen-search {
|
172 |
position: absolute;
|
173 |
+
clip: rect(0, 0, 0, 0);
|
174 |
+
-webkit-clip-path: inset(100% 100%);
|
175 |
+
clip-path: inset(100% 100%);
|
176 |
}
|
177 |
|
178 |
/* @end */
|
187 |
max-height: 240px;
|
188 |
-webkit-overflow-scrolling: touch;
|
189 |
}
|
190 |
+
|
191 |
.chosen-container .chosen-results li {
|
192 |
display: none;
|
193 |
margin: 0;
|
197 |
word-wrap: break-word;
|
198 |
-webkit-touch-callout: none;
|
199 |
}
|
200 |
+
|
201 |
.chosen-container .chosen-results li.active-result {
|
202 |
display: list-item;
|
203 |
cursor: pointer;
|
204 |
}
|
205 |
+
|
206 |
.chosen-container .chosen-results li.disabled-result {
|
207 |
display: list-item;
|
208 |
color: #ccc;
|
209 |
cursor: default;
|
210 |
}
|
211 |
+
|
212 |
.chosen-container .chosen-results li.highlighted {
|
213 |
background-color: #3875d7;
|
214 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(20%, #3875d7), color-stop(90%, #2a62bc));
|
|
|
|
|
|
|
215 |
background-image: linear-gradient(#3875d7 20%, #2a62bc 90%);
|
216 |
color: #fff;
|
217 |
}
|
218 |
+
|
219 |
.chosen-container .chosen-results li.no-results {
|
220 |
color: #777;
|
221 |
display: list-item;
|
222 |
background: #f4f4f4;
|
223 |
}
|
224 |
+
|
225 |
.chosen-container .chosen-results li.group-result {
|
226 |
display: list-item;
|
227 |
font-weight: bold;
|
228 |
cursor: default;
|
229 |
}
|
230 |
+
|
231 |
.chosen-container .chosen-results li.group-option {
|
232 |
padding-left: 15px;
|
233 |
}
|
234 |
+
|
235 |
.chosen-container .chosen-results li em {
|
236 |
font-style: normal;
|
237 |
text-decoration: underline;
|
245 |
margin: 0;
|
246 |
padding: 0 5px;
|
247 |
width: 100%;
|
248 |
+
height: auto;
|
|
|
249 |
border: 1px solid #aaa;
|
250 |
background-color: #fff;
|
251 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(1%, #eee), color-stop(15%, #fff));
|
252 |
+
background-image: linear-gradient(#eee 1%, #fff 15%);
|
|
|
|
|
|
|
253 |
cursor: text;
|
254 |
}
|
255 |
+
|
256 |
.chosen-container-multi .chosen-choices li {
|
257 |
float: left;
|
258 |
list-style: none;
|
259 |
}
|
260 |
+
|
261 |
.chosen-container-multi .chosen-choices li.search-field {
|
262 |
margin: 0;
|
263 |
padding: 0;
|
264 |
white-space: nowrap;
|
265 |
}
|
266 |
+
|
267 |
.chosen-container-multi .chosen-choices li.search-field input[type="text"] {
|
268 |
margin: 1px 0;
|
269 |
padding: 0;
|
271 |
outline: 0;
|
272 |
border: 0 !important;
|
273 |
background: transparent !important;
|
274 |
+
-webkit-box-shadow: none;
|
275 |
+
box-shadow: none;
|
276 |
color: #999;
|
277 |
font-size: 100%;
|
278 |
font-family: sans-serif;
|
279 |
line-height: normal;
|
280 |
border-radius: 0;
|
281 |
+
width: 25px;
|
282 |
}
|
283 |
+
|
284 |
.chosen-container-multi .chosen-choices li.search-choice {
|
285 |
position: relative;
|
286 |
margin: 3px 5px 3px 0;
|
289 |
max-width: 100%;
|
290 |
border-radius: 3px;
|
291 |
background-color: #eeeeee;
|
292 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), to(#eee));
|
293 |
+
background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
|
|
|
|
|
|
|
294 |
background-size: 100% 19px;
|
295 |
background-repeat: repeat-x;
|
296 |
background-clip: padding-box;
|
297 |
+
-webkit-box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
|
298 |
+
box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
|
299 |
color: #333;
|
300 |
line-height: 13px;
|
301 |
cursor: default;
|
302 |
}
|
303 |
+
|
304 |
.chosen-container-multi .chosen-choices li.search-choice span {
|
305 |
word-wrap: break-word;
|
306 |
}
|
307 |
+
|
308 |
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
|
309 |
position: absolute;
|
310 |
top: 4px;
|
312 |
display: block;
|
313 |
width: 12px;
|
314 |
height: 12px;
|
315 |
+
background: url("../images/chosen/chosen-sprite.png") -42px 1px no-repeat;
|
316 |
font-size: 1px;
|
317 |
}
|
318 |
+
|
319 |
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
|
320 |
background-position: -42px -10px;
|
321 |
}
|
322 |
+
|
323 |
.chosen-container-multi .chosen-choices li.search-choice-disabled {
|
324 |
padding-right: 5px;
|
325 |
border: 1px solid #ccc;
|
326 |
background-color: #e4e4e4;
|
327 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), to(#eee));
|
328 |
+
background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
|
|
|
|
|
|
|
329 |
color: #666;
|
330 |
}
|
331 |
+
|
332 |
.chosen-container-multi .chosen-choices li.search-choice-focus {
|
333 |
background: #d4d4d4;
|
334 |
}
|
335 |
+
|
336 |
.chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {
|
337 |
background-position: -42px -10px;
|
338 |
}
|
339 |
+
|
340 |
.chosen-container-multi .chosen-results {
|
341 |
margin: 0;
|
342 |
padding: 0;
|
343 |
}
|
344 |
+
|
345 |
.chosen-container-multi .chosen-drop .result-selected {
|
346 |
display: list-item;
|
347 |
color: #ccc;
|
352 |
/* @group Active */
|
353 |
.chosen-container-active .chosen-single {
|
354 |
border: 1px solid #5897fb;
|
355 |
+
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
356 |
+
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
357 |
}
|
358 |
+
|
359 |
.chosen-container-active.chosen-with-drop .chosen-single {
|
360 |
border: 1px solid #aaa;
|
|
|
361 |
border-bottom-right-radius: 0;
|
|
|
362 |
border-bottom-left-radius: 0;
|
363 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(20%, #eee), color-stop(80%, #fff));
|
364 |
+
background-image: linear-gradient(#eee 20%, #fff 80%);
|
365 |
+
-webkit-box-shadow: 0 1px 0 #fff inset;
|
366 |
+
box-shadow: 0 1px 0 #fff inset;
|
|
|
|
|
367 |
}
|
368 |
+
|
369 |
.chosen-container-active.chosen-with-drop .chosen-single div {
|
370 |
border-left: none;
|
371 |
background: transparent;
|
372 |
}
|
373 |
+
|
374 |
.chosen-container-active.chosen-with-drop .chosen-single div b {
|
375 |
background-position: -18px 2px;
|
376 |
}
|
377 |
+
|
378 |
.chosen-container-active .chosen-choices {
|
379 |
border: 1px solid #5897fb;
|
380 |
+
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
381 |
+
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
382 |
}
|
383 |
+
|
384 |
.chosen-container-active .chosen-choices li.search-field input[type="text"] {
|
385 |
color: #222 !important;
|
386 |
}
|
391 |
opacity: 0.5 !important;
|
392 |
cursor: default;
|
393 |
}
|
394 |
+
|
395 |
.chosen-disabled .chosen-single {
|
396 |
cursor: default;
|
397 |
}
|
398 |
+
|
399 |
.chosen-disabled .chosen-choices .search-choice .search-choice-close {
|
400 |
cursor: default;
|
401 |
}
|
405 |
.chosen-rtl {
|
406 |
text-align: right;
|
407 |
}
|
408 |
+
|
409 |
.chosen-rtl .chosen-single {
|
410 |
overflow: visible;
|
411 |
padding: 0 8px 0 0;
|
412 |
}
|
413 |
+
|
414 |
.chosen-rtl .chosen-single span {
|
415 |
margin-right: 0;
|
416 |
margin-left: 26px;
|
417 |
direction: rtl;
|
418 |
}
|
419 |
+
|
420 |
.chosen-rtl .chosen-single-with-deselect span {
|
421 |
margin-left: 38px;
|
422 |
}
|
423 |
+
|
424 |
.chosen-rtl .chosen-single div {
|
425 |
right: auto;
|
426 |
left: 3px;
|
427 |
}
|
428 |
+
|
429 |
.chosen-rtl .chosen-single abbr {
|
430 |
right: auto;
|
431 |
left: 26px;
|
432 |
}
|
433 |
+
|
434 |
.chosen-rtl .chosen-choices li {
|
435 |
float: right;
|
436 |
}
|
437 |
+
|
438 |
.chosen-rtl .chosen-choices li.search-field input[type="text"] {
|
439 |
direction: rtl;
|
440 |
}
|
441 |
+
|
442 |
.chosen-rtl .chosen-choices li.search-choice {
|
443 |
margin: 3px 5px 3px 0;
|
444 |
padding: 3px 5px 3px 19px;
|
445 |
}
|
446 |
+
|
447 |
.chosen-rtl .chosen-choices li.search-choice .search-choice-close {
|
448 |
right: auto;
|
449 |
left: 4px;
|
450 |
}
|
451 |
+
|
|
|
|
|
|
|
452 |
.chosen-rtl.chosen-container-single .chosen-results {
|
453 |
margin: 0 0 4px 4px;
|
454 |
padding: 0 4px 0 0;
|
455 |
}
|
456 |
+
|
457 |
.chosen-rtl .chosen-results li.group-option {
|
458 |
padding-right: 15px;
|
459 |
padding-left: 0;
|
460 |
}
|
461 |
+
|
462 |
.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div {
|
463 |
border-right: none;
|
464 |
}
|
465 |
+
|
466 |
.chosen-rtl .chosen-search input[type="text"] {
|
467 |
padding: 4px 5px 4px 20px;
|
468 |
+
background: url("../images/chosen/chosen-sprite.png") no-repeat -30px -20px;
|
|
|
469 |
direction: rtl;
|
470 |
}
|
471 |
+
|
472 |
.chosen-rtl.chosen-container-single .chosen-single div b {
|
473 |
background-position: 6px 2px;
|
474 |
}
|
475 |
+
|
476 |
.chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b {
|
477 |
background-position: -12px 2px;
|
478 |
}
|
487 |
.chosen-container-multi .chosen-choices .search-choice .search-choice-close,
|
488 |
.chosen-container .chosen-results-scroll-down span,
|
489 |
.chosen-container .chosen-results-scroll-up span {
|
490 |
+
background-image: url("../images/chosen/chosen-sprite@2x.png") !important;
|
491 |
background-size: 52px 37px !important;
|
492 |
background-repeat: no-repeat !important;
|
493 |
}
|
494 |
}
|
495 |
+
|
496 |
/* @end */
|
@@ -1 +1 @@
|
|
1 |
-
.chosen-container{position:relative;display:inline-block;vertical-align:middle;font-size:13px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.chosen-container *{-webkit-box-sizing:border-box;box-sizing:border-box}.chosen-container .chosen-drop{position:absolute;top:100%;
|
1 |
+
.chosen-container{position:relative;display:inline-block;vertical-align:middle;font-size:13px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.chosen-container *{-webkit-box-sizing:border-box;box-sizing:border-box}.chosen-container .chosen-drop{position:absolute;top:100%;z-index:1010;width:100%;border:1px solid #aaa;border-top:0;background:#fff;-webkit-box-shadow:0 4px 5px rgba(0,0,0,.15);box-shadow:0 4px 5px rgba(0,0,0,.15);clip:rect(0,0,0,0);-webkit-clip-path:inset(100% 100%);clip-path:inset(100% 100%)}.chosen-container.chosen-with-drop .chosen-drop{clip:auto;-webkit-clip-path:none;clip-path:none}.chosen-container a{cursor:pointer}.chosen-container .chosen-single .group-name,.chosen-container .search-choice .group-name{margin-right:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:400;color:#999}.chosen-container .chosen-single .group-name:after,.chosen-container .search-choice .group-name:after{content:":";padding-left:2px;vertical-align:top}.chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:25px;border:1px solid #aaa;border-radius:5px;background-color:#fff;background:-webkit-gradient(linear,left top,left bottom,color-stop(20%,#fff),color-stop(50%,#f6f6f6),color-stop(52%,#eee),to(#f4f4f4));background:linear-gradient(#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4);background-clip:padding-box;-webkit-box-shadow:0 0 3px #fff inset,0 1px 1px rgba(0,0,0,.1);box-shadow:inset 0 0 3px #fff,0 1px 1px rgba(0,0,0,.1);color:#444;text-decoration:none;white-space:nowrap;line-height:24px}.chosen-container-single .chosen-default{color:#999}.chosen-container-single .chosen-single span{display:block;overflow:hidden;margin-right:26px;text-overflow:ellipsis;white-space:nowrap}.chosen-container-single .chosen-single-with-deselect span{margin-right:38px}.chosen-container-single .chosen-single abbr{position:absolute;top:6px;right:26px;display:block;width:12px;height:12px;background:url(../images/chosen/chosen-sprite.png) -42px 1px no-repeat;font-size:1px}.chosen-container-single.chosen-disabled .chosen-single abbr:hover,.chosen-container-single .chosen-single abbr:hover{background-position:-42px -10px}.chosen-container-single .chosen-single div{position:absolute;top:0;right:0;display:block;width:18px;height:100%}.chosen-container-single .chosen-single div b{display:block;width:100%;height:100%;background:url(../images/chosen/chosen-sprite.png) no-repeat 0 2px}.chosen-container-single .chosen-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.chosen-container-single .chosen-search input[type=text]{margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #aaa;background:url(../images/chosen/chosen-sprite.png) no-repeat 100% -20px;font-size:1em;font-family:sans-serif;line-height:normal;border-radius:0}.chosen-container-single .chosen-drop{margin-top:-1px;border-radius:0 0 4px 4px;background-clip:padding-box}.chosen-container-single.chosen-container-single-nosearch .chosen-search{position:absolute;clip:rect(0,0,0,0);-webkit-clip-path:inset(100% 100%);clip-path:inset(100% 100%)}.chosen-container .chosen-results{color:#444;position:relative;overflow-x:hidden;overflow-y:auto;margin:0 4px 4px 0;padding:0 0 0 4px;max-height:240px;-webkit-overflow-scrolling:touch}.chosen-container .chosen-results li{display:none;margin:0;padding:5px 6px;list-style:none;line-height:15px;word-wrap:break-word;-webkit-touch-callout:none}.chosen-container .chosen-results li.active-result{display:list-item;cursor:pointer}.chosen-container .chosen-results li.disabled-result{display:list-item;color:#ccc;cursor:default}.chosen-container .chosen-results li.highlighted{background-color:#3875d7;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(20%,#3875d7),color-stop(90%,#2a62bc));background-image:linear-gradient(#3875d7 20%,#2a62bc 90%);color:#fff}.chosen-container .chosen-results li.no-results{color:#777;display:list-item;background:#f4f4f4}.chosen-container .chosen-results li.group-result{display:list-item;font-weight:700;cursor:default}.chosen-container .chosen-results li.group-option{padding-left:15px}.chosen-container .chosen-results li em{font-style:normal;text-decoration:underline}.chosen-container-multi .chosen-choices{position:relative;overflow:hidden;margin:0;padding:0 5px;width:100%;height:auto;border:1px solid #aaa;background-color:#fff;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(1%,#eee),color-stop(15%,#fff));background-image:linear-gradient(#eee 1%,#fff 15%);cursor:text}.chosen-container-multi .chosen-choices li{float:left;list-style:none}.chosen-container-multi .chosen-choices li.search-field{margin:0;padding:0;white-space:nowrap}.chosen-container-multi .chosen-choices li.search-field input[type=text]{margin:1px 0;padding:0;height:25px;outline:0;border:0!important;background:transparent!important;-webkit-box-shadow:none;box-shadow:none;color:#999;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0;width:25px}.chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 5px 3px 0;padding:3px 20px 3px 5px;border:1px solid #aaa;max-width:100%;border-radius:3px;background-color:#eee;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(20%,#f4f4f4),color-stop(50%,#f0f0f0),color-stop(52%,#e8e8e8),to(#eee));background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee);background-size:100% 19px;background-repeat:repeat-x;background-clip:padding-box;-webkit-box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);box-shadow:inset 0 0 2px #fff,0 1px 0 rgba(0,0,0,.05);color:#333;line-height:13px;cursor:default}.chosen-container-multi .chosen-choices li.search-choice span{word-wrap:break-word}.chosen-container-multi .chosen-choices li.search-choice .search-choice-close{position:absolute;top:4px;right:3px;display:block;width:12px;height:12px;background:url(../images/chosen/chosen-sprite.png) -42px 1px no-repeat;font-size:1px}.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover{background-position:-42px -10px}.chosen-container-multi .chosen-choices li.search-choice-disabled{padding-right:5px;border:1px solid #ccc;background-color:#e4e4e4;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(20%,#f4f4f4),color-stop(50%,#f0f0f0),color-stop(52%,#e8e8e8),to(#eee));background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee);color:#666}.chosen-container-multi .chosen-choices li.search-choice-focus{background:#d4d4d4}.chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close{background-position:-42px -10px}.chosen-container-multi .chosen-results{margin:0;padding:0}.chosen-container-multi .chosen-drop .result-selected{display:list-item;color:#ccc;cursor:default}.chosen-container-active .chosen-single{border:1px solid #5897fb;-webkit-box-shadow:0 0 5px rgba(0,0,0,.3);box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #aaa;border-bottom-right-radius:0;border-bottom-left-radius:0;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(20%,#eee),color-stop(80%,#fff));background-image:linear-gradient(#eee 20%,#fff 80%);-webkit-box-shadow:0 1px 0 #fff inset;box-shadow:inset 0 1px 0 #fff}.chosen-container-active.chosen-with-drop .chosen-single div{border-left:none;background:transparent}.chosen-container-active.chosen-with-drop .chosen-single div b{background-position:-18px 2px}.chosen-container-active .chosen-choices{border:1px solid #5897fb;-webkit-box-shadow:0 0 5px rgba(0,0,0,.3);box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active .chosen-choices li.search-field input[type=text]{color:#222!important}.chosen-disabled{opacity:.5!important;cursor:default}.chosen-disabled .chosen-choices .search-choice .search-choice-close,.chosen-disabled .chosen-single{cursor:default}.chosen-rtl{text-align:right}.chosen-rtl .chosen-single{overflow:visible;padding:0 8px 0 0}.chosen-rtl .chosen-single span{margin-right:0;margin-left:26px;direction:rtl}.chosen-rtl .chosen-single-with-deselect span{margin-left:38px}.chosen-rtl .chosen-single div{right:auto;left:3px}.chosen-rtl .chosen-single abbr{right:auto;left:26px}.chosen-rtl .chosen-choices li{float:right}.chosen-rtl .chosen-choices li.search-field input[type=text]{direction:rtl}.chosen-rtl .chosen-choices li.search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.chosen-rtl .chosen-choices li.search-choice .search-choice-close{right:auto;left:4px}.chosen-rtl.chosen-container-single .chosen-results{margin:0 0 4px 4px;padding:0 4px 0 0}.chosen-rtl .chosen-results li.group-option{padding-right:15px;padding-left:0}.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div{border-right:none}.chosen-rtl .chosen-search input[type=text]{padding:4px 5px 4px 20px;background:url(../images/chosen/chosen-sprite.png) no-repeat -30px -20px;direction:rtl}.chosen-rtl.chosen-container-single .chosen-single div b{background-position:6px 2px}.chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b{background-position:-12px 2px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min-resolution:1.5dppx),only screen and (min-resolution:144dpi){.chosen-container-multi .chosen-choices .search-choice .search-choice-close,.chosen-container-single .chosen-search input[type=text],.chosen-container-single .chosen-single abbr,.chosen-container-single .chosen-single div b,.chosen-container .chosen-results-scroll-down span,.chosen-container .chosen-results-scroll-up span,.chosen-rtl .chosen-search input[type=text]{background-image:url(../images/chosen/chosen-sprite@2x.png)!important;background-size:52px 37px!important;background-repeat:no-repeat!important}}
|
@@ -19,6 +19,7 @@ h2.wpmm-title {
|
|
19 |
.wpmm-wrapper #sidebar {
|
20 |
padding: 0 0 0 20px;
|
21 |
width: 280px;
|
|
|
22 |
}
|
23 |
|
24 |
.wpmm-wrapper #sidebar .sidebar_box {
|
@@ -56,7 +57,7 @@ h2.wpmm-title {
|
|
56 |
.nav-tab-wrapper {
|
57 |
border-bottom: 1px solid #ccc;
|
58 |
padding-bottom: 0;
|
59 |
-
padding-
|
60 |
}
|
61 |
|
62 |
.nav-tab-wrapper a {
|
@@ -64,6 +65,15 @@ h2.wpmm-title {
|
|
64 |
font-weight: 700;
|
65 |
line-height: 24px;
|
66 |
padding: 6px 10px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
}
|
68 |
|
69 |
/* TABS CONTENT */
|
@@ -111,6 +121,30 @@ h2.wpmm-title {
|
|
111 |
margin: 0 6px 0px 6px;
|
112 |
}
|
113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
@media screen and (max-width: 782px) {
|
115 |
.tabs-content td.has-inline-color-picker {
|
116 |
display: flex;
|
19 |
.wpmm-wrapper #sidebar {
|
20 |
padding: 0 0 0 20px;
|
21 |
width: 280px;
|
22 |
+
vertical-align: top;
|
23 |
}
|
24 |
|
25 |
.wpmm-wrapper #sidebar .sidebar_box {
|
57 |
.nav-tab-wrapper {
|
58 |
border-bottom: 1px solid #ccc;
|
59 |
padding-bottom: 0;
|
60 |
+
padding-top: 0 !important;
|
61 |
}
|
62 |
|
63 |
.nav-tab-wrapper a {
|
65 |
font-weight: 700;
|
66 |
line-height: 24px;
|
67 |
padding: 6px 10px;
|
68 |
+
display: flex;
|
69 |
+
align-content: center;
|
70 |
+
align-items: center;
|
71 |
+
}
|
72 |
+
|
73 |
+
.nav-tab-wrapper a .nav-tab-icon {
|
74 |
+
width: 16px;
|
75 |
+
height: 16px;
|
76 |
+
margin-right: 3px;
|
77 |
}
|
78 |
|
79 |
/* TABS CONTENT */
|
121 |
margin: 0 6px 0px 6px;
|
122 |
}
|
123 |
|
124 |
+
.tabs-content .shortcodes-list-wrapper {
|
125 |
+
margin-top: 4px;
|
126 |
+
margin-bottom: 0;
|
127 |
+
color: #646970;
|
128 |
+
}
|
129 |
+
|
130 |
+
.tabs-content ul.shortcodes-list {
|
131 |
+
list-style-type: disc;
|
132 |
+
padding-left: 15px;
|
133 |
+
font-size: 12px;
|
134 |
+
display: none;
|
135 |
+
}
|
136 |
+
|
137 |
+
.tabs-content ul.shortcodes-list span {
|
138 |
+
background-color: #d3d3d3;
|
139 |
+
padding: 2px 3px;
|
140 |
+
margin-top: 4px;
|
141 |
+
display: inline-block;
|
142 |
+
}
|
143 |
+
|
144 |
+
.tabs-content ul.shortcodes-list.show {
|
145 |
+
display: block;
|
146 |
+
}
|
147 |
+
|
148 |
@media screen and (max-width: 782px) {
|
149 |
.tabs-content td.has-inline-color-picker {
|
150 |
display: flex;
|
@@ -1 +1 @@
|
|
1 |
-
h2.wpmm-title{background:url(../images/icon-48.png) no-repeat 0;line-height:42px!important;margin-bottom:30px!important;height:48px;padding-left:55px!important}.wpmm-wrapper{display:table;width:100%}.wpmm-wrapper #content{min-width:800px}.wpmm-wrapper #sidebar{padding:0 0 0 20px;width:280px}.wpmm-wrapper #sidebar .sidebar_box{background:none repeat scroll 0 0 #fff;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);min-width:255px;line-height:1;margin-bottom:20px;padding:0}.wpmm-wrapper #sidebar .sidebar_box h3{margin:0;padding:8px 12px;border-bottom:1px solid #ececec}.wpmm-wrapper #sidebar .sidebar_box .inside{margin:6px 0 0;font-size:13px;line-height:1.4em;padding:0 12px 12px}.wpmm-wrapper .wrapper-cell{display:table-cell}.wpmm-wrapper .hidden{display:none}.nav-tab-wrapper{border-bottom:1px solid #ccc;padding-bottom:0;padding-
|
1 |
+
h2.wpmm-title{background:url(../images/icon-48.png) no-repeat 0;line-height:42px!important;margin-bottom:30px!important;height:48px;padding-left:55px!important}.wpmm-wrapper{display:table;width:100%}.wpmm-wrapper #content{min-width:800px}.wpmm-wrapper #sidebar{padding:0 0 0 20px;width:280px;vertical-align:top}.wpmm-wrapper #sidebar .sidebar_box{background:none repeat scroll 0 0 #fff;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);min-width:255px;line-height:1;margin-bottom:20px;padding:0}.wpmm-wrapper #sidebar .sidebar_box h3{margin:0;padding:8px 12px;border-bottom:1px solid #ececec}.wpmm-wrapper #sidebar .sidebar_box .inside{margin:6px 0 0;font-size:13px;line-height:1.4em;padding:0 12px 12px}.wpmm-wrapper .wrapper-cell{display:table-cell}.wpmm-wrapper .hidden{display:none}.nav-tab-wrapper{border-bottom:1px solid #ccc;padding-bottom:0;padding-top:0!important}.nav-tab-wrapper a{font-size:15px;font-weight:700;line-height:24px;padding:6px 10px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-line-pack:center;align-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.nav-tab-wrapper a .nav-tab-icon{width:16px;height:16px;margin-right:3px}.tabs-content{margin-top:20px;padding-left:10px}.tabs-content .wp-color-result{margin-bottom:-2px}.tabs-content ul.bg_list{float:left}.tabs-content ul.bg_list li{float:left;margin-right:7px;opacity:.4}.tabs-content ul.bg_list li.active{opacity:1}.tabs-content ul.bg_list li input{display:none}.tabs-content .countdown_details input{width:70px}.tabs-content .countdown_details .margin_left{margin-left:30px}.tabs-content td.has-inline-color-picker{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.tabs-content td.has-inline-color-picker .wp-picker-container .wp-color-result{margin:0 6px}.tabs-content .shortcodes-list-wrapper{margin-top:4px;margin-bottom:0;color:#646970}.tabs-content ul.shortcodes-list{list-style-type:disc;padding-left:15px;font-size:12px;display:none}.tabs-content ul.shortcodes-list span{background-color:#d3d3d3;padding:2px 3px;margin-top:4px;display:inline-block}.tabs-content ul.shortcodes-list.show{display:block}@media screen and (max-width:782px){.tabs-content td.has-inline-color-picker{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.tabs-content td.has-inline-color-picker .wp-picker-container{margin-top:6px}.tabs-content .countdown_details .margin_left,.tabs-content td.has-inline-color-picker .wp-picker-container .wp-color-result{margin-left:0}}.tabs-content .wp-picker-holder{position:absolute;z-index:9999999}.tabs-content #subscribers_wrap .buttons{margin-top:8px}.tabs-content .bot-hint{background:#9f9f9f;padding:10px;float:right;border-radius:5px;color:#fff}.tabs-content .bot-button{display:inline-block}#sidebar .info_box ul{margin-top:10px;margin-bottom:-5px}#sidebar .resources_box ul,#sidebar .themes_box ul{margin-top:10px;margin-bottom:-15px}#sidebar .resources_box li,#sidebar .themes_box li{margin-bottom:10px}.chosen-container,.chosen-select{width:195px!important}.chosen-container-active .chosen-choices{-webkit-box-shadow:none!important;box-shadow:none!important;background-image:none!important}.chosen-container-multi .chosen-choices{border:1px solid #ddd!important;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.07) inset!important;box-shadow:inset 0 1px 2px rgba(0,0,0,.07)!important;background-image:none!important}.chosen-container .chosen-results li.highlighted{background-color:#0074a2!important;background-image:none!important}#footer-left .wpmm_rating:hover{text-decoration:none!important;color:#ffb900!important}
|
@@ -34,15 +34,6 @@
|
|
34 |
align-items: center;
|
35 |
}
|
36 |
|
37 |
-
/*TODO: Remove this rule*/
|
38 |
-
/* With Image on Background ---- */
|
39 |
-
/*.bg-image {
|
40 |
-
background-image: url(http://static.simpledesktops.com/uploads/desktops/2011/09/01/urso_polar-10.png);
|
41 |
-
background-size: cover;
|
42 |
-
background-position: center;
|
43 |
-
background-repeat: no-repeat;
|
44 |
-
}*/
|
45 |
-
|
46 |
.background .bot-chat-wrapper {
|
47 |
border-radius: 10px;
|
48 |
background-color: rgb(255, 255, 255);
|
@@ -107,9 +98,9 @@ CHAT BOT STYLING
|
|
107 |
max-width: 700px;
|
108 |
width: 100%;
|
109 |
height: 460px;
|
110 |
-
padding-top:
|
111 |
padding-right: 40px;
|
112 |
-
padding-bottom:
|
113 |
padding-left: 75px;
|
114 |
overflow-y: scroll;
|
115 |
overflow-x: hidden;
|
@@ -131,7 +122,6 @@ CHAT BOT STYLING
|
|
131 |
left: -70px;
|
132 |
top: -10px;
|
133 |
|
134 |
-
/*background-image: url(/images/user-avatar.jpg);*/
|
135 |
background-size: cover;
|
136 |
background-repeat: no-repeat;
|
137 |
background-position: center;
|
@@ -418,6 +408,13 @@ CHAT BOT STYLING
|
|
418 |
/*
|
419 |
// CUSTOM SCROLL BAR
|
420 |
*/
|
|
|
|
|
421 |
.bot-chat-wrapper::-webkit-scrollbar {
|
422 |
width: 0px;
|
|
|
|
|
|
|
|
|
|
|
423 |
}
|
34 |
align-items: center;
|
35 |
}
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
.background .bot-chat-wrapper {
|
38 |
border-radius: 10px;
|
39 |
background-color: rgb(255, 255, 255);
|
98 |
max-width: 700px;
|
99 |
width: 100%;
|
100 |
height: 460px;
|
101 |
+
padding-top: 45px;
|
102 |
padding-right: 40px;
|
103 |
+
padding-bottom: 45px;
|
104 |
padding-left: 75px;
|
105 |
overflow-y: scroll;
|
106 |
overflow-x: hidden;
|
122 |
left: -70px;
|
123 |
top: -10px;
|
124 |
|
|
|
125 |
background-size: cover;
|
126 |
background-repeat: no-repeat;
|
127 |
background-position: center;
|
408 |
/*
|
409 |
// CUSTOM SCROLL BAR
|
410 |
*/
|
411 |
+
|
412 |
+
/* Hide scrollbar in Chrome (Webkit) */
|
413 |
.bot-chat-wrapper::-webkit-scrollbar {
|
414 |
width: 0px;
|
415 |
+
}
|
416 |
+
|
417 |
+
/* Hide scrollbar in Firefox */
|
418 |
+
.bot-chat-wrapper {
|
419 |
+
scrollbar-width: none;
|
420 |
}
|
@@ -1 +1 @@
|
|
1 |
-
.bot .wrap{margin-top:60px}.bot .wrap h1{margin-bottom:50px}.wrap.under-bot{margin-top:50px}.wrap.under-bot .countdown,.wrap.under-bot .social{margin-bottom:50px}.bot-container *,.bot-container :after,.bot-container :before{-webkit-box-sizing:border-box;box-sizing:border-box}.bot-container p{margin-top:0;margin-bottom:16px}.bot-container a{text-decoration:none;cursor:pointer}.bot-container ul{list-style-type:none;padding-left:0}.bot-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.background .bot-chat-wrapper{border-radius:10px;background-color:#fff;-webkit-box-shadow:0 4px 40px rgba(0,0,0,.2);box-shadow:0 4px 40px rgba(0,0,0,.2);max-width:720px;padding-left:110px}.chat-message-wrapper{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:16px;width:100%;padding-left:80px}.chat-message-wrapper .chat-message{max-width:100%;width:100%;color:#3a3e45;line-height:24px}.absolute-wrapper{position:absolute;left:0;bottom:20%}.message-details{position:relative}.chat-message-wrapper .bot-avatar{display:none;top:-18px}.chat-message-wrapper:last-child .bot-avatar{display:block}.chat-message-wrapper .message-date{font-size:12px;color:#c3c3c3}.chat-message-wrapper p,.typing-wrapper p{margin-bottom:0}.bot-chat-wrapper{max-width:700px;width:100%;height:460px;padding:
|
1 |
+
.bot .wrap{margin-top:60px}.bot .wrap h1{margin-bottom:50px}.wrap.under-bot{margin-top:50px}.wrap.under-bot .countdown,.wrap.under-bot .social{margin-bottom:50px}.bot-container *,.bot-container :after,.bot-container :before{-webkit-box-sizing:border-box;box-sizing:border-box}.bot-container p{margin-top:0;margin-bottom:16px}.bot-container a{text-decoration:none;cursor:pointer}.bot-container ul{list-style-type:none;padding-left:0}.bot-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.background .bot-chat-wrapper{border-radius:10px;background-color:#fff;-webkit-box-shadow:0 4px 40px rgba(0,0,0,.2);box-shadow:0 4px 40px rgba(0,0,0,.2);max-width:720px;padding-left:110px}.chat-message-wrapper{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:16px;width:100%;padding-left:80px}.chat-message-wrapper .chat-message{max-width:100%;width:100%;color:#3a3e45;line-height:24px}.absolute-wrapper{position:absolute;left:0;bottom:20%}.message-details{position:relative}.chat-message-wrapper .bot-avatar{display:none;top:-18px}.chat-message-wrapper:last-child .bot-avatar{display:block}.chat-message-wrapper .message-date{font-size:12px;color:#c3c3c3}.chat-message-wrapper p,.typing-wrapper p{margin-bottom:0}.bot-chat-wrapper{max-width:700px;width:100%;height:460px;padding:45px 40px 45px 75px;overflow-y:scroll;overflow-x:hidden}.typing-wrapper{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:16px;position:relative}.bot-avatar{width:60px;height:60px;position:absolute;left:-70px;top:-10px;background-size:cover;background-repeat:no-repeat;background-position:50%;border-radius:50%;margin-right:10px}.typing-wrapper .bot-name{margin-right:22px;font-weight:700}.chat-message{background-color:#f4f4f4;border-radius:5px;padding:15px;max-width:75%;clear:both;position:relative;float:left;-webkit-animation:fade-in-left .2s linear both;animation:fade-in-left .2s linear both}.chat-message:before{content:" ";position:absolute;width:0;height:0;left:-20px;bottom:20%;border:10px solid transparent;border-right-color:#f4f4f4}.cf:after,.cf:before{content:" ";display:table}.cf:after{clear:both}.chat-message.user{-webkit-animation:fade-in-right .2s linear .4s both;animation:fade-in-right .2s linear .4s both;background:#a0a0a0;color:#fff;float:right;padding:15px;font-size:14px}.chat-message a{color:#6ecff9;text-decoration:underline;-webkit-transition:all .3s ease;transition:all .3s ease}.chat-message a:hover{color:#38a9d9}.choices{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.choices .chat-message{background:none;color:#6ecff9;border:2px solid #6ecff9;cursor:pointer;-webkit-animation:fadeInGrownIn .5s ease;animation:fadeInGrownIn .5s ease;float:none;display:inline-block;-webkit-transition:all .3s ease;transition:all .3s ease}.choices .chat-message:first-child{margin-right:10px}.choices .chat-message:hover{background:#6ecff9;color:#fff}.input .chat-message.user{background:transparent;border-bottom:2px solid #6ecff9;border-radius:0;padding:10px}.input{-webkit-animation:fadeInGrownIn .5s ease;animation:fadeInGrownIn .5s ease}.input input{border:#fff;color:#000;background:none;-webkit-box-shadow:none;box-shadow:none;margin-right:60px;font-size:14px}.input input:focus{outline:none}.input input::-webkit-input-placeholder{color:#c3c3c3}.input input:-ms-input-placeholder{color:#c3c3c3}.input input:-moz-placeholder,.input input::-moz-placeholder{color:#c3c3c3}.input a{color:#6ecff9;text-decoration:none;text-transform:uppercase;cursor:pointer;font-size:14px;font-weight:700}.bot-error{width:100%;background:rgba(255,69,69,.8);line-height:65px;padding:0 50px;color:#fff;font-size:20px;position:fixed;bottom:-70px}.typing{border-radius:5px;background-color:#fff;-webkit-box-shadow:0 7px 15px 0 rgba(0,0,0,.1);box-shadow:0 7px 15px 0 rgba(0,0,0,.1);width:120px;height:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;-webkit-animation:fadeInGrownIn .5s ease;animation:fadeInGrownIn .5s ease}.typing .dot{border-radius:50%;width:8px;height:8px;display:block;margin-right:12px;-webkit-animation:wave .9s linear infinite;animation:wave .9s linear infinite}.typing .dot:first-child{background-color:#4f3beb}.typing .dot:nth-child(2){background-color:#6292f3;-webkit-animation-delay:-.7s;animation-delay:-.7s}.typing .dot:nth-child(3){background-color:#6ecff9;-webkit-animation-delay:-.5s;animation-delay:-.5s;margin-right:0}.bot-chat-wrapper .chat-message.user:before,.typing:before{content:"";display:none}@-webkit-keyframes fadeInGrownIn{0%{opacity:0;-webkit-transform:scale(.9);transform:scale(.9)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes fadeInGrownIn{0%{opacity:0;-webkit-transform:scale(.9);transform:scale(.9)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes fade-in-left{0%{-webkit-transform:translateX(-50px);transform:translateX(-50px);opacity:0}to{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}}@keyframes fade-in-left{0%{-webkit-transform:translateX(-50px);transform:translateX(-50px);opacity:0}to{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}}@-webkit-keyframes fade-in-right{0%{-webkit-transform:translateX(50px);transform:translateX(50px);opacity:0}to{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}}@keyframes fade-in-right{0%{-webkit-transform:translateX(50px);transform:translateX(50px);opacity:0}to{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}}@-webkit-keyframes wave{0%,60%,to{-webkit-transform:initial;transform:none}30%{-webkit-transform:translateY(-10px);transform:translateY(-10px)}}@keyframes wave{0%,60%,to{-webkit-transform:initial;transform:none}30%{-webkit-transform:translateY(-10px);transform:translateY(-10px)}}@media screen and (max-width:700px){.bot-avatar{display:none!important}.bg-image .bot-chat-wrapper,.bot-chat-wrapper{padding:20px}.bg-image .bot-chat-wrapper{margin-left:10px;margin-right:10px}.chat-message{max-width:100%}.input input{font-size:16px}}.bot-chat-wrapper::-webkit-scrollbar{width:0}.bot-chat-wrapper{scrollbar-width:none}
|
@@ -96,19 +96,30 @@ body {
|
|
96 |
height: auto;
|
97 |
}
|
98 |
|
|
|
|
|
|
|
|
|
|
|
99 |
.wrap h3 {
|
100 |
font-size: 24px;
|
101 |
font-weight: 400;
|
102 |
margin: 0 0 45px;
|
103 |
}
|
|
|
|
|
|
|
104 |
.wrap .author_link {
|
105 |
margin-top: 15px;
|
106 |
color: #616161;
|
107 |
margin: 0 0 50px;
|
108 |
}
|
|
|
|
|
109 |
.wrap .author_link a {
|
110 |
color: #000;
|
111 |
}
|
|
|
112 |
/**
|
113 |
* COUNTDOWN
|
114 |
**/
|
@@ -477,19 +488,16 @@ body {
|
|
477 |
|
478 |
@media only screen and (max-width: 700px) {
|
479 |
.wrap form.login_form {
|
480 |
-
width:
|
481 |
margin: 15px auto 0;
|
482 |
}
|
483 |
.wrap form.login_form input {
|
484 |
-
width:
|
485 |
-
margin: 0
|
486 |
-
}
|
487 |
-
.wrap form.login_form input[type="password"] {
|
488 |
-
margin: 0;
|
489 |
}
|
490 |
.wrap form.login_form input[type="submit"] {
|
491 |
width: 100%;
|
492 |
-
margin:
|
493 |
}
|
494 |
}
|
495 |
@media only screen and (max-width: 550px) {
|
@@ -503,6 +511,10 @@ body {
|
|
503 |
.wrap h2, .wrap h3 {
|
504 |
font-size: 18px;
|
505 |
}
|
|
|
|
|
|
|
|
|
506 |
.wrap form.subscribe_form {
|
507 |
box-sizing: border-box;
|
508 |
width: 100%;
|
@@ -541,16 +553,6 @@ body {
|
|
541 |
.contact .form input[type="submit"] {
|
542 |
width: 100%;
|
543 |
}
|
544 |
-
.wrap form.login_form {
|
545 |
-
width: 90%;
|
546 |
-
}
|
547 |
-
.wrap form.login_form input {
|
548 |
-
width: 100%;
|
549 |
-
margin: 0 0 10px 0;
|
550 |
-
}
|
551 |
-
.wrap form.login_form input[type="submit"] {
|
552 |
-
margin: 10px 0 0;
|
553 |
-
}
|
554 |
ul, ol {
|
555 |
width: 80%;
|
556 |
}
|
96 |
height: auto;
|
97 |
}
|
98 |
|
99 |
+
.wrap h2 .fluid-width-video-wrapper {
|
100 |
+
margin-top: 10px;
|
101 |
+
margin-bottom: 10px;
|
102 |
+
}
|
103 |
+
|
104 |
.wrap h3 {
|
105 |
font-size: 24px;
|
106 |
font-weight: 400;
|
107 |
margin: 0 0 45px;
|
108 |
}
|
109 |
+
|
110 |
+
/* keep .author_link for backward compatibility */
|
111 |
+
.wrap .footer_links,
|
112 |
.wrap .author_link {
|
113 |
margin-top: 15px;
|
114 |
color: #616161;
|
115 |
margin: 0 0 50px;
|
116 |
}
|
117 |
+
|
118 |
+
.wrap .footer_links a,
|
119 |
.wrap .author_link a {
|
120 |
color: #000;
|
121 |
}
|
122 |
+
|
123 |
/**
|
124 |
* COUNTDOWN
|
125 |
**/
|
488 |
|
489 |
@media only screen and (max-width: 700px) {
|
490 |
.wrap form.login_form {
|
491 |
+
width: 90%;
|
492 |
margin: 15px auto 0;
|
493 |
}
|
494 |
.wrap form.login_form input {
|
495 |
+
width: 100%;
|
496 |
+
margin: 0 0 10px 0;
|
|
|
|
|
|
|
497 |
}
|
498 |
.wrap form.login_form input[type="submit"] {
|
499 |
width: 100%;
|
500 |
+
margin: 5px 0 5px;
|
501 |
}
|
502 |
}
|
503 |
@media only screen and (max-width: 550px) {
|
511 |
.wrap h2, .wrap h3 {
|
512 |
font-size: 18px;
|
513 |
}
|
514 |
+
.wrap h2 .fluid-width-video-wrapper {
|
515 |
+
margin-top: 5px;
|
516 |
+
margin-bottom: 5px;
|
517 |
+
}
|
518 |
.wrap form.subscribe_form {
|
519 |
box-sizing: border-box;
|
520 |
width: 100%;
|
553 |
.contact .form input[type="submit"] {
|
554 |
width: 100%;
|
555 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
556 |
ul, ol {
|
557 |
width: 80%;
|
558 |
}
|
@@ -1 +1 @@
|
|
1 |
-
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;text-decoration:none}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{display:block;width:500px;margin:0 auto;text-align:left;position:relative;font-style:italic}blockquote:after,blockquote:before,q:after,q:before{content:'"';content:none}button,input{border-radius:0}table{border-collapse:collapse;border-spacing:0}em,i{font-style:italic}del{text-decoration:line-through}b,strong{font-weight:700}ol{width:600px;margin:0 auto;text-align:left}ol li{list-style-type:decimal}ul{width:600px;margin:0 auto;text-align:left}ul li{list-style:disc}a{color:inherit;text-decoration:underline}body,html{min-height:100%}body{background-color:#fff;color:#1b1f23;font-family:Helvetica Neue,Arial,sans-serif}.wrap{width:605px;margin:100px auto 0;text-align:center}.wrap h1{font-size:30px;font-weight:700;margin:0 0 90px}.wrap h2{font-size:24px;font-weight:400;line-height:45px;margin:0 0 80px}.wrap h2 img{max-width:100%;height:auto}.wrap h3{font-size:24px;font-weight:400;margin:0 0 45px}.wrap .author_link{color:#616161;margin:0 0 50px}.wrap .author_link a{color:#000}.wrap .countdown{margin:0 0 85px}.wrap .countdown span{font-size:30px}.wrap div.subscribe_border{border:3px solid #e0e0e0;-webkit-box-sizing:border-box;box-sizing:border-box;width:450px;display:inline-block;background-color:#fff}.wrap form.subscribe_form{margin:0 0 75px;overflow:hidden;text-align:center}.wrap .subscribe_form .privacy_checkbox{color:#909090;max-width:450px;margin:15px auto;position:relative}.wrap form.subscribe_form .privacy_checkbox label.error{display:block!important;position:absolute;font-size:11px;left:39%}.wrap .subscribe_form .privacy_checkbox input{float:none;margin:3px 4.7px}.wrap .subscribe_form .privacy_tail{font-size:11px;color:#909090;max-width:450px;margin:0 auto}.wrap form.subscribe_form input{margin:0;outline:0;border:0;float:left;font-size:18px;padding:20px 25px;-webkit-box-sizing:content-box;box-sizing:content-box}.wrap form.subscribe_form input[type=text]{width:245px}.wrap form.subscribe_form input[type=submit]{background:#000;color:#fff;float:right;cursor:pointer;padding:20px 30px;border-left:3px solid #e0e0e0;-webkit-transition:all .3s;transition:all .3s;border-radius:0!important;-webkit-appearance:none!important}.wrap form.subscribe_form input[type=submit]:hover{background:#fff;color:#000;border-left:3px solid #e0e0e0}.wrap form.subscribe_form input[type=submit]:active{background:#1e1e1e;color:#fff}.wrap form.subscribe_form .error{color:red}.wrap form.subscribe_form label.error{display:none!important}.wrap form.login_form{width:100%;margin:15px 0 0}.wrap form.login_form input{display:inline-block;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;border:3px solid #e2e2e2;font-family:Helvetica Neue,Arial,sans-serif;font-size:16px;margin:0 10px 0 0;outline:0;padding:15px}.wrap form.login_form input[type=submit]{background:#000;color:#fff;margin:0;border-color:#000;font-weight:700;padding:15px 30px;cursor:pointer}.wrap form.login_form input[type=submit]:active{position:relative;top:1px}.wrap .social{margin:0 0 70px}.wrap .social a{width:22px;height:22px;margin:0 0 20px 55px;background-image:url(../images/icn_sprite.png);background-repeat:no-repeat;display:inline-block;text-indent:-999em}.wrap .social a:first-of-type{margin:0 0 20px}.wrap .social .git{background-position:0 0}.wrap .social .fb{background-position:-240px 0}.wrap .social .instagram{background-position:-707px 0}.wrap .social .tw{background-position:-162px 0}.wrap .social .rss{background-position:-402px 0}.wrap .social .mail{background-position:-560px 0}.wrap .social .pin{background-position:-322px 0}.wrap .social .dribbble{background-position:-82px 0}.wrap .social .gplus{background-position:-486px 0}.wrap .social .linkedin{background-position:-633px 0}.wrap .contact_us{color:#000;border:3px solid #000;font-size:18px;padding:15px 40px;display:inline-block;margin:0 0 70px}.wrap .contact_us:hover{background:#000;color:#fff}.contact_us{text-decoration:none}.contact_us,input[type=submit]{-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.contact{position:fixed;display:none;overflow:auto;top:0;bottom:0;left:0;right:0;background:rgba(27,31,35,.95)}.contact label.error{color:red;float:left;font-size:11px;padding-top:10px}.close-contact_form{position:absolute;left:46%;top:-60px;cursor:pointer}.close-contact_form img{width:40px;height:40px}.contact .form{width:520px;text-align:center;padding:40px;background:#f9f9f9;-webkit-box-sizing:border-box;box-sizing:border-box;margin:100px auto;-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out}.contact .form input[type=submit],.contact .form input[type=text],.contact .form textarea{padding:15px 20px;margin:0;outline:0;width:100%;background:#f9f9f9;border:3px solid #e0e0e0;font-size:18px;font-family:Helvetica Neue,Arial,sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;resize:none}.contact .form label#content-error{margin-bottom:10px}.contact .form .privacy_checkbox{margin-top:20px;clear:both;color:#909090;font-size:15px;position:relative}.contact .form .privacy_checkbox label#acceptance-error{position:absolute;top:10px;left:39%}.contact .form .privacy_checkbox input{-webkit-transform:translatey(-2px);transform:translatey(-2px)}.contact .form .privacy_tail{font-size:11px;color:#c7c7c7;margin-top:16px;line-height:14px}.contact .form textarea{height:175px;padding:20px}.contact .form input[type=text]::-webkit-input-placeholder,.contact .form textarea::-webkit-input-placeholder{color:#dadada}.contact .form input[type=text]::-moz-input-placeholder,.contact .form textarea::-moz-input-placeholder{color:#dadada}.contact .form input[type=text]::-ms-input-placeholder,.contact .form textarea::-ms-input-placeholder{color:#dadada}.contact .form .col{width:205px;margin:0 0 30px;display:inline-block;float:left}.contact .form .col.last{float:right}.contact .form .submit{margin:30px 0 0;text-align:center;clear:left}.contact .form .submit input{cursor:pointer;display:inline-block;background:#1b1f24;color:#fff;border:0;padding:20px 45px;width:auto}.contact .move_top{-webkit-transform:perspective(1000px) translateY(-200px);transform:perspective(1000px) translateY(-200px)}.contact .move_bottom{-webkit-transform:perspective(1000px) translateY(0);transform:perspective(1000px) translateY(0)}.contact .zoom{-webkit-transform:perspective(1000px) scale(.5);transform:perspective(1000px) scale(.5);-webkit-transition:-webkit-transform .3s ease-in-out;transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out;transition:transform .3s ease-in-out,-webkit-transform .3s ease-in-out}.contact .zoomed{-webkit-transform:perspective(1000px) scale(1);transform:perspective(1000px) scale(1)}.contact .fold{-webkit-transform:perspective(1000px) rotateY(90deg);transform:perspective(1000px) rotateY(90deg)}.contact .unfold{-webkit-transform:perspective(1000px) rotateY(0);transform:perspective(1000px) rotateY(0)}.background{background:url(../images/backgrounds/bg1.jpg) no-repeat top fixed;background-size:cover}.background .countdown span{color:#fff}.background form.subscribe_form input[type=submit]{color:#000;background:#fff}.background form.subscribe_form input[type=text]{background:transparent;color:#fff}.background form.subscribe_form input.error[type=text]{color:red}.background form.subscribe_form input[type=text]::-webkit-input-placeholder{color:#fff}.background form.subscribe_form input[type=text]::-moz-input-placeholder{color:#fff}.background form.subscribe_form input[type=text]::-ms-input-placeholder{color:#fff}.background form.subscribe_form .subscribe_border{background-color:transparent}.background .contact_us{color:#fff;border-color:#fff}@media only screen and (max-width:700px){.wrap form.login_form{width:
|
1 |
+
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;text-decoration:none}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{display:block;width:500px;margin:0 auto;text-align:left;position:relative;font-style:italic}blockquote:after,blockquote:before,q:after,q:before{content:'"';content:none}button,input{border-radius:0}table{border-collapse:collapse;border-spacing:0}em,i{font-style:italic}del{text-decoration:line-through}b,strong{font-weight:700}ol{width:600px;margin:0 auto;text-align:left}ol li{list-style-type:decimal}ul{width:600px;margin:0 auto;text-align:left}ul li{list-style:disc}a{color:inherit;text-decoration:underline}body,html{min-height:100%}body{background-color:#fff;color:#1b1f23;font-family:Helvetica Neue,Arial,sans-serif}.wrap{width:605px;margin:100px auto 0;text-align:center}.wrap h1{font-size:30px;font-weight:700;margin:0 0 90px}.wrap h2{font-size:24px;font-weight:400;line-height:45px;margin:0 0 80px}.wrap h2 img{max-width:100%;height:auto}.wrap h2 .fluid-width-video-wrapper{margin-top:10px;margin-bottom:10px}.wrap h3{font-size:24px;font-weight:400;margin:0 0 45px}.wrap .author_link,.wrap .footer_links{color:#616161;margin:0 0 50px}.wrap .author_link a,.wrap .footer_links a{color:#000}.wrap .countdown{margin:0 0 85px}.wrap .countdown span{font-size:30px}.wrap div.subscribe_border{border:3px solid #e0e0e0;-webkit-box-sizing:border-box;box-sizing:border-box;width:450px;display:inline-block;background-color:#fff}.wrap form.subscribe_form{margin:0 0 75px;overflow:hidden;text-align:center}.wrap .subscribe_form .privacy_checkbox{color:#909090;max-width:450px;margin:15px auto;position:relative}.wrap form.subscribe_form .privacy_checkbox label.error{display:block!important;position:absolute;font-size:11px;left:39%}.wrap .subscribe_form .privacy_checkbox input{float:none;margin:3px 4.7px}.wrap .subscribe_form .privacy_tail{font-size:11px;color:#909090;max-width:450px;margin:0 auto}.wrap form.subscribe_form input{margin:0;outline:0;border:0;float:left;font-size:18px;padding:20px 25px;-webkit-box-sizing:content-box;box-sizing:content-box}.wrap form.subscribe_form input[type=text]{width:245px}.wrap form.subscribe_form input[type=submit]{background:#000;color:#fff;float:right;cursor:pointer;padding:20px 30px;border-left:3px solid #e0e0e0;-webkit-transition:all .3s;transition:all .3s;border-radius:0!important;-webkit-appearance:none!important}.wrap form.subscribe_form input[type=submit]:hover{background:#fff;color:#000;border-left:3px solid #e0e0e0}.wrap form.subscribe_form input[type=submit]:active{background:#1e1e1e;color:#fff}.wrap form.subscribe_form .error{color:red}.wrap form.subscribe_form label.error{display:none!important}.wrap form.login_form{width:100%;margin:15px 0 0}.wrap form.login_form input{display:inline-block;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;border:3px solid #e2e2e2;font-family:Helvetica Neue,Arial,sans-serif;font-size:16px;margin:0 10px 0 0;outline:0;padding:15px}.wrap form.login_form input[type=submit]{background:#000;color:#fff;margin:0;border-color:#000;font-weight:700;padding:15px 30px;cursor:pointer}.wrap form.login_form input[type=submit]:active{position:relative;top:1px}.wrap .social{margin:0 0 70px}.wrap .social a{width:22px;height:22px;margin:0 0 20px 55px;background-image:url(../images/icn_sprite.png);background-repeat:no-repeat;display:inline-block;text-indent:-999em}.wrap .social a:first-of-type{margin:0 0 20px}.wrap .social .git{background-position:0 0}.wrap .social .fb{background-position:-240px 0}.wrap .social .instagram{background-position:-707px 0}.wrap .social .tw{background-position:-162px 0}.wrap .social .rss{background-position:-402px 0}.wrap .social .mail{background-position:-560px 0}.wrap .social .pin{background-position:-322px 0}.wrap .social .dribbble{background-position:-82px 0}.wrap .social .gplus{background-position:-486px 0}.wrap .social .linkedin{background-position:-633px 0}.wrap .contact_us{color:#000;border:3px solid #000;font-size:18px;padding:15px 40px;display:inline-block;margin:0 0 70px}.wrap .contact_us:hover{background:#000;color:#fff}.contact_us{text-decoration:none}.contact_us,input[type=submit]{-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.contact{position:fixed;display:none;overflow:auto;top:0;bottom:0;left:0;right:0;background:rgba(27,31,35,.95)}.contact label.error{color:red;float:left;font-size:11px;padding-top:10px}.close-contact_form{position:absolute;left:46%;top:-60px;cursor:pointer}.close-contact_form img{width:40px;height:40px}.contact .form{width:520px;text-align:center;padding:40px;background:#f9f9f9;-webkit-box-sizing:border-box;box-sizing:border-box;margin:100px auto;-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out}.contact .form input[type=submit],.contact .form input[type=text],.contact .form textarea{padding:15px 20px;margin:0;outline:0;width:100%;background:#f9f9f9;border:3px solid #e0e0e0;font-size:18px;font-family:Helvetica Neue,Arial,sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;resize:none}.contact .form label#content-error{margin-bottom:10px}.contact .form .privacy_checkbox{margin-top:20px;clear:both;color:#909090;font-size:15px;position:relative}.contact .form .privacy_checkbox label#acceptance-error{position:absolute;top:10px;left:39%}.contact .form .privacy_checkbox input{-webkit-transform:translatey(-2px);transform:translatey(-2px)}.contact .form .privacy_tail{font-size:11px;color:#c7c7c7;margin-top:16px;line-height:14px}.contact .form textarea{height:175px;padding:20px}.contact .form input[type=text]::-webkit-input-placeholder,.contact .form textarea::-webkit-input-placeholder{color:#dadada}.contact .form input[type=text]::-moz-input-placeholder,.contact .form textarea::-moz-input-placeholder{color:#dadada}.contact .form input[type=text]::-ms-input-placeholder,.contact .form textarea::-ms-input-placeholder{color:#dadada}.contact .form .col{width:205px;margin:0 0 30px;display:inline-block;float:left}.contact .form .col.last{float:right}.contact .form .submit{margin:30px 0 0;text-align:center;clear:left}.contact .form .submit input{cursor:pointer;display:inline-block;background:#1b1f24;color:#fff;border:0;padding:20px 45px;width:auto}.contact .move_top{-webkit-transform:perspective(1000px) translateY(-200px);transform:perspective(1000px) translateY(-200px)}.contact .move_bottom{-webkit-transform:perspective(1000px) translateY(0);transform:perspective(1000px) translateY(0)}.contact .zoom{-webkit-transform:perspective(1000px) scale(.5);transform:perspective(1000px) scale(.5);-webkit-transition:-webkit-transform .3s ease-in-out;transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out;transition:transform .3s ease-in-out,-webkit-transform .3s ease-in-out}.contact .zoomed{-webkit-transform:perspective(1000px) scale(1);transform:perspective(1000px) scale(1)}.contact .fold{-webkit-transform:perspective(1000px) rotateY(90deg);transform:perspective(1000px) rotateY(90deg)}.contact .unfold{-webkit-transform:perspective(1000px) rotateY(0);transform:perspective(1000px) rotateY(0)}.background{background:url(../images/backgrounds/bg1.jpg) no-repeat top fixed;background-size:cover}.background .countdown span{color:#fff}.background form.subscribe_form input[type=submit]{color:#000;background:#fff}.background form.subscribe_form input[type=text]{background:transparent;color:#fff}.background form.subscribe_form input.error[type=text]{color:red}.background form.subscribe_form input[type=text]::-webkit-input-placeholder{color:#fff}.background form.subscribe_form input[type=text]::-moz-input-placeholder{color:#fff}.background form.subscribe_form input[type=text]::-ms-input-placeholder{color:#fff}.background form.subscribe_form .subscribe_border{background-color:transparent}.background .contact_us{color:#fff;border-color:#fff}@media only screen and (max-width:700px){.wrap form.login_form{width:90%;margin:15px auto 0}.wrap form.login_form input{width:100%;margin:0 0 10px}.wrap form.login_form input[type=submit]{width:100%;margin:5px 0}}@media only screen and (max-width:550px){.wrap{width:90%;margin:50px auto 0}.wrap h1{margin:0 0 50px}.wrap h2,.wrap h3{font-size:18px}.wrap h2 .fluid-width-video-wrapper{margin-top:5px;margin-bottom:5px}.wrap form.subscribe_form{width:100%}.wrap form.subscribe_form,.wrap form.subscribe_form input{-webkit-box-sizing:border-box;box-sizing:border-box}.wrap form input[type=submit],.wrap form input[type=text]{width:100%!important}.wrap form.subscribe_form input[type=submit]{padding-left:0;padding-right:0;border-left:none}.wrap form.subscribe_form input[type=submit]:hover{border-left:none}.wrap div.subscribe_border{width:95%}.wrap .contact_us{margin:0 0 50px}.contact .form{width:90%}.contact .form input[type=submit],.contact .form p.col{width:100%}ol,ul{width:80%}blockquote,q{width:70%}}@media only screen and (max-width:465px){.contact .form .privacy_checkbox label#acceptance-error{top:28px;left:32%}}
|
File without changes
|
File without changes
|
Binary file
|
@@ -6,22 +6,25 @@ var context = {};
|
|
6 |
// Cache conversation position
|
7 |
var conversationPos;
|
8 |
|
|
|
|
|
|
|
9 |
/*
|
10 |
-
---------------
|
11 |
-
Utility Functions
|
12 |
-
---------------
|
13 |
-
*/
|
14 |
|
15 |
function getCurrentTime() {
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
}
|
26 |
|
27 |
/**
|
@@ -30,40 +33,40 @@ function getCurrentTime() {
|
|
30 |
* @param string value
|
31 |
* @returns string
|
32 |
*/
|
33 |
-
function _phpCastString
|
34 |
var type = typeof value
|
35 |
|
36 |
switch (type) {
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
|
62 |
-
|
63 |
-
|
64 |
// fall through
|
65 |
-
|
66 |
-
|
67 |
}
|
68 |
}
|
69 |
|
@@ -76,7 +79,7 @@ function _phpCastString (value) {
|
|
76 |
* @param string allowed
|
77 |
* @returns string
|
78 |
*/
|
79 |
-
function strip_tags
|
80 |
// making sure the allowed arg is a string containing only tags in lowercase (<a><b><c>)
|
81 |
allowed = (((allowed || '') + '').toLowerCase().match(/<[a-z][a-z0-9]*>/g) || []).join('')
|
82 |
|
@@ -89,27 +92,27 @@ function strip_tags (input, allowed) {
|
|
89 |
|
90 |
// recursively remove tags to ensure that the returned string doesn't contain forbidden tags after previous passes (e.g. '<<bait/>switch/>')
|
91 |
while (true) {
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
}
|
102 |
}
|
103 |
|
104 |
function renderStatement(statement) {
|
105 |
// Strip html tags from statement
|
106 |
statement = strip_tags(statement);
|
107 |
-
|
108 |
jQuery('.chat-container').append('<div class="chat-message-wrapper"><div class="absolute-wrapper"><div class="message-details"><div class="bot-avatar"></div><span class="message-date">' + getCurrentTime() + '</span></div></div><p class="chat-message">' + statement + '</p></div>');
|
109 |
}
|
110 |
|
111 |
function showTyping() {
|
112 |
-
jQuery('.chat-container').append('<div class="typing-wrapper"><div class="bot-avatar"></div><span class="bot-name">' + botName +'</span><p class="chat-message typing"><span class="dot"></span><span class="dot"></span><span class="dot"></span></p></div>');
|
113 |
}
|
114 |
|
115 |
function hideTyping() {
|
@@ -120,7 +123,7 @@ var chatWrapper = jQuery('.bot-chat-wrapper');
|
|
120 |
|
121 |
function scrollToBottom() {
|
122 |
chatWrapper.animate({
|
123 |
-
|
124 |
}, "slow");
|
125 |
}
|
126 |
|
@@ -130,14 +133,14 @@ function scrollToBottom() {
|
|
130 |
function inputError(msg) {
|
131 |
jQuery('.bot-error p').text(msg);
|
132 |
jQuery('.bot-error')
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
}
|
137 |
|
138 |
function checkInput(option) {
|
139 |
var input = jQuery('.bot-container input[type=text]').val();
|
140 |
-
|
141 |
// Strip html tags from input
|
142 |
input = strip_tags(input);
|
143 |
|
@@ -146,7 +149,7 @@ function checkInput(option) {
|
|
146 |
} else {
|
147 |
inputError(botVars.validationName);
|
148 |
}
|
149 |
-
|
150 |
return false;
|
151 |
}
|
152 |
|
@@ -162,7 +165,7 @@ function checkEmail(option) {
|
|
162 |
var bot_user_email = jQuery('.bot-container input[type=email]').serialize();
|
163 |
var subscribe_bot_data = 'action=wpmm_add_subscriber&' + bot_user_email;
|
164 |
|
165 |
-
jQuery.post(wpmm_vars.ajax_url, subscribe_bot_data, function(response) {
|
166 |
if (!response.success) {
|
167 |
alert(response.data);
|
168 |
return false;
|
@@ -187,12 +190,18 @@ function clearFooter() {
|
|
187 |
}
|
188 |
|
189 |
/*
|
190 |
-
------------------------
|
191 |
-
Setup Conversation Data
|
192 |
-
------------------------
|
193 |
-
*/
|
194 |
|
195 |
function startConversation(conv, pos) {
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
|
197 |
clearFooter();
|
198 |
clearChat();
|
@@ -202,19 +211,19 @@ function startConversation(conv, pos) {
|
|
202 |
conversationPos = conv;
|
203 |
|
204 |
// Load conversation data
|
205 |
-
jQuery.getScript(
|
206 |
-
|
207 |
-
|
208 |
|
209 |
});
|
210 |
|
211 |
}
|
212 |
|
213 |
/*
|
214 |
-
-------------------
|
215 |
-
Show Bot Statement
|
216 |
-
-------------------
|
217 |
-
*/
|
218 |
function showStatement(pos) {
|
219 |
|
220 |
// Where are we in conversationData?
|
@@ -236,12 +245,12 @@ function showStatement(pos) {
|
|
236 |
}
|
237 |
|
238 |
/*
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
async.eachSeries(statements, function(item, callback) {
|
245 |
// Emulate typing then scroll to bottom
|
246 |
showTyping();
|
247 |
scrollToBottom();
|
@@ -255,10 +264,12 @@ function showStatement(pos) {
|
|
255 |
var delay = (item.length / 3) * 30 * (Math.floor(Math.random() * 5) + 1.2);
|
256 |
}
|
257 |
|
258 |
-
if (DEBUG) {
|
|
|
|
|
259 |
|
260 |
|
261 |
-
setTimeout(function() {
|
262 |
hideTyping();
|
263 |
renderStatement(item);
|
264 |
scrollToBottom();
|
@@ -266,181 +277,180 @@ function showStatement(pos) {
|
|
266 |
callback();
|
267 |
}, delay);
|
268 |
},
|
269 |
-
|
270 |
-
/*
|
271 |
-
----------------------
|
272 |
-
Render User Option(s)
|
273 |
-
----------------------
|
274 |
-
This is the final callback of the series
|
275 |
-
*/
|
276 |
-
function (err) {
|
277 |
-
|
278 |
-
/*
|
279 |
-
----------------------------
|
280 |
-
If User Option is Button(s)
|
281 |
-
----------------------------
|
282 |
-
*/
|
283 |
-
if ('options' in node) {
|
284 |
-
jQuery('.input').hide();
|
285 |
-
jQuery('.choices').show();
|
286 |
-
|
287 |
-
// Get the options' data
|
288 |
-
var options = node["options"];
|
289 |
-
|
290 |
-
// If there are options render them
|
291 |
-
// Otherwise this is the end
|
292 |
-
if (options.length > 0) {
|
293 |
-
|
294 |
-
// Pause 750ms, then render options
|
295 |
-
setTimeout(function() {
|
296 |
-
|
297 |
-
for (var i = 0; i < options.length; i++) {
|
298 |
-
var option = options[i];
|
299 |
-
var extraClass;
|
300 |
-
var clickFunction;
|
301 |
-
|
302 |
-
// Check option for a consequence
|
303 |
-
if (option['consequence'] === null) {
|
304 |
-
|
305 |
-
// The consequence is null meaning this is a branch we won't be exploring
|
306 |
-
// The button is given class 'disabled' and does nothing on click
|
307 |
-
clickFunction = null;
|
308 |
-
extraClass = "disabled";
|
309 |
-
|
310 |
-
} else {
|
311 |
-
|
312 |
-
// Else, click function (showResponse) is binded to it
|
313 |
-
clickFunction = function(option) {
|
314 |
-
showResponse(option);
|
315 |
-
}.bind(null, option);
|
316 |
-
|
317 |
-
extraClass = "";
|
318 |
-
|
319 |
-
}
|
320 |
-
|
321 |
-
// Render button
|
322 |
-
var button = jQuery('<p/>', {
|
323 |
-
text: option['choice'],
|
324 |
-
"class": "chat-message user",
|
325 |
-
click: clickFunction
|
326 |
-
}).appendTo('.choices');
|
327 |
-
}
|
328 |
-
|
329 |
-
}, 750);
|
330 |
-
|
331 |
-
}
|
332 |
-
|
333 |
-
/*
|
334 |
-
------------------------
|
335 |
-
If User Option is Input
|
336 |
-
------------------------
|
337 |
-
*/
|
338 |
-
} else if ('input' in node) {
|
339 |
-
jQuery('.input').show();
|
340 |
-
jQuery('.choices').hide();
|
341 |
-
|
342 |
-
var option = node['input'];
|
343 |
-
|
344 |
-
|
345 |
/*
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
393 |
|
394 |
-
|
395 |
-
Render Input
|
396 |
-
---------------
|
397 |
-
*/
|
398 |
-
|
399 |
-
// Create a form to hold our input and submit button
|
400 |
-
var form = jQuery('<form/>', {
|
401 |
-
"class": "bot_subscribe_form",
|
402 |
-
submit: checkEmail.bind(null, option)
|
403 |
-
});
|
404 |
-
|
405 |
-
// Create a user bubble, append to form
|
406 |
-
var inputBubble = jQuery('<p/>', {
|
407 |
-
"class": "chat-message user"
|
408 |
-
}).appendTo(form);
|
409 |
-
|
410 |
-
// Create email input, append to user bubble
|
411 |
-
var input = jQuery('<input/>', {
|
412 |
-
type: 'email',
|
413 |
-
placeholder: botVars.typeEmail,
|
414 |
-
name: option['email'],
|
415 |
-
autocomplete: 'off'
|
416 |
-
}).appendTo(inputBubble);
|
417 |
-
|
418 |
-
// Create an input button, append to user bubble
|
419 |
-
var button = jQuery('<a/>', {
|
420 |
-
text: botVars.send,
|
421 |
-
// "class": "user-email-trigger",
|
422 |
-
click: checkEmail.bind(null, option)
|
423 |
-
}).appendTo(inputBubble);
|
424 |
-
|
425 |
-
// Append form to div.input
|
426 |
-
form.appendTo('.input');
|
427 |
-
|
428 |
-
// Focus on the input we just put into the DOM
|
429 |
-
async.nextTick(function() {
|
430 |
-
input.focus();
|
431 |
-
});
|
432 |
|
|
|
|
|
433 |
}
|
434 |
|
435 |
-
scrollToBottom();
|
436 |
-
});
|
437 |
-
}
|
438 |
-
|
439 |
/*
|
440 |
-
---------------------
|
441 |
-
Render User Response
|
442 |
-
---------------------
|
443 |
-
*/
|
444 |
function showResponse(option) {
|
445 |
|
446 |
// If there was an input element, put that into the global context
|
@@ -449,17 +459,15 @@ function showResponse(option) {
|
|
449 |
if ('name' in option) {
|
450 |
context[option['name']] = jQuery('.bot-container input[type=text]').val();
|
451 |
feedback = context[option['name']];
|
452 |
-
}
|
453 |
-
else if('email' in option) {
|
454 |
context[option['email']] = jQuery('.bot-container input[type=email]').val();
|
455 |
feedback = context[option['email']];
|
456 |
-
}
|
457 |
-
else {
|
458 |
feedback = option['choice'];
|
459 |
}
|
460 |
-
|
461 |
clearFooter();
|
462 |
-
|
463 |
// Strip html tags from feedback
|
464 |
feedback = strip_tags(feedback);
|
465 |
|
@@ -469,6 +477,14 @@ function showResponse(option) {
|
|
469 |
if ('consequence' in option) {
|
470 |
showStatement(option['consequence']);
|
471 |
} else {
|
472 |
-
|
473 |
}
|
474 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
// Cache conversation position
|
7 |
var conversationPos;
|
8 |
|
9 |
+
// Cache conversation status
|
10 |
+
var conversationStarted = false;
|
11 |
+
|
12 |
/*
|
13 |
+
---------------
|
14 |
+
Utility Functions
|
15 |
+
---------------
|
16 |
+
*/
|
17 |
|
18 |
function getCurrentTime() {
|
19 |
+
var date = new Date();
|
20 |
+
var hours = date.getHours();
|
21 |
+
var minutes = date.getMinutes();
|
22 |
+
var ampm = hours >= 12 ? 'PM' : 'AM';
|
23 |
+
hours = hours % 12;
|
24 |
+
hours = hours ? hours : 12;
|
25 |
+
minutes = minutes < 10 ? '0' + minutes : minutes;
|
26 |
+
var strTime = hours + ':' + minutes + ' ' + ampm;
|
27 |
+
return strTime;
|
28 |
}
|
29 |
|
30 |
/**
|
33 |
* @param string value
|
34 |
* @returns string
|
35 |
*/
|
36 |
+
function _phpCastString(value) {
|
37 |
var type = typeof value
|
38 |
|
39 |
switch (type) {
|
40 |
+
case 'boolean':
|
41 |
+
return value ? '1' : ''
|
42 |
+
case 'string':
|
43 |
+
return value
|
44 |
+
case 'number':
|
45 |
+
if (isNaN(value)) {
|
46 |
+
return 'NAN'
|
47 |
+
}
|
48 |
|
49 |
+
if (!isFinite(value)) {
|
50 |
+
return (value < 0 ? '-' : '') + 'INF'
|
51 |
+
}
|
52 |
|
53 |
+
return value + ''
|
54 |
+
case 'undefined':
|
55 |
+
return ''
|
56 |
+
case 'object':
|
57 |
+
if (Array.isArray(value)) {
|
58 |
+
return 'Array'
|
59 |
+
}
|
60 |
|
61 |
+
if (value !== null) {
|
62 |
+
return 'Object'
|
63 |
+
}
|
64 |
|
65 |
+
return ''
|
66 |
+
case 'function':
|
67 |
// fall through
|
68 |
+
default:
|
69 |
+
throw new Error('Unsupported value type')
|
70 |
}
|
71 |
}
|
72 |
|
79 |
* @param string allowed
|
80 |
* @returns string
|
81 |
*/
|
82 |
+
function strip_tags(input, allowed) {
|
83 |
// making sure the allowed arg is a string containing only tags in lowercase (<a><b><c>)
|
84 |
allowed = (((allowed || '') + '').toLowerCase().match(/<[a-z][a-z0-9]*>/g) || []).join('')
|
85 |
|
92 |
|
93 |
// recursively remove tags to ensure that the returned string doesn't contain forbidden tags after previous passes (e.g. '<<bait/>switch/>')
|
94 |
while (true) {
|
95 |
+
var before = after
|
96 |
+
after = before.replace(commentsAndPhpTags, '').replace(tags, function ($0, $1) {
|
97 |
+
return allowed.indexOf('<' + $1.toLowerCase() + '>') > -1 ? $0 : ''
|
98 |
+
})
|
99 |
+
|
100 |
+
// return once no more tags are removed
|
101 |
+
if (before === after) {
|
102 |
+
return after
|
103 |
+
}
|
104 |
}
|
105 |
}
|
106 |
|
107 |
function renderStatement(statement) {
|
108 |
// Strip html tags from statement
|
109 |
statement = strip_tags(statement);
|
110 |
+
|
111 |
jQuery('.chat-container').append('<div class="chat-message-wrapper"><div class="absolute-wrapper"><div class="message-details"><div class="bot-avatar"></div><span class="message-date">' + getCurrentTime() + '</span></div></div><p class="chat-message">' + statement + '</p></div>');
|
112 |
}
|
113 |
|
114 |
function showTyping() {
|
115 |
+
jQuery('.chat-container').append('<div class="typing-wrapper"><div class="bot-avatar"></div><span class="bot-name">' + botName + '</span><p class="chat-message typing"><span class="dot"></span><span class="dot"></span><span class="dot"></span></p></div>');
|
116 |
}
|
117 |
|
118 |
function hideTyping() {
|
123 |
|
124 |
function scrollToBottom() {
|
125 |
chatWrapper.animate({
|
126 |
+
scrollTop: 600
|
127 |
}, "slow");
|
128 |
}
|
129 |
|
133 |
function inputError(msg) {
|
134 |
jQuery('.bot-error p').text(msg);
|
135 |
jQuery('.bot-error')
|
136 |
+
.animate({bottom: 0}, 500)
|
137 |
+
.delay(3000)
|
138 |
+
.animate({bottom: "-70px"}, 500);
|
139 |
}
|
140 |
|
141 |
function checkInput(option) {
|
142 |
var input = jQuery('.bot-container input[type=text]').val();
|
143 |
+
|
144 |
// Strip html tags from input
|
145 |
input = strip_tags(input);
|
146 |
|
149 |
} else {
|
150 |
inputError(botVars.validationName);
|
151 |
}
|
152 |
+
|
153 |
return false;
|
154 |
}
|
155 |
|
165 |
var bot_user_email = jQuery('.bot-container input[type=email]').serialize();
|
166 |
var subscribe_bot_data = 'action=wpmm_add_subscriber&' + bot_user_email;
|
167 |
|
168 |
+
jQuery.post(wpmm_vars.ajax_url, subscribe_bot_data, function (response) {
|
169 |
if (!response.success) {
|
170 |
alert(response.data);
|
171 |
return false;
|
190 |
}
|
191 |
|
192 |
/*
|
193 |
+
------------------------
|
194 |
+
Setup Conversation Data
|
195 |
+
------------------------
|
196 |
+
*/
|
197 |
|
198 |
function startConversation(conv, pos) {
|
199 |
+
/* We need this to maintain backward compatibility because we moved startConversation() from /views/maintenance.php to bot.js */
|
200 |
+
if (conversationStarted) {
|
201 |
+
return false;
|
202 |
+
}
|
203 |
+
|
204 |
+
conversationStarted = true;
|
205 |
|
206 |
clearFooter();
|
207 |
clearChat();
|
211 |
conversationPos = conv;
|
212 |
|
213 |
// Load conversation data
|
214 |
+
jQuery.getScript(botVars.uploadsBaseUrl + "data.js", function (data) {
|
215 |
+
// Show first bot statement
|
216 |
+
showStatement(pos);
|
217 |
|
218 |
});
|
219 |
|
220 |
}
|
221 |
|
222 |
/*
|
223 |
+
-------------------
|
224 |
+
Show Bot Statement
|
225 |
+
-------------------
|
226 |
+
*/
|
227 |
function showStatement(pos) {
|
228 |
|
229 |
// Where are we in conversationData?
|
245 |
}
|
246 |
|
247 |
/*
|
248 |
+
------------------------
|
249 |
+
Render Bot Statement(s)
|
250 |
+
------------------------
|
251 |
+
Run this function over each statement
|
252 |
+
*/
|
253 |
+
async.eachSeries(statements, function (item, callback) {
|
254 |
// Emulate typing then scroll to bottom
|
255 |
showTyping();
|
256 |
scrollToBottom();
|
264 |
var delay = (item.length / 3) * 30 * (Math.floor(Math.random() * 5) + 1.2);
|
265 |
}
|
266 |
|
267 |
+
if (DEBUG) {
|
268 |
+
delay = 0;
|
269 |
+
}
|
270 |
|
271 |
|
272 |
+
setTimeout(function () {
|
273 |
hideTyping();
|
274 |
renderStatement(item);
|
275 |
scrollToBottom();
|
277 |
callback();
|
278 |
}, delay);
|
279 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
/*
|
281 |
+
----------------------
|
282 |
+
Render User Option(s)
|
283 |
+
----------------------
|
284 |
+
This is the final callback of the series
|
285 |
+
*/
|
286 |
+
function (err) {
|
287 |
+
|
288 |
+
/*
|
289 |
+
----------------------------
|
290 |
+
If User Option is Button(s)
|
291 |
+
----------------------------
|
292 |
+
*/
|
293 |
+
if ('options' in node) {
|
294 |
+
jQuery('.input').hide();
|
295 |
+
jQuery('.choices').show();
|
296 |
+
|
297 |
+
// Get the options' data
|
298 |
+
var options = node["options"];
|
299 |
+
|
300 |
+
// If there are options render them
|
301 |
+
// Otherwise this is the end
|
302 |
+
if (options.length > 0) {
|
303 |
+
|
304 |
+
// Pause 750ms, then render options
|
305 |
+
setTimeout(function () {
|
306 |
+
|
307 |
+
for (var i = 0; i < options.length; i++) {
|
308 |
+
var option = options[i];
|
309 |
+
var extraClass;
|
310 |
+
var clickFunction;
|
311 |
+
|
312 |
+
// Check option for a consequence
|
313 |
+
if (option['consequence'] === null) {
|
314 |
+
|
315 |
+
// The consequence is null meaning this is a branch we won't be exploring
|
316 |
+
// The button is given class 'disabled' and does nothing on click
|
317 |
+
clickFunction = null;
|
318 |
+
extraClass = "disabled";
|
319 |
+
|
320 |
+
} else {
|
321 |
+
|
322 |
+
// Else, click function (showResponse) is binded to it
|
323 |
+
clickFunction = function (option) {
|
324 |
+
showResponse(option);
|
325 |
+
}.bind(null, option);
|
326 |
+
|
327 |
+
extraClass = "";
|
328 |
+
|
329 |
+
}
|
330 |
+
|
331 |
+
// Render button
|
332 |
+
var button = jQuery('<p/>', {
|
333 |
+
text: option['choice'],
|
334 |
+
"class": "chat-message user",
|
335 |
+
click: clickFunction
|
336 |
+
}).appendTo('.choices');
|
337 |
+
}
|
338 |
+
|
339 |
+
}, 750);
|
340 |
+
|
341 |
+
}
|
342 |
+
|
343 |
+
/*
|
344 |
+
------------------------
|
345 |
+
If User Option is Input
|
346 |
+
------------------------
|
347 |
+
*/
|
348 |
+
} else if ('input' in node) {
|
349 |
+
jQuery('.input').show();
|
350 |
+
jQuery('.choices').hide();
|
351 |
+
|
352 |
+
var option = node['input'];
|
353 |
+
|
354 |
+
|
355 |
+
/*
|
356 |
+
Render Input
|
357 |
+
---------------
|
358 |
+
*/
|
359 |
+
|
360 |
+
// Create a form to hold our input and submit button
|
361 |
+
var form = jQuery('<form/>', {
|
362 |
+
submit: checkInput.bind(null, option)
|
363 |
+
});
|
364 |
+
|
365 |
+
// Create a user bubble, append to form
|
366 |
+
var inputBubble = jQuery('<p/>', {
|
367 |
+
"class": "chat-message user"
|
368 |
+
}).appendTo(form);
|
369 |
+
|
370 |
+
// Create an input, append to user bubble
|
371 |
+
var input = jQuery('<input/>', {
|
372 |
+
type: 'text',
|
373 |
+
placeholder: botVars.typeName,
|
374 |
+
name: option['name'],
|
375 |
+
autocomplete: 'off',
|
376 |
+
required: true
|
377 |
+
}).appendTo(inputBubble);
|
378 |
+
|
379 |
+
// Create an input button, append to user bubble
|
380 |
+
var button = jQuery('<a/>', {
|
381 |
+
text: botVars.send,
|
382 |
+
click: checkInput.bind(null, option)
|
383 |
+
}).appendTo(inputBubble);
|
384 |
+
|
385 |
+
// Append form to div.input
|
386 |
+
form.appendTo('.input');
|
387 |
+
|
388 |
+
// Focus on the input we just put into the DOM
|
389 |
+
async.nextTick(function () {
|
390 |
+
input.focus();
|
391 |
+
});
|
392 |
+
|
393 |
+
/*
|
394 |
+
------------------------
|
395 |
+
If User Option is Email
|
396 |
+
------------------------
|
397 |
+
*/
|
398 |
+
} else if ('email' in node) {
|
399 |
+
jQuery('.input').show();
|
400 |
+
jQuery('.choices').hide();
|
401 |
+
|
402 |
+
var option = node['email'];
|
403 |
+
|
404 |
+
/*
|
405 |
+
Render Input
|
406 |
+
---------------
|
407 |
+
*/
|
408 |
+
|
409 |
+
// Create a form to hold our input and submit button
|
410 |
+
var form = jQuery('<form/>', {
|
411 |
+
"class": "bot_subscribe_form",
|
412 |
+
submit: checkEmail.bind(null, option)
|
413 |
+
});
|
414 |
+
|
415 |
+
// Create a user bubble, append to form
|
416 |
+
var inputBubble = jQuery('<p/>', {
|
417 |
+
"class": "chat-message user"
|
418 |
+
}).appendTo(form);
|
419 |
+
|
420 |
+
// Create email input, append to user bubble
|
421 |
+
var input = jQuery('<input/>', {
|
422 |
+
type: 'email',
|
423 |
+
placeholder: botVars.typeEmail,
|
424 |
+
name: option['email'],
|
425 |
+
autocomplete: 'off'
|
426 |
+
}).appendTo(inputBubble);
|
427 |
+
|
428 |
+
// Create an input button, append to user bubble
|
429 |
+
var button = jQuery('<a/>', {
|
430 |
+
text: botVars.send,
|
431 |
+
// "class": "user-email-trigger",
|
432 |
+
click: checkEmail.bind(null, option)
|
433 |
+
}).appendTo(inputBubble);
|
434 |
+
|
435 |
+
// Append form to div.input
|
436 |
+
form.appendTo('.input');
|
437 |
+
|
438 |
+
// Focus on the input we just put into the DOM
|
439 |
+
async.nextTick(function () {
|
440 |
+
input.focus();
|
441 |
+
});
|
442 |
|
443 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
444 |
|
445 |
+
scrollToBottom();
|
446 |
+
});
|
447 |
}
|
448 |
|
|
|
|
|
|
|
|
|
449 |
/*
|
450 |
+
---------------------
|
451 |
+
Render User Response
|
452 |
+
---------------------
|
453 |
+
*/
|
454 |
function showResponse(option) {
|
455 |
|
456 |
// If there was an input element, put that into the global context
|
459 |
if ('name' in option) {
|
460 |
context[option['name']] = jQuery('.bot-container input[type=text]').val();
|
461 |
feedback = context[option['name']];
|
462 |
+
} else if ('email' in option) {
|
|
|
463 |
context[option['email']] = jQuery('.bot-container input[type=email]').val();
|
464 |
feedback = context[option['email']];
|
465 |
+
} else {
|
|
|
466 |
feedback = option['choice'];
|
467 |
}
|
468 |
+
|
469 |
clearFooter();
|
470 |
+
|
471 |
// Strip html tags from feedback
|
472 |
feedback = strip_tags(feedback);
|
473 |
|
477 |
if ('consequence' in option) {
|
478 |
showStatement(option['consequence']);
|
479 |
} else {
|
480 |
+
// xxx
|
481 |
}
|
482 |
+
}
|
483 |
+
|
484 |
+
/*
|
485 |
+
-------------------
|
486 |
+
Initialize Conversation
|
487 |
+
-------------------
|
488 |
+
*/
|
489 |
+
|
490 |
+
startConversation('homepage', 1);
|
@@ -1 +1 @@
|
|
1 |
-
!function(){var n,t={};function e(){}function r(n){return n}function i(n){return!!n}function u(n){return!n}var o="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||this;function a(n){return function(){if(null===n)throw new Error("Callback was already called.");n.apply(this,arguments),n=null}}function c(n){return function(){null!==n&&(n.apply(this,arguments),n=null)}}null!=o&&(n=o.async),t.noConflict=function(){return o.async=n,t};var s=Object.prototype.toString,l=Array.isArray||function(n){return"[object Array]"===s.call(n)};function f(n){return l(n)||"number"==typeof n.length&&n.length>=0&&n.length%1==0}function p(n,t){for(var e=-1,r=n.length;++e<r;)t(n[e],e,n)}function h(n,t){for(var e=-1,r=n.length,i=Array(r);++e<r;)i[e]=t(n[e],e,n);return i}function y(n){return h(Array(n),function(n,t){return t})}function m(n,t){p(v(n),function(e){t(n[e],e)})}function d(n,t){for(var e=0;e<n.length;e++)if(n[e]===t)return e;return-1}var v=Object.keys||function(n){var t=[];for(var e in n)n.hasOwnProperty(e)&&t.push(e);return t};function g(n){var t,e,r=-1;return f(n)?(t=n.length,function(){return++r<t?r:null}):(e=v(n),t=e.length,function(){return++r<t?e[r]:null})}function b(n,t){return t=null==t?n.length-1:+t,function(){for(var e=Math.max(arguments.length-t,0),r=Array(e),i=0;i<e;i++)r[i]=arguments[i+t];switch(t){case 0:return n.call(this,r);case 1:return n.call(this,arguments[0],r);case 2:return n.call(this,arguments[0],arguments[1],r)}}}function k(n){return function(t,e,r){return n(t,r)}}var w="function"==typeof setImmediate&&setImmediate,j=w?function(n){w(n)}:function(n){setTimeout(n,0)};function Q(n){return function(t,r,i){i=c(i||e);var u=g(t=t||[]);if(n<=0)return i(null);var o=!1,s=0,l=!1;!function e(){if(o&&s<=0)return i(null);for(;s<n&&!l;){var c=u();if(null===c)return o=!0,void(s<=0&&i(null));s+=1,r(t[c],c,a(function(n){s-=1,n?(i(n),l=!0):e()}))}}()}}function x(n){return function(e,r,i){return n(t.eachOf,e,r,i)}}function S(n){return function(t,e,r,i){return n(Q(e),t,r,i)}}function T(n){return function(e,r,i){return n(t.eachOfSeries,e,r,i)}}function E(n,t,r,i){i=c(i||e);var u=[];n(t,function(n,t,e){r(n,function(n,r){u[t]=r,e(n)})},function(n){i(n,u)})}function O(n,t,e,r){var i=[];n(t,function(n,t,r){e(n,function(e){e&&i.push({index:t,value:n}),r()})},function(){r(h(i.sort(function(n,t){return n.index-t.index}),function(n){return n.value}))})}function I(n,t,e,r){O(n,t,function(n,t){e(n,function(n){t(!n)})},r)}function L(n,t,e){return function(r,i,u,o){function a(){o&&o(e(!1,void 0))}function c(n,r,i){if(!o)return i();u(n,function(r){o&&t(r)&&(o(e(!0,n)),o=u=!1),i()})}arguments.length>3?n(r,i,c,a):(o=u,u=i,n(r,c,a))}}function A(n,t){return t}function C(n,t,r){r=r||e;var i=f(t)?[]:{};n(t,function(n,t,e){n(b(function(n,r){r.length<=1&&(r=r[0]),i[t]=r,e(n)}))},function(n){r(n,i)})}function _(n,t,e,r){var i=[];n(t,function(n,t,r){e(n,function(n,t){i=i.concat(t||[]),r(n)})},function(n){r(n,i)})}function z(n,r,i){if(null==r)r=1;else if(0===r)throw new Error("Concurrency must not be zero");function u(n,r,i,u){if(null!=u&&"function"!=typeof u)throw new Error("task callback must be a function");if(n.started=!0,l(r)||(r=[r]),0===r.length&&n.idle())return t.setImmediate(function(){n.drain()});p(r,function(t){var r={data:t,callback:u||e};i?n.tasks.unshift(r):n.tasks.push(r),n.tasks.length===n.concurrency&&n.saturated()}),t.setImmediate(n.process)}function o(n,t){return function(){c-=1;var e=arguments;p(t,function(n){n.callback.apply(n,e)}),n.tasks.length+c===0&&n.drain(),n.process()}}var c=0,s={tasks:[],concurrency:r,payload:i,saturated:e,empty:e,drain:e,started:!1,paused:!1,push:function(n,t){u(s,n,!1,t)},kill:function(){s.drain=e,s.tasks=[]},unshift:function(n,t){u(s,n,!0,t)},process:function(){if(!s.paused&&c<s.concurrency&&s.tasks.length)for(;c<s.concurrency&&s.tasks.length;){var t=s.payload?s.tasks.splice(0,s.payload):s.tasks.splice(0,s.tasks.length),e=h(t,function(n){return n.data});0===s.tasks.length&&s.empty(),c+=1;var r=a(o(s,t));n(e,r)}},length:function(){return s.tasks.length},running:function(){return c},idle:function(){return s.tasks.length+c===0},pause:function(){s.paused=!0},resume:function(){if(!1!==s.paused){s.paused=!1;for(var n=Math.min(s.concurrency,s.tasks.length),e=1;e<=n;e++)t.setImmediate(s.process)}}};return s}function q(n){return b(function(t,e){t.apply(null,e.concat([b(function(t,e){"undefined"!=typeof console&&(t?console.error&&console.error(t):console[n]&&p(e,function(t){console[n](t)}))})]))})}function B(n){return function(t,e,r){n(y(t),e,r)}}function N(n){return b(function(t,e){var r=b(function(e){var r=this,i=e.pop();return n(t,function(n,t,i){n.apply(r,e.concat([i]))},i)});return e.length?r.apply(this,e):r})}function M(n){return b(function(e){var r=e.pop();e.push(function(){var n=arguments;i?t.setImmediate(function(){r.apply(null,n)}):r.apply(null,n)});var i=!0;n.apply(this,e),i=!1})}"object"==typeof process&&"function"==typeof process.nextTick?t.nextTick=process.nextTick:t.nextTick=j,t.setImmediate=w?j:t.nextTick,t.forEach=t.each=function(n,e,r){return t.eachOf(n,k(e),r)},t.forEachSeries=t.eachSeries=function(n,e,r){return t.eachOfSeries(n,k(e),r)},t.forEachLimit=t.eachLimit=function(n,t,e,r){return Q(t)(n,k(e),r)},t.forEachOf=t.eachOf=function(n,t,r){r=c(r||e);var i=f(n=n||[])?n.length:v(n).length,u=0;if(!i)return r(null);function o(n){n?r(n):(u+=1)>=i&&r(null)}!function(n,t){f(n)?p(n,t):m(n,t)}(n,function(e,r){t(n[r],r,a(o))})},t.forEachOfSeries=t.eachOfSeries=function(n,r,i){i=c(i||e);var u=g(n=n||[]),o=u();!function e(){var c=!0;if(null===o)return i(null);r(n[o],o,a(function(n){if(n)i(n);else{if(null===(o=u()))return i(null);c?t.nextTick(e):e()}})),c=!1}()},t.forEachOfLimit=t.eachOfLimit=function(n,t,e,r){Q(t)(n,e,r)},t.map=x(E),t.mapSeries=T(E),t.mapLimit=S(E),t.inject=t.foldl=t.reduce=function(n,e,r,i){t.eachOfSeries(n,function(n,t,i){r(e,n,function(n,t){e=t,i(n)})},function(n){i(n||null,e)})},t.foldr=t.reduceRight=function(n,e,r,i){var u=h(n,function(n){return n}).reverse();t.reduce(u,e,r,i)},t.select=t.filter=x(O),t.selectLimit=t.filterLimit=S(O),t.selectSeries=t.filterSeries=T(O),t.reject=x(I),t.rejectLimit=S(I),t.rejectSeries=T(I),t.any=t.some=L(t.eachOf,i,r),t.someLimit=L(t.eachOfLimit,i,r),t.all=t.every=L(t.eachOf,u,u),t.everyLimit=L(t.eachOfLimit,u,u),t.detect=L(t.eachOf,r,A),t.detectSeries=L(t.eachOfSeries,r,A),t.sortBy=function(n,e,r){function i(n,t){var e=n.criteria,r=t.criteria;return e<r?-1:e>r?1:0}t.map(n,function(n,t){e(n,function(e,r){e?t(e):t(null,{value:n,criteria:r})})},function(n,t){if(n)return r(n);r(null,h(t.sort(i),function(n){return n.value}))})},t.auto=function(n,r){r=c(r||e);var i=v(n),u=i.length;if(!u)return r(null);var o={},a=[];function s(n){a.unshift(n)}function f(){u--,p(a.slice(0),function(n){n()})}s(function(){u||r(null,o)}),p(i,function(e){for(var i,u=l(n[e])?n[e]:[n[e]],c=b(function(n,i){if(i.length<=1&&(i=i[0]),n){var u={};m(o,function(n,t){u[t]=n}),u[e]=i,r(n,u)}else o[e]=i,t.setImmediate(f)}),h=u.slice(0,u.length-1),y=h.length;y--;){if(!(i=n[h[y]]))throw new Error("Has inexistant dependency");if(l(i)&&d(i,e)>=0)throw new Error("Has cyclic dependencies")}function v(){return n=function(n,t){return n&&o.hasOwnProperty(t)},t=!0,p(h,function(e,r,i){t=n(t,e,r,i)}),t&&!o.hasOwnProperty(e);var n,t}v()?u[u.length-1](c,o):s(function n(){v()&&((t=d(a,n))>=0&&a.splice(t,1),u[u.length-1](c,o));var t})})},t.retry=function(n,e,r){var i=5,u=0,o=[],a={times:i,interval:u};var c=arguments.length;if(c<1||c>3)throw new Error("Invalid arguments - must be either (task), (task, callback), (times, task) or (times, task, callback)");function s(n,e){function r(n,t){return function(r){n(function(n,e){r(!n||t,{err:n,result:e})},e)}}function i(n){return function(t){setTimeout(function(){t(null)},n)}}for(;a.times;){var u=!(a.times-=1);o.push(r(a.task,u)),!u&&a.interval>0&&o.push(i(a.interval))}t.series(o,function(t,e){e=e[e.length-1],(n||a.callback)(e.err,e.result)})}return c<=2&&"function"==typeof n&&(r=e,e=n),"function"!=typeof n&&function(n,t){if("number"==typeof t)n.times=parseInt(t,10)||i;else{if("object"!=typeof t)throw new Error("Unsupported argument type for 'times': "+typeof t);n.times=parseInt(t.times,10)||i,n.interval=parseInt(t.interval,10)||u}}(a,n),a.callback=r,a.task=e,a.callback?s():s},t.waterfall=function(n,r){if(r=c(r||e),!l(n)){var i=new Error("First argument to waterfall must be an array of functions");return r(i)}if(!n.length)return r();!function n(t){return b(function(e,i){if(e)r.apply(null,[e].concat(i));else{var u=t.next();u?i.push(n(u)):i.push(r),M(t).apply(null,i)}})}(t.iterator(n))()},t.parallel=function(n,e){C(t.eachOf,n,e)},t.parallelLimit=function(n,t,e){C(Q(t),n,e)},t.series=function(n,e){C(t.eachOfSeries,n,e)},t.iterator=function(n){return function t(e){function r(){return n.length&&n[e].apply(null,arguments),r.next()}return r.next=function(){return e<n.length-1?t(e+1):null},r}(0)},t.apply=b(function(n,t){return b(function(e){return n.apply(null,t.concat(e))})}),t.concat=x(_),t.concatSeries=T(_),t.whilst=function(n,t,r){if(r=r||e,n()){var i=b(function(e,u){e?r(e):n.apply(this,u)?t(i):r(null)});t(i)}else r(null)},t.doWhilst=function(n,e,r){var i=0;return t.whilst(function(){return++i<=1||e.apply(this,arguments)},n,r)},t.until=function(n,e,r){return t.whilst(function(){return!n.apply(this,arguments)},e,r)},t.doUntil=function(n,e,r){return t.doWhilst(n,function(){return!e.apply(this,arguments)},r)},t.during=function(n,t,r){r=r||e;var i=b(function(t,e){t?r(t):(e.push(u),n.apply(this,e))}),u=function(n,e){n?r(n):e?t(i):r(null)};n(u)},t.doDuring=function(n,e,r){var i=0;t.during(function(n){i++<1?n(null,!0):e.apply(this,arguments)},n,r)},t.queue=function(n,t){return z(function(t,e){n(t[0],e)},t,1)},t.priorityQueue=function(n,r){function i(n,t){return n.priority-t.priority}var u=t.queue(n,r);return u.push=function(n,r,o){!function(n,r,u,o){if(null!=o&&"function"!=typeof o)throw new Error("task callback must be a function");if(n.started=!0,l(r)||(r=[r]),0===r.length)return t.setImmediate(function(){n.drain()});p(r,function(r){var a={data:r,priority:u,callback:"function"==typeof o?o:e};n.tasks.splice(function(n,t,e){for(var r=-1,i=n.length-1;r<i;){var u=r+(i-r+1>>>1);e(t,n[u])>=0?r=u:i=u-1}return r}(n.tasks,a,i)+1,0,a),n.tasks.length===n.concurrency&&n.saturated(),t.setImmediate(n.process)})}(u,n,r,o)},delete u.unshift,u},t.cargo=function(n,t){return z(n,1,t)},t.log=q("log"),t.dir=q("dir"),t.memoize=function(n,e){var r={},i={};e=e||function(n){return n};var u=b(function(u){var o=u.pop(),a=e.apply(null,u);a in r?t.nextTick(function(){o.apply(null,r[a])}):a in i?i[a].push(o):(i[a]=[o],n.apply(null,u.concat([b(function(n){r[a]=n;var t=i[a];delete i[a];for(var e=0,u=t.length;e<u;e++)t[e].apply(null,n)})])))});return u.memo=r,u.unmemoized=n,u},t.unmemoize=function(n){return function(){return(n.unmemoized||n).apply(null,arguments)}},t.times=B(t.map),t.timesSeries=B(t.mapSeries),t.timesLimit=function(n,e,r,i){return t.mapLimit(y(n),e,r,i)},t.seq=function(){var n=arguments;return b(function(r){var i=this,u=r[r.length-1];"function"==typeof u?r.pop():u=e,t.reduce(n,r,function(n,t,e){t.apply(i,n.concat([b(function(n,t){e(n,t)})]))},function(n,t){u.apply(i,[n].concat(t))})})},t.compose=function(){return t.seq.apply(null,Array.prototype.reverse.call(arguments))},t.applyEach=N(t.eachOf),t.applyEachSeries=N(t.eachOfSeries),t.forever=function(n,t){var r=a(t||e),i=M(n);!function n(t){if(t)return r(t);i(n)}()},t.ensureAsync=M,t.constant=b(function(n){var t=[null].concat(n);return function(n){return n.apply(this,t)}}),t.wrapSync=t.asyncify=function(n){return b(function(t){var e,r=t.pop();try{e=n.apply(this,t)}catch(n){return r(n)}r(null,e)})},"undefined"!=typeof module&&module.exports?module.exports=t:"undefined"!=typeof define&&define.amd?define([],function(){return t}):o.async=t}();var conversationPos,DEBUG=!1,context={};function getCurrentTime(){var n=new Date,t=n.getHours(),e=n.getMinutes(),r=t>=12?"PM":"AM";return(t=(t%=12)||12)+":"+(e=e<10?"0"+e:e)+" "+r}function _phpCastString(n){switch(typeof n){case"boolean":return n?"1":"";case"string":return n;case"number":return isNaN(n)?"NAN":isFinite(n)?n+"":(n<0?"-":"")+"INF";case"undefined":return"";case"object":return Array.isArray(n)?"Array":null!==n?"Object":"";case"function":default:throw new Error("Unsupported value type")}}function strip_tags(n,t){t=(((t||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join("");var e=/<\/?([a-z0-9]*)\b[^>]*>?/gi,r=/<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>/gi,i=_phpCastString(n);for(i="<"===i.substring(i.length-1)?i.substring(0,i.length-1):i;;){if(i===(i=i.replace(r,"").replace(e,function(n,e){return t.indexOf("<"+e.toLowerCase()+">")>-1?n:""})))return i}}function renderStatement(n){n=strip_tags(n),jQuery(".chat-container").append('<div class="chat-message-wrapper"><div class="absolute-wrapper"><div class="message-details"><div class="bot-avatar"></div><span class="message-date">'+getCurrentTime()+'</span></div></div><p class="chat-message">'+n+"</p></div>")}function showTyping(){jQuery(".chat-container").append('<div class="typing-wrapper"><div class="bot-avatar"></div><span class="bot-name">'+botName+'</span><p class="chat-message typing"><span class="dot"></span><span class="dot"></span><span class="dot"></span></p></div>')}function hideTyping(){jQuery(".typing-wrapper").remove()}var chatWrapper=jQuery(".bot-chat-wrapper");function scrollToBottom(){chatWrapper.animate({scrollTop:600},"slow")}function inputError(n){jQuery(".bot-error p").text(n),jQuery(".bot-error").animate({bottom:0},500).delay(3e3).animate({bottom:"-70px"},500)}function checkInput(n){var t=jQuery(".bot-container input[type=text]").val();return(t=strip_tags(t)).length>2?showResponse(n):inputError(botVars.validationName),!1}function checkEmail(n){var t=jQuery(".bot-container input[type=email]").val(),e=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t.toLowerCase()));if(t.length>7&&!0===e){var r="action=wpmm_add_subscriber&"+jQuery(".bot-container input[type=email]").serialize();jQuery.post(wpmm_vars.ajax_url,r,function(n){if(!n.success)return alert(n.data),!1},"json"),showResponse(n)}else inputError(botVars.validationEmail);return!1}function clearChat(){jQuery(".chat-container").empty()}function clearFooter(){jQuery(".choices").empty(),jQuery(".input").empty()}function startConversation(n,t){clearFooter(),clearChat(),conversationPos=n,jQuery.getScript(botVars.uploadsBaseUrl+"data.js",function(n){showStatement(t)})}function showStatement(n){var t,e=conversationData[conversationPos][n];"sideeffect"in e&&jQuery.type("function"===e.sideeffect)&&e.sideeffect(context),"array"===jQuery.type(e.statement)?t=e.statement:"string"===jQuery.type(e.statement)?t=[e.statement]:"function"===jQuery.type(e.statement)&&(t=e.statement(context)),async.eachSeries(t,function(n,t){if(showTyping(),scrollToBottom(),n.length<=50)var e=1800;else e=n.length/3*30*(Math.floor(5*Math.random())+1.2);DEBUG&&(e=0),setTimeout(function(){hideTyping(),renderStatement(n),scrollToBottom(),t()},e)},function(n){if("options"in e){jQuery(".input").hide(),jQuery(".choices").show();var t=e.options;t.length>0&&setTimeout(function(){for(var n=0;n<t.length;n++){var e,r=t[n];null===r.consequence?(e=null,"disabled"):(e=function(n){showResponse(n)}.bind(null,r),"");jQuery("<p/>",{text:r.choice,class:"chat-message user",click:e}).appendTo(".choices")}},750)}else if("input"in e){jQuery(".input").show(),jQuery(".choices").hide();var r=e.input,i=jQuery("<form/>",{submit:checkInput.bind(null,r)}),u=jQuery("<p/>",{class:"chat-message user"}).appendTo(i),o=jQuery("<input/>",{type:"text",placeholder:botVars.typeName,name:r.name,autocomplete:"off",required:!0}).appendTo(u);jQuery("<a/>",{text:botVars.send,click:checkInput.bind(null,r)}).appendTo(u);i.appendTo(".input"),async.nextTick(function(){o.focus()})}else if("email"in e){jQuery(".input").show(),jQuery(".choices").hide();r=e.email,i=jQuery("<form/>",{class:"bot_subscribe_form",submit:checkEmail.bind(null,r)}),u=jQuery("<p/>",{class:"chat-message user"}).appendTo(i),o=jQuery("<input/>",{type:"email",placeholder:botVars.typeEmail,name:r.email,autocomplete:"off"}).appendTo(u),jQuery("<a/>",{text:botVars.send,click:checkEmail.bind(null,r)}).appendTo(u);i.appendTo(".input"),async.nextTick(function(){o.focus()})}scrollToBottom()})}function showResponse(n){var t="";"name"in n?(context[n.name]=jQuery(".bot-container input[type=text]").val(),t=context[n.name]):"email"in n?(context[n.email]=jQuery(".bot-container input[type=email]").val(),t=context[n.email]):t=n.choice,clearFooter(),t=strip_tags(t),jQuery(".chat-container").append('<p class="chat-message user">'+t+"</p>"),"consequence"in n&&showStatement(n.consequence)}
|
1 |
+
!function(){var n,t={};function e(){}function r(n){return n}function i(n){return!!n}function o(n){return!n}var u="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||this;function a(n){return function(){if(null===n)throw new Error("Callback was already called.");n.apply(this,arguments),n=null}}function c(n){return function(){null!==n&&(n.apply(this,arguments),n=null)}}null!=u&&(n=u.async),t.noConflict=function(){return u.async=n,t};var s=Object.prototype.toString,l=Array.isArray||function(n){return"[object Array]"===s.call(n)};function f(n){return l(n)||"number"==typeof n.length&&n.length>=0&&n.length%1==0}function p(n,t){for(var e=-1,r=n.length;++e<r;)t(n[e],e,n)}function h(n,t){for(var e=-1,r=n.length,i=Array(r);++e<r;)i[e]=t(n[e],e,n);return i}function y(n){return h(Array(n),function(n,t){return t})}function m(n,t){p(v(n),function(e){t(n[e],e)})}function d(n,t){for(var e=0;e<n.length;e++)if(n[e]===t)return e;return-1}var v=Object.keys||function(n){var t=[];for(var e in n)n.hasOwnProperty(e)&&t.push(e);return t};function g(n){var t,e,r=-1;return f(n)?(t=n.length,function(){return++r<t?r:null}):(e=v(n),t=e.length,function(){return++r<t?e[r]:null})}function b(n,t){return t=null==t?n.length-1:+t,function(){for(var e=Math.max(arguments.length-t,0),r=Array(e),i=0;i<e;i++)r[i]=arguments[i+t];switch(t){case 0:return n.call(this,r);case 1:return n.call(this,arguments[0],r);case 2:return n.call(this,arguments[0],arguments[1],r)}}}function k(n){return function(t,e,r){return n(t,r)}}var w="function"==typeof setImmediate&&setImmediate,j=w?function(n){w(n)}:function(n){setTimeout(n,0)};function Q(n){return function(t,r,i){i=c(i||e);var o=g(t=t||[]);if(n<=0)return i(null);var u=!1,s=0,l=!1;!function e(){if(u&&s<=0)return i(null);for(;s<n&&!l;){var c=o();if(null===c)return u=!0,void(s<=0&&i(null));s+=1,r(t[c],c,a(function(n){s-=1,n?(i(n),l=!0):e()}))}}()}}function x(n){return function(e,r,i){return n(t.eachOf,e,r,i)}}function S(n){return function(t,e,r,i){return n(Q(e),t,r,i)}}function T(n){return function(e,r,i){return n(t.eachOfSeries,e,r,i)}}function E(n,t,r,i){i=c(i||e);var o=[];n(t,function(n,t,e){r(n,function(n,r){o[t]=r,e(n)})},function(n){i(n,o)})}function O(n,t,e,r){var i=[];n(t,function(n,t,r){e(n,function(e){e&&i.push({index:t,value:n}),r()})},function(){r(h(i.sort(function(n,t){return n.index-t.index}),function(n){return n.value}))})}function I(n,t,e,r){O(n,t,function(n,t){e(n,function(n){t(!n)})},r)}function L(n,t,e){return function(r,i,o,u){function a(){u&&u(e(!1,void 0))}function c(n,r,i){if(!u)return i();o(n,function(r){u&&t(r)&&(u(e(!0,n)),u=o=!1),i()})}arguments.length>3?n(r,i,c,a):(u=o,o=i,n(r,c,a))}}function A(n,t){return t}function C(n,t,r){r=r||e;var i=f(t)?[]:{};n(t,function(n,t,e){n(b(function(n,r){r.length<=1&&(r=r[0]),i[t]=r,e(n)}))},function(n){r(n,i)})}function _(n,t,e,r){var i=[];n(t,function(n,t,r){e(n,function(n,t){i=i.concat(t||[]),r(n)})},function(n){r(n,i)})}function z(n,r,i){if(null==r)r=1;else if(0===r)throw new Error("Concurrency must not be zero");function o(n,r,i,o){if(null!=o&&"function"!=typeof o)throw new Error("task callback must be a function");if(n.started=!0,l(r)||(r=[r]),0===r.length&&n.idle())return t.setImmediate(function(){n.drain()});p(r,function(t){var r={data:t,callback:o||e};i?n.tasks.unshift(r):n.tasks.push(r),n.tasks.length===n.concurrency&&n.saturated()}),t.setImmediate(n.process)}function u(n,t){return function(){c-=1;var e=arguments;p(t,function(n){n.callback.apply(n,e)}),n.tasks.length+c===0&&n.drain(),n.process()}}var c=0,s={tasks:[],concurrency:r,payload:i,saturated:e,empty:e,drain:e,started:!1,paused:!1,push:function(n,t){o(s,n,!1,t)},kill:function(){s.drain=e,s.tasks=[]},unshift:function(n,t){o(s,n,!0,t)},process:function(){if(!s.paused&&c<s.concurrency&&s.tasks.length)for(;c<s.concurrency&&s.tasks.length;){var t=s.payload?s.tasks.splice(0,s.payload):s.tasks.splice(0,s.tasks.length),e=h(t,function(n){return n.data});0===s.tasks.length&&s.empty(),c+=1;var r=a(u(s,t));n(e,r)}},length:function(){return s.tasks.length},running:function(){return c},idle:function(){return s.tasks.length+c===0},pause:function(){s.paused=!0},resume:function(){if(!1!==s.paused){s.paused=!1;for(var n=Math.min(s.concurrency,s.tasks.length),e=1;e<=n;e++)t.setImmediate(s.process)}}};return s}function q(n){return b(function(t,e){t.apply(null,e.concat([b(function(t,e){"undefined"!=typeof console&&(t?console.error&&console.error(t):console[n]&&p(e,function(t){console[n](t)}))})]))})}function B(n){return function(t,e,r){n(y(t),e,r)}}function N(n){return b(function(t,e){var r=b(function(e){var r=this,i=e.pop();return n(t,function(n,t,i){n.apply(r,e.concat([i]))},i)});return e.length?r.apply(this,e):r})}function M(n){return b(function(e){var r=e.pop();e.push(function(){var n=arguments;i?t.setImmediate(function(){r.apply(null,n)}):r.apply(null,n)});var i=!0;n.apply(this,e),i=!1})}"object"==typeof process&&"function"==typeof process.nextTick?t.nextTick=process.nextTick:t.nextTick=j,t.setImmediate=w?j:t.nextTick,t.forEach=t.each=function(n,e,r){return t.eachOf(n,k(e),r)},t.forEachSeries=t.eachSeries=function(n,e,r){return t.eachOfSeries(n,k(e),r)},t.forEachLimit=t.eachLimit=function(n,t,e,r){return Q(t)(n,k(e),r)},t.forEachOf=t.eachOf=function(n,t,r){r=c(r||e);var i=f(n=n||[])?n.length:v(n).length,o=0;if(!i)return r(null);function u(n){n?r(n):(o+=1)>=i&&r(null)}!function(n,t){f(n)?p(n,t):m(n,t)}(n,function(e,r){t(n[r],r,a(u))})},t.forEachOfSeries=t.eachOfSeries=function(n,r,i){i=c(i||e);var o=g(n=n||[]),u=o();!function e(){var c=!0;if(null===u)return i(null);r(n[u],u,a(function(n){if(n)i(n);else{if(null===(u=o()))return i(null);c?t.nextTick(e):e()}})),c=!1}()},t.forEachOfLimit=t.eachOfLimit=function(n,t,e,r){Q(t)(n,e,r)},t.map=x(E),t.mapSeries=T(E),t.mapLimit=S(E),t.inject=t.foldl=t.reduce=function(n,e,r,i){t.eachOfSeries(n,function(n,t,i){r(e,n,function(n,t){e=t,i(n)})},function(n){i(n||null,e)})},t.foldr=t.reduceRight=function(n,e,r,i){var o=h(n,function(n){return n}).reverse();t.reduce(o,e,r,i)},t.select=t.filter=x(O),t.selectLimit=t.filterLimit=S(O),t.selectSeries=t.filterSeries=T(O),t.reject=x(I),t.rejectLimit=S(I),t.rejectSeries=T(I),t.any=t.some=L(t.eachOf,i,r),t.someLimit=L(t.eachOfLimit,i,r),t.all=t.every=L(t.eachOf,o,o),t.everyLimit=L(t.eachOfLimit,o,o),t.detect=L(t.eachOf,r,A),t.detectSeries=L(t.eachOfSeries,r,A),t.sortBy=function(n,e,r){function i(n,t){var e=n.criteria,r=t.criteria;return e<r?-1:e>r?1:0}t.map(n,function(n,t){e(n,function(e,r){e?t(e):t(null,{value:n,criteria:r})})},function(n,t){if(n)return r(n);r(null,h(t.sort(i),function(n){return n.value}))})},t.auto=function(n,r){r=c(r||e);var i=v(n),o=i.length;if(!o)return r(null);var u={},a=[];function s(n){a.unshift(n)}function f(){o--,p(a.slice(0),function(n){n()})}s(function(){o||r(null,u)}),p(i,function(e){for(var i,o=l(n[e])?n[e]:[n[e]],c=b(function(n,i){if(i.length<=1&&(i=i[0]),n){var o={};m(u,function(n,t){o[t]=n}),o[e]=i,r(n,o)}else u[e]=i,t.setImmediate(f)}),h=o.slice(0,o.length-1),y=h.length;y--;){if(!(i=n[h[y]]))throw new Error("Has inexistant dependency");if(l(i)&&d(i,e)>=0)throw new Error("Has cyclic dependencies")}function v(){return n=function(n,t){return n&&u.hasOwnProperty(t)},t=!0,p(h,function(e,r,i){t=n(t,e,r,i)}),t&&!u.hasOwnProperty(e);var n,t}v()?o[o.length-1](c,u):s(function n(){v()&&((t=d(a,n))>=0&&a.splice(t,1),o[o.length-1](c,u));var t})})},t.retry=function(n,e,r){var i=5,o=0,u=[],a={times:i,interval:o};var c=arguments.length;if(c<1||c>3)throw new Error("Invalid arguments - must be either (task), (task, callback), (times, task) or (times, task, callback)");function s(n,e){function r(n,t){return function(r){n(function(n,e){r(!n||t,{err:n,result:e})},e)}}function i(n){return function(t){setTimeout(function(){t(null)},n)}}for(;a.times;){var o=!(a.times-=1);u.push(r(a.task,o)),!o&&a.interval>0&&u.push(i(a.interval))}t.series(u,function(t,e){e=e[e.length-1],(n||a.callback)(e.err,e.result)})}return c<=2&&"function"==typeof n&&(r=e,e=n),"function"!=typeof n&&function(n,t){if("number"==typeof t)n.times=parseInt(t,10)||i;else{if("object"!=typeof t)throw new Error("Unsupported argument type for 'times': "+typeof t);n.times=parseInt(t.times,10)||i,n.interval=parseInt(t.interval,10)||o}}(a,n),a.callback=r,a.task=e,a.callback?s():s},t.waterfall=function(n,r){if(r=c(r||e),!l(n)){var i=new Error("First argument to waterfall must be an array of functions");return r(i)}if(!n.length)return r();!function n(t){return b(function(e,i){if(e)r.apply(null,[e].concat(i));else{var o=t.next();o?i.push(n(o)):i.push(r),M(t).apply(null,i)}})}(t.iterator(n))()},t.parallel=function(n,e){C(t.eachOf,n,e)},t.parallelLimit=function(n,t,e){C(Q(t),n,e)},t.series=function(n,e){C(t.eachOfSeries,n,e)},t.iterator=function(n){return function t(e){function r(){return n.length&&n[e].apply(null,arguments),r.next()}return r.next=function(){return e<n.length-1?t(e+1):null},r}(0)},t.apply=b(function(n,t){return b(function(e){return n.apply(null,t.concat(e))})}),t.concat=x(_),t.concatSeries=T(_),t.whilst=function(n,t,r){if(r=r||e,n()){var i=b(function(e,o){e?r(e):n.apply(this,o)?t(i):r(null)});t(i)}else r(null)},t.doWhilst=function(n,e,r){var i=0;return t.whilst(function(){return++i<=1||e.apply(this,arguments)},n,r)},t.until=function(n,e,r){return t.whilst(function(){return!n.apply(this,arguments)},e,r)},t.doUntil=function(n,e,r){return t.doWhilst(n,function(){return!e.apply(this,arguments)},r)},t.during=function(n,t,r){r=r||e;var i=b(function(t,e){t?r(t):(e.push(o),n.apply(this,e))}),o=function(n,e){n?r(n):e?t(i):r(null)};n(o)},t.doDuring=function(n,e,r){var i=0;t.during(function(n){i++<1?n(null,!0):e.apply(this,arguments)},n,r)},t.queue=function(n,t){return z(function(t,e){n(t[0],e)},t,1)},t.priorityQueue=function(n,r){function i(n,t){return n.priority-t.priority}var o=t.queue(n,r);return o.push=function(n,r,u){!function(n,r,o,u){if(null!=u&&"function"!=typeof u)throw new Error("task callback must be a function");if(n.started=!0,l(r)||(r=[r]),0===r.length)return t.setImmediate(function(){n.drain()});p(r,function(r){var a={data:r,priority:o,callback:"function"==typeof u?u:e};n.tasks.splice(function(n,t,e){for(var r=-1,i=n.length-1;r<i;){var o=r+(i-r+1>>>1);e(t,n[o])>=0?r=o:i=o-1}return r}(n.tasks,a,i)+1,0,a),n.tasks.length===n.concurrency&&n.saturated(),t.setImmediate(n.process)})}(o,n,r,u)},delete o.unshift,o},t.cargo=function(n,t){return z(n,1,t)},t.log=q("log"),t.dir=q("dir"),t.memoize=function(n,e){var r={},i={};e=e||function(n){return n};var o=b(function(o){var u=o.pop(),a=e.apply(null,o);a in r?t.nextTick(function(){u.apply(null,r[a])}):a in i?i[a].push(u):(i[a]=[u],n.apply(null,o.concat([b(function(n){r[a]=n;var t=i[a];delete i[a];for(var e=0,o=t.length;e<o;e++)t[e].apply(null,n)})])))});return o.memo=r,o.unmemoized=n,o},t.unmemoize=function(n){return function(){return(n.unmemoized||n).apply(null,arguments)}},t.times=B(t.map),t.timesSeries=B(t.mapSeries),t.timesLimit=function(n,e,r,i){return t.mapLimit(y(n),e,r,i)},t.seq=function(){var n=arguments;return b(function(r){var i=this,o=r[r.length-1];"function"==typeof o?r.pop():o=e,t.reduce(n,r,function(n,t,e){t.apply(i,n.concat([b(function(n,t){e(n,t)})]))},function(n,t){o.apply(i,[n].concat(t))})})},t.compose=function(){return t.seq.apply(null,Array.prototype.reverse.call(arguments))},t.applyEach=N(t.eachOf),t.applyEachSeries=N(t.eachOfSeries),t.forever=function(n,t){var r=a(t||e),i=M(n);!function n(t){if(t)return r(t);i(n)}()},t.ensureAsync=M,t.constant=b(function(n){var t=[null].concat(n);return function(n){return n.apply(this,t)}}),t.wrapSync=t.asyncify=function(n){return b(function(t){var e,r=t.pop();try{e=n.apply(this,t)}catch(n){return r(n)}r(null,e)})},"undefined"!=typeof module&&module.exports?module.exports=t:"undefined"!=typeof define&&define.amd?define([],function(){return t}):u.async=t}();var conversationPos,DEBUG=!1,context={},conversationStarted=!1;function getCurrentTime(){var n=new Date,t=n.getHours(),e=n.getMinutes(),r=t>=12?"PM":"AM";return(t=(t%=12)||12)+":"+(e=e<10?"0"+e:e)+" "+r}function _phpCastString(n){switch(typeof n){case"boolean":return n?"1":"";case"string":return n;case"number":return isNaN(n)?"NAN":isFinite(n)?n+"":(n<0?"-":"")+"INF";case"undefined":return"";case"object":return Array.isArray(n)?"Array":null!==n?"Object":"";case"function":default:throw new Error("Unsupported value type")}}function strip_tags(n,t){t=(((t||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join("");var e=/<\/?([a-z0-9]*)\b[^>]*>?/gi,r=/<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>/gi,i=_phpCastString(n);for(i="<"===i.substring(i.length-1)?i.substring(0,i.length-1):i;;){if(i===(i=i.replace(r,"").replace(e,function(n,e){return t.indexOf("<"+e.toLowerCase()+">")>-1?n:""})))return i}}function renderStatement(n){n=strip_tags(n),jQuery(".chat-container").append('<div class="chat-message-wrapper"><div class="absolute-wrapper"><div class="message-details"><div class="bot-avatar"></div><span class="message-date">'+getCurrentTime()+'</span></div></div><p class="chat-message">'+n+"</p></div>")}function showTyping(){jQuery(".chat-container").append('<div class="typing-wrapper"><div class="bot-avatar"></div><span class="bot-name">'+botName+'</span><p class="chat-message typing"><span class="dot"></span><span class="dot"></span><span class="dot"></span></p></div>')}function hideTyping(){jQuery(".typing-wrapper").remove()}var chatWrapper=jQuery(".bot-chat-wrapper");function scrollToBottom(){chatWrapper.animate({scrollTop:600},"slow")}function inputError(n){jQuery(".bot-error p").text(n),jQuery(".bot-error").animate({bottom:0},500).delay(3e3).animate({bottom:"-70px"},500)}function checkInput(n){var t=jQuery(".bot-container input[type=text]").val();return(t=strip_tags(t)).length>2?showResponse(n):inputError(botVars.validationName),!1}function checkEmail(n){var t=jQuery(".bot-container input[type=email]").val(),e=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t.toLowerCase()));if(t.length>7&&!0===e){var r="action=wpmm_add_subscriber&"+jQuery(".bot-container input[type=email]").serialize();jQuery.post(wpmm_vars.ajax_url,r,function(n){if(!n.success)return alert(n.data),!1},"json"),showResponse(n)}else inputError(botVars.validationEmail);return!1}function clearChat(){jQuery(".chat-container").empty()}function clearFooter(){jQuery(".choices").empty(),jQuery(".input").empty()}function startConversation(n,t){if(conversationStarted)return!1;conversationStarted=!0,clearFooter(),clearChat(),conversationPos=n,jQuery.getScript(botVars.uploadsBaseUrl+"data.js",function(n){showStatement(t)})}function showStatement(n){var t,e=conversationData[conversationPos][n];"sideeffect"in e&&jQuery.type("function"===e.sideeffect)&&e.sideeffect(context),"array"===jQuery.type(e.statement)?t=e.statement:"string"===jQuery.type(e.statement)?t=[e.statement]:"function"===jQuery.type(e.statement)&&(t=e.statement(context)),async.eachSeries(t,function(n,t){if(showTyping(),scrollToBottom(),n.length<=50)var e=1800;else e=n.length/3*30*(Math.floor(5*Math.random())+1.2);DEBUG&&(e=0),setTimeout(function(){hideTyping(),renderStatement(n),scrollToBottom(),t()},e)},function(n){if("options"in e){jQuery(".input").hide(),jQuery(".choices").show();var t=e.options;t.length>0&&setTimeout(function(){for(var n=0;n<t.length;n++){var e,r=t[n];null===r.consequence?(e=null,"disabled"):(e=function(n){showResponse(n)}.bind(null,r),"");jQuery("<p/>",{text:r.choice,class:"chat-message user",click:e}).appendTo(".choices")}},750)}else if("input"in e){jQuery(".input").show(),jQuery(".choices").hide();var r=e.input,i=jQuery("<form/>",{submit:checkInput.bind(null,r)}),o=jQuery("<p/>",{class:"chat-message user"}).appendTo(i),u=jQuery("<input/>",{type:"text",placeholder:botVars.typeName,name:r.name,autocomplete:"off",required:!0}).appendTo(o);jQuery("<a/>",{text:botVars.send,click:checkInput.bind(null,r)}).appendTo(o);i.appendTo(".input"),async.nextTick(function(){u.focus()})}else if("email"in e){jQuery(".input").show(),jQuery(".choices").hide();r=e.email,i=jQuery("<form/>",{class:"bot_subscribe_form",submit:checkEmail.bind(null,r)}),o=jQuery("<p/>",{class:"chat-message user"}).appendTo(i),u=jQuery("<input/>",{type:"email",placeholder:botVars.typeEmail,name:r.email,autocomplete:"off"}).appendTo(o),jQuery("<a/>",{text:botVars.send,click:checkEmail.bind(null,r)}).appendTo(o);i.appendTo(".input"),async.nextTick(function(){u.focus()})}scrollToBottom()})}function showResponse(n){var t="";"name"in n?(context[n.name]=jQuery(".bot-container input[type=text]").val(),t=context[n.name]):"email"in n?(context[n.email]=jQuery(".bot-container input[type=email]").val(),t=context[n.email]):t=n.choice,clearFooter(),t=strip_tags(t),jQuery(".chat-container").append('<p class="chat-message user">'+t+"</p>"),"consequence"in n&&showStatement(n.consequence)}startConversation("homepage",1);
|
@@ -2,18 +2,19 @@
|
|
2 |
Chosen, a Select Box Enhancer for jQuery and Prototype
|
3 |
by Patrick Filler for Harvest, http://getharvest.com
|
4 |
|
5 |
-
Version 1.
|
6 |
Full source at https://github.com/harvesthq/chosen
|
7 |
-
Copyright (c) 2011-
|
8 |
|
9 |
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
10 |
This file is generated by `grunt build`, do not edit it by hand.
|
11 |
*/
|
12 |
|
13 |
(function() {
|
14 |
-
var $, AbstractChosen, Chosen, SelectParser,
|
15 |
-
|
16 |
-
|
|
|
17 |
|
18 |
SelectParser = (function() {
|
19 |
function SelectParser() {
|
@@ -30,24 +31,24 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
30 |
};
|
31 |
|
32 |
SelectParser.prototype.add_group = function(group) {
|
33 |
-
var group_position,
|
34 |
group_position = this.parsed.length;
|
35 |
this.parsed.push({
|
36 |
array_index: group_position,
|
37 |
group: true,
|
38 |
-
label:
|
39 |
title: group.title ? group.title : void 0,
|
40 |
children: 0,
|
41 |
disabled: group.disabled,
|
42 |
classes: group.className
|
43 |
});
|
44 |
-
|
45 |
-
|
46 |
-
for (
|
47 |
-
option =
|
48 |
-
|
49 |
}
|
50 |
-
return
|
51 |
};
|
52 |
|
53 |
SelectParser.prototype.add_option = function(option, group_position, group_disabled) {
|
@@ -81,46 +82,26 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
81 |
}
|
82 |
};
|
83 |
|
84 |
-
SelectParser.prototype.escapeExpression = function(text) {
|
85 |
-
var map, unsafe_chars;
|
86 |
-
if ((text == null) || text === false) {
|
87 |
-
return "";
|
88 |
-
}
|
89 |
-
if (!/[\&\<\>\"\'\`]/.test(text)) {
|
90 |
-
return text;
|
91 |
-
}
|
92 |
-
map = {
|
93 |
-
"<": "<",
|
94 |
-
">": ">",
|
95 |
-
'"': """,
|
96 |
-
"'": "'",
|
97 |
-
"`": "`"
|
98 |
-
};
|
99 |
-
unsafe_chars = /&(?!\w+;)|[\<\>\"\'\`]/g;
|
100 |
-
return text.replace(unsafe_chars, function(chr) {
|
101 |
-
return map[chr] || "&";
|
102 |
-
});
|
103 |
-
};
|
104 |
-
|
105 |
return SelectParser;
|
106 |
|
107 |
})();
|
108 |
|
109 |
SelectParser.select_to_array = function(select) {
|
110 |
-
var child,
|
111 |
parser = new SelectParser();
|
112 |
-
|
113 |
-
for (
|
114 |
-
child =
|
115 |
parser.add_node(child);
|
116 |
}
|
117 |
return parser.parsed;
|
118 |
};
|
119 |
|
120 |
AbstractChosen = (function() {
|
121 |
-
function AbstractChosen(form_field,
|
122 |
this.form_field = form_field;
|
123 |
-
this.options =
|
|
|
124 |
if (!AbstractChosen.browser_is_supported()) {
|
125 |
return;
|
126 |
}
|
@@ -134,17 +115,21 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
134 |
}
|
135 |
|
136 |
AbstractChosen.prototype.set_default_values = function() {
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
this
|
142 |
-
|
143 |
-
|
|
|
|
|
|
|
144 |
this.active_field = false;
|
145 |
this.mouse_on_container = false;
|
146 |
this.results_showing = false;
|
147 |
this.result_highlighted = null;
|
|
|
148 |
this.allow_single_deselect = (this.options.allow_single_deselect != null) && (this.form_field.options[0] != null) && this.form_field.options[0].text === "" ? this.options.allow_single_deselect : false;
|
149 |
this.disable_search_threshold = this.options.disable_search_threshold || 0;
|
150 |
this.disable_search = this.options.disable_search || false;
|
@@ -157,7 +142,9 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
157 |
this.display_selected_options = this.options.display_selected_options != null ? this.options.display_selected_options : true;
|
158 |
this.display_disabled_options = this.options.display_disabled_options != null ? this.options.display_disabled_options : true;
|
159 |
this.include_group_label_in_selected = this.options.include_group_label_in_selected || false;
|
160 |
-
|
|
|
|
|
161 |
};
|
162 |
|
163 |
AbstractChosen.prototype.set_default_text = function() {
|
@@ -168,12 +155,13 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
168 |
} else {
|
169 |
this.default_text = this.options.placeholder_text_single || this.options.placeholder_text || AbstractChosen.default_single_text;
|
170 |
}
|
|
|
171 |
return this.results_none_found = this.form_field.getAttribute("data-no_results_text") || this.options.no_results_text || AbstractChosen.default_no_result_text;
|
172 |
};
|
173 |
|
174 |
AbstractChosen.prototype.choice_label = function(item) {
|
175 |
if (this.include_group_label_in_selected && (item.group_label != null)) {
|
176 |
-
return "<b class='group-name'>" + item.group_label + "</b>" + item.html;
|
177 |
} else {
|
178 |
return item.html;
|
179 |
}
|
@@ -188,12 +176,13 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
188 |
};
|
189 |
|
190 |
AbstractChosen.prototype.input_focus = function(evt) {
|
191 |
-
var _this = this;
|
192 |
if (this.is_multiple) {
|
193 |
if (!this.active_field) {
|
194 |
-
return setTimeout((function() {
|
195 |
-
return
|
196 |
-
|
|
|
|
|
197 |
}
|
198 |
} else {
|
199 |
if (!this.active_field) {
|
@@ -203,22 +192,31 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
203 |
};
|
204 |
|
205 |
AbstractChosen.prototype.input_blur = function(evt) {
|
206 |
-
var _this = this;
|
207 |
if (!this.mouse_on_container) {
|
208 |
this.active_field = false;
|
209 |
-
return setTimeout((function() {
|
210 |
-
return
|
211 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
}
|
213 |
};
|
214 |
|
215 |
AbstractChosen.prototype.results_option_build = function(options) {
|
216 |
-
var content, data, data_content,
|
217 |
content = '';
|
218 |
shown_results = 0;
|
219 |
-
|
220 |
-
for (
|
221 |
-
data =
|
222 |
data_content = '';
|
223 |
if (data.group) {
|
224 |
data_content = this.result_add_group(data);
|
@@ -269,9 +267,11 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
269 |
}
|
270 |
option_el = document.createElement("li");
|
271 |
option_el.className = classes.join(" ");
|
272 |
-
|
|
|
|
|
273 |
option_el.setAttribute("data-option-array-index", option.array_index);
|
274 |
-
option_el.innerHTML = option.
|
275 |
if (option.title) {
|
276 |
option_el.title = option.title;
|
277 |
}
|
@@ -293,7 +293,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
293 |
}
|
294 |
group_el = document.createElement("li");
|
295 |
group_el.className = classes.join(" ");
|
296 |
-
group_el.innerHTML = group.
|
297 |
if (group.title) {
|
298 |
group_el.title = group.title;
|
299 |
}
|
@@ -313,18 +313,18 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|
313 |
};
|
314 |
|
315 |
AbstractChosen.prototype.reset_single_select_options = function() {
|
316 |
-
var
|
317 |
-
|
318 |
-
|
319 |
-
for (
|