Version Description
Many small changes. Plus major changes for caching compatibility.
Download this release
Release Info
Developer | niravmehta |
Plugin | Popups, Welcome Bar, Optins and Lead Generation Plugin – Icegram |
Version | 1.8.9 |
Comparing to | |
See all releases |
Code changes from version 1.8.8 to 1.8.9
- assets/css/admin.css +1 -709
- assets/css/chosen.min.css +0 -1
- assets/css/frontend.css +1 -179
- assets/css/jquery-ui.min.css +6 -2
- assets/css/magnific-popup.css +1 -376
- assets/js/admin.js +31 -465
- assets/js/ajax-chosen.jquery.min.js +4 -1
- assets/js/chosen.jquery.min.js +64 -1
- assets/js/icegram.js +53 -552
- assets/js/jquery.tipTip.min.js +16 -1
- assets/js/magnific-popup.js +87 -1
- assets/js/main.js +8 -0
- classes/class-icegram-campaign.php +3 -3
- classes/class-icegram-message-admin.php +27 -13
- classes/class-icegram-message-type.php +5 -2
- icegram.php +88 -77
- message-types/action-bar/default.css +1 -135
- message-types/action-bar/main.js +13 -165
- message-types/action-bar/main.php +2 -2
- message-types/action-bar/themes/air-mail.css +1 -104
- message-types/action-bar/themes/bold.css +1 -88
- message-types/action-bar/themes/hello.css +1 -137
- message-types/action-bar/themes/solid.css +1 -52
- message-types/messenger/default.css +1 -137
- message-types/messenger/main.js +12 -96
- message-types/messenger/main.php +3 -2
- message-types/messenger/themes/canvas.css +1 -90
- message-types/messenger/themes/clear.css +1 -138
- message-types/messenger/themes/social.css +1 -185
- message-types/messenger/themes/talk.css +1 -139
- message-types/popup/default.css +2 -191
- message-types/popup/main.js +92 -66
- message-types/popup/main.php +2 -3
- message-types/popup/themes/air-mail.css +1 -112
- message-types/popup/themes/amaze.css +1 -129
- message-types/popup/themes/compel.css +1 -108
- message-types/popup/themes/convert.css +1 -76
- message-types/popup/themes/inspire.css +1 -72
- message-types/popup/themes/persuade.css +1 -71
- message-types/toast/default.css +1 -236
- message-types/toast/main.js +8 -80
- message-types/toast/themes/announce.css +1 -42
- message-types/toast/themes/balance.css +1 -24
- message-types/toast/themes/burnt.css +1 -81
- message-types/toast/themes/clear.css +1 -29
- message-types/toast/themes/night-glow.css +1 -49
- message-types/toast/themes/stand-out.css +1 -34
- readme.txt +13 -1
- settings.php +14 -0
assets/css/admin.css
CHANGED
@@ -1,709 +1 @@
|
|
1 |
-
.campaign_target_rules_panel .options_group {
|
2 |
-
border-bottom: 1px dashed #D3D3D3;
|
3 |
-
}
|
4 |
-
|
5 |
-
.campaign_target_rules_panel .options_group:last-child {
|
6 |
-
border-bottom-style: none;
|
7 |
-
}
|
8 |
-
|
9 |
-
.campaign_target_rules_panel .options_group .form-field .options_header {
|
10 |
-
display: inline-block;
|
11 |
-
width: 30%;
|
12 |
-
vertical-align: top;
|
13 |
-
}
|
14 |
-
|
15 |
-
.campaign_target_rules_panel .options_group p label input[type=checkbox], .campaign_target_rules_panel .options_group p label input[type=radio] {
|
16 |
-
width: 0;
|
17 |
-
}
|
18 |
-
|
19 |
-
.campaign_target_rules_panel .options_group p label input[type=date] {
|
20 |
-
width: auto;
|
21 |
-
margin-left: 10px;
|
22 |
-
}
|
23 |
-
|
24 |
-
.user_roles p label input[type=checkbox], .user_roles p label input[type=radio] {
|
25 |
-
margin-left: 3px;
|
26 |
-
}
|
27 |
-
|
28 |
-
.campaign_target_rules_panel .options_group .form-field #icegram_messages {
|
29 |
-
width: 300px;
|
30 |
-
text-align: center;
|
31 |
-
}
|
32 |
-
|
33 |
-
.empty_campaign {
|
34 |
-
margin: 1em;
|
35 |
-
font-style: italic;
|
36 |
-
}
|
37 |
-
|
38 |
-
.hndle em {
|
39 |
-
font-weight: normal;
|
40 |
-
font-size: 85%;
|
41 |
-
margin-left: 1em;
|
42 |
-
color: #777;
|
43 |
-
}
|
44 |
-
|
45 |
-
h3 .chosen-container {
|
46 |
-
font-weight: 500;
|
47 |
-
}
|
48 |
-
|
49 |
-
.thickbox_edit_message {
|
50 |
-
padding: 0 1em;
|
51 |
-
border-bottom: 1px solid #D3D3D3;
|
52 |
-
}
|
53 |
-
|
54 |
-
.messages-list-sortable {
|
55 |
-
margin-top: 30px;
|
56 |
-
}
|
57 |
-
|
58 |
-
.messages_list_table {
|
59 |
-
font-size: 1em;
|
60 |
-
width: 100%;
|
61 |
-
border-collapse: separate;
|
62 |
-
border-spacing: 3px;
|
63 |
-
}
|
64 |
-
|
65 |
-
th.message_header {
|
66 |
-
text-align: center !important;
|
67 |
-
}
|
68 |
-
|
69 |
-
.message_title {
|
70 |
-
text-align: left;
|
71 |
-
}
|
72 |
-
|
73 |
-
.message_headline {
|
74 |
-
text-align: left;
|
75 |
-
padding-left: 1.2em;
|
76 |
-
}
|
77 |
-
|
78 |
-
.message_seconds, .action_links {
|
79 |
-
width: 75px !important;
|
80 |
-
text-align: center;
|
81 |
-
}
|
82 |
-
|
83 |
-
.message_seconds input {
|
84 |
-
text-align: right;
|
85 |
-
}
|
86 |
-
|
87 |
-
.message-row .seconds-text {
|
88 |
-
width: 40px !important;
|
89 |
-
text-align: center;
|
90 |
-
}
|
91 |
-
|
92 |
-
.message-sort-placeholder {
|
93 |
-
background-color: #D3D3D3;
|
94 |
-
}
|
95 |
-
|
96 |
-
.device {
|
97 |
-
width: auto;
|
98 |
-
line-height: 5em;
|
99 |
-
vertical-align: baseline;
|
100 |
-
}
|
101 |
-
|
102 |
-
.device:after {
|
103 |
-
font-family: dashicons;
|
104 |
-
font-size: 3em;
|
105 |
-
}
|
106 |
-
|
107 |
-
.device input {
|
108 |
-
position: relative;
|
109 |
-
left: 2.5em;
|
110 |
-
top: 1.5em;
|
111 |
-
}
|
112 |
-
|
113 |
-
.admin_field_icon {
|
114 |
-
display: inline-block;
|
115 |
-
-webkit-font-smoothing: antialiased;
|
116 |
-
width: 18px;
|
117 |
-
height: 18px;
|
118 |
-
font: 400 18px/1 dashicons;
|
119 |
-
color: #888;
|
120 |
-
vertical-align: text-top;
|
121 |
-
margin: 0 2px;
|
122 |
-
}
|
123 |
-
|
124 |
-
.campaign_preview {
|
125 |
-
float: right;
|
126 |
-
margin-right: 1em !important;
|
127 |
-
}
|
128 |
-
|
129 |
-
.shortcode_description:before {
|
130 |
-
content: "\f348";
|
131 |
-
}
|
132 |
-
|
133 |
-
.shortcode_description.light{
|
134 |
-
content: "\f348";
|
135 |
-
color: #777;
|
136 |
-
}
|
137 |
-
|
138 |
-
.campaign_shortcode {
|
139 |
-
display: block;
|
140 |
-
width: 45%;
|
141 |
-
color:#777;
|
142 |
-
}
|
143 |
-
|
144 |
-
.campaign_shortcode.light {
|
145 |
-
margin-left: 50%;
|
146 |
-
border: 1px dashed #cccccc;
|
147 |
-
padding-left: 0.6%;
|
148 |
-
padding-right: 0.2%;
|
149 |
-
position: absolute;
|
150 |
-
margin-top: -1.5em;
|
151 |
-
}
|
152 |
-
|
153 |
-
.campaign_shortcode.light code{
|
154 |
-
color: #777;
|
155 |
-
|
156 |
-
}
|
157 |
-
|
158 |
-
label[for=device_mobile] {
|
159 |
-
margin-left: -2em;
|
160 |
-
}
|
161 |
-
|
162 |
-
label[for=device_mobile]:after {
|
163 |
-
content: "\f470";
|
164 |
-
}
|
165 |
-
|
166 |
-
label[for=device_tablet]:after {
|
167 |
-
content: "\f471";
|
168 |
-
}
|
169 |
-
|
170 |
-
label[for=device_laptop]:after {
|
171 |
-
content: "\f472";
|
172 |
-
}
|
173 |
-
|
174 |
-
.date_picker:after {
|
175 |
-
font-family: dashicons;
|
176 |
-
content: "\f145";
|
177 |
-
position: relative;
|
178 |
-
top: 5px;
|
179 |
-
font: normal 20px/1 dashicons;
|
180 |
-
vertical-align: top;
|
181 |
-
}
|
182 |
-
|
183 |
-
.date_picker {
|
184 |
-
margin-left: 1em;
|
185 |
-
}
|
186 |
-
|
187 |
-
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
|
188 |
-
-webkit-appearance: none;
|
189 |
-
appearance: none;
|
190 |
-
margin: 0;
|
191 |
-
}
|
192 |
-
|
193 |
-
.date-picker {
|
194 |
-
max-width: 15%;
|
195 |
-
}
|
196 |
-
|
197 |
-
.campaign_target_rules_panel .options_group .messages-list .form-field .message_header {
|
198 |
-
width: 75px !important;
|
199 |
-
text-align: right;
|
200 |
-
}
|
201 |
-
|
202 |
-
.disable {
|
203 |
-
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
|
204 |
-
filter: alpha(opacity=30);
|
205 |
-
opacity: 0.3;
|
206 |
-
}
|
207 |
-
|
208 |
-
.enable {
|
209 |
-
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
|
210 |
-
filter: alpha(opacity=100);
|
211 |
-
opacity: 1;
|
212 |
-
}
|
213 |
-
|
214 |
-
.message_edit:after {
|
215 |
-
content: "\f464";
|
216 |
-
}
|
217 |
-
|
218 |
-
.message_delete:after {
|
219 |
-
content: "\f158";
|
220 |
-
}
|
221 |
-
|
222 |
-
.actions:after {
|
223 |
-
font-family: dashicons;
|
224 |
-
font-size: 1.4em;
|
225 |
-
}
|
226 |
-
|
227 |
-
.actions {
|
228 |
-
text-decoration: none;
|
229 |
-
color: #444;
|
230 |
-
padding-right: 3px;
|
231 |
-
cursor: pointer;
|
232 |
-
}
|
233 |
-
|
234 |
-
.actions:hover {
|
235 |
-
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
|
236 |
-
filter: alpha(opacity=70);
|
237 |
-
opacity: 0.7;
|
238 |
-
}
|
239 |
-
|
240 |
-
.action_links {
|
241 |
-
vertical-align: middle;
|
242 |
-
}
|
243 |
-
|
244 |
-
.message_header_label {
|
245 |
-
color: #fff;
|
246 |
-
text-align: center;
|
247 |
-
font-size: 0.7em !important;
|
248 |
-
margin: 0 !important;
|
249 |
-
padding: 3px 5px;
|
250 |
-
cursor: auto;
|
251 |
-
text-transform: uppercase;
|
252 |
-
}
|
253 |
-
|
254 |
-
.message_label {
|
255 |
-
float: left;
|
256 |
-
width: 25%;
|
257 |
-
padding: 0;
|
258 |
-
}
|
259 |
-
|
260 |
-
.message_field {
|
261 |
-
width: 65%;
|
262 |
-
display: inline-block;
|
263 |
-
}
|
264 |
-
|
265 |
-
.message_image_button .image-buttons-icon{
|
266 |
-
margin: 0 2px;
|
267 |
-
}
|
268 |
-
.message_image_button .image-buttons-icon:before {
|
269 |
-
content: "\f128";
|
270 |
-
}
|
271 |
-
|
272 |
-
.message_headline_button, .message_image_button {
|
273 |
-
vertical-align: top !important;
|
274 |
-
}
|
275 |
-
.message_headline_button .headline-buttons-icon {
|
276 |
-
margin: 2px;
|
277 |
-
}
|
278 |
-
|
279 |
-
.message_headline_button .headline-buttons-icon:before {
|
280 |
-
content: "\f130";
|
281 |
-
}
|
282 |
-
|
283 |
-
.help_tip:after {
|
284 |
-
content: "\f223";
|
285 |
-
}
|
286 |
-
|
287 |
-
.help_tip {
|
288 |
-
float: right;
|
289 |
-
margin: 4px 0;
|
290 |
-
cursor: help;
|
291 |
-
text-decoration: none;
|
292 |
-
}
|
293 |
-
|
294 |
-
.chosen-container {
|
295 |
-
width: 65% !important;
|
296 |
-
}
|
297 |
-
|
298 |
-
.message_row.position {
|
299 |
-
height: 110px;
|
300 |
-
}
|
301 |
-
.location-selector input[type=radio]:checked + label span {
|
302 |
-
background-color: #2ea2cc;
|
303 |
-
}
|
304 |
-
|
305 |
-
.location-selector {
|
306 |
-
width: 128px;
|
307 |
-
height: 115px;
|
308 |
-
position: absolute;
|
309 |
-
display: block;
|
310 |
-
margin-left: 24.3%;
|
311 |
-
background-image: url(../images/desktop.png);
|
312 |
-
background-position: 0 -19px;
|
313 |
-
}
|
314 |
-
|
315 |
-
.location-selector .location {
|
316 |
-
background-color: #ddd;
|
317 |
-
cursor: pointer;
|
318 |
-
position: absolute;
|
319 |
-
}
|
320 |
-
|
321 |
-
.location-selector .location:hover {
|
322 |
-
background-color: #ccc;
|
323 |
-
}
|
324 |
-
|
325 |
-
.location-selector .location.top, .location-selector .location.bottom, .location-selector .location.middle {
|
326 |
-
height: 14%;
|
327 |
-
width: 14%;
|
328 |
-
right: 42%;
|
329 |
-
}
|
330 |
-
|
331 |
-
.location-selector .location.top {
|
332 |
-
top: 13px;
|
333 |
-
}
|
334 |
-
|
335 |
-
.location-selector .location.middle {
|
336 |
-
top: 30%;
|
337 |
-
}
|
338 |
-
|
339 |
-
.location-selector .location.bottom {
|
340 |
-
bottom: 43px;
|
341 |
-
}
|
342 |
-
|
343 |
-
.location-selector .location.right, .location-selector .location.left {
|
344 |
-
height: 14%;
|
345 |
-
width: 14%;
|
346 |
-
margin-left: 0;
|
347 |
-
margin-right: 0;
|
348 |
-
}
|
349 |
-
|
350 |
-
.location-selector .location.right {
|
351 |
-
right: 15px;
|
352 |
-
}
|
353 |
-
|
354 |
-
.location-selector .location.left {
|
355 |
-
left: 15px;
|
356 |
-
}
|
357 |
-
|
358 |
-
.wp-editor-container {
|
359 |
-
margin-left: 25%;
|
360 |
-
}
|
361 |
-
|
362 |
-
.message-setting-fields #upload_image, .message-setting-fields #message_title {
|
363 |
-
width: 58%;
|
364 |
-
}
|
365 |
-
|
366 |
-
.wp-editor-container span .mceLayout {
|
367 |
-
width: 50%;
|
368 |
-
}
|
369 |
-
|
370 |
-
#ui-datepicker-div,
|
371 |
-
#wp-admin-bar-view,
|
372 |
-
#edit-slug-box,
|
373 |
-
.empty_campaign,
|
374 |
-
.location-selector input[type=radio] {
|
375 |
-
display: none;
|
376 |
-
}
|
377 |
-
|
378 |
-
#the-list .message_thumbnail img {
|
379 |
-
max-width: 200px;
|
380 |
-
max-height: 100px;
|
381 |
-
}
|
382 |
-
|
383 |
-
#icegram_messages + .chosen-container-single .chosen-search input[type=text] {
|
384 |
-
width: 100% !important;
|
385 |
-
}
|
386 |
-
.message_theme + .chosen-container.chosen-container .chosen-results {
|
387 |
-
max-height: 30em !important;
|
388 |
-
}
|
389 |
-
|
390 |
-
.message_theme + .chosen-container-single .chosen-single span {
|
391 |
-
background-repeat: no-repeat !important;
|
392 |
-
background-position: 100% 50% !important;
|
393 |
-
}
|
394 |
-
|
395 |
-
.message_theme + .chosen-container .chosen-results li {
|
396 |
-
margin: 0% 0% 2% 2%;
|
397 |
-
background-position: 0.5em 2em !important;
|
398 |
-
-webkit-background-size: 95% !important;
|
399 |
-
background-size: 95% !important;
|
400 |
-
border: 2px solid #EEE !important;
|
401 |
-
font-weight: 700 !important;
|
402 |
-
display: inline-block !important;
|
403 |
-
text-align: center !important;
|
404 |
-
background-repeat: no-repeat !important;
|
405 |
-
}
|
406 |
-
|
407 |
-
.message_theme + .chosen-container .chosen-results li.highlighted {
|
408 |
-
color: #000 !important;
|
409 |
-
border: 2px solid #2ea2cc !important;
|
410 |
-
background-color: #EAEFFF !important;
|
411 |
-
}
|
412 |
-
|
413 |
-
/************* jQuery TipTip ************/
|
414 |
-
#tiptip_holder {
|
415 |
-
display: none;
|
416 |
-
position: absolute;
|
417 |
-
top: 0;
|
418 |
-
left: 0;
|
419 |
-
z-index: 99999;
|
420 |
-
}
|
421 |
-
#tiptip_holder.tip_top {
|
422 |
-
padding-bottom: 5px;
|
423 |
-
}
|
424 |
-
#tiptip_holder.tip_top #tiptip_arrow_inner {
|
425 |
-
margin-top: -7px;
|
426 |
-
margin-left: -6px;
|
427 |
-
border-top-color: #464646;
|
428 |
-
}
|
429 |
-
#tiptip_holder.tip_bottom {
|
430 |
-
padding-top: 5px;
|
431 |
-
}
|
432 |
-
#tiptip_holder.tip_bottom #tiptip_arrow_inner {
|
433 |
-
margin-top: -5px;
|
434 |
-
margin-left: -6px;
|
435 |
-
border-bottom-color: #464646;
|
436 |
-
}
|
437 |
-
#tiptip_holder.tip_right {
|
438 |
-
padding-left: 5px;
|
439 |
-
}
|
440 |
-
#tiptip_holder.tip_right #tiptip_arrow_inner {
|
441 |
-
margin-top: -6px;
|
442 |
-
margin-left: -5px;
|
443 |
-
border-right-color: #464646;
|
444 |
-
}
|
445 |
-
#tiptip_holder.tip_left {
|
446 |
-
padding-right: 5px;
|
447 |
-
}
|
448 |
-
#tiptip_holder.tip_left #tiptip_arrow_inner {
|
449 |
-
margin-top: -6px;
|
450 |
-
margin-left: -7px;
|
451 |
-
border-left-color: #464646;
|
452 |
-
}
|
453 |
-
#tiptip_content, .chart-tooltip {
|
454 |
-
font-size: 11px;
|
455 |
-
color: #fff;
|
456 |
-
padding: .5em;
|
457 |
-
background: #464646;
|
458 |
-
-webkit-border-radius: 3px;
|
459 |
-
-moz-border-radius: 3px;
|
460 |
-
border-radius: 3px;
|
461 |
-
-webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, .1);
|
462 |
-
-moz-box-shadow: 1px 1px 3px rgba(0, 0, 0, .1);
|
463 |
-
box-shadow: 1px 1px 3px rgba(0, 0, 0, .1);
|
464 |
-
text-align: center;
|
465 |
-
max-width: 150px;
|
466 |
-
}
|
467 |
-
#tiptip_content code, .chart-tooltip code {
|
468 |
-
background: #888;
|
469 |
-
padding: 1px;
|
470 |
-
}
|
471 |
-
#tiptip_arrow, #tiptip_arrow_inner {
|
472 |
-
position: absolute;
|
473 |
-
border-color: transparent;
|
474 |
-
border-style: solid;
|
475 |
-
border-width: 6px;
|
476 |
-
height: 0;
|
477 |
-
width: 0;
|
478 |
-
}
|
479 |
-
/************* jQuery TipTip ************/
|
480 |
-
/**
|
481 |
-
Support
|
482 |
-
**/
|
483 |
-
table#icegram_post_query_table {
|
484 |
-
padding: 5px;
|
485 |
-
}
|
486 |
-
table#icegram_post_query_table tr td {
|
487 |
-
padding: 5px;
|
488 |
-
}
|
489 |
-
input.sm_text_field {
|
490 |
-
padding: 5px;
|
491 |
-
}
|
492 |
-
#icegram_post_query_table label {
|
493 |
-
font-weight: bold;
|
494 |
-
}
|
495 |
-
|
496 |
-
/**
|
497 |
-
CSS for landing page and Help and Support
|
498 |
-
**/
|
499 |
-
.icegram-dashicons:before {
|
500 |
-
font-family: dashicons;
|
501 |
-
position: relative;
|
502 |
-
font-family: dashicons;
|
503 |
-
font-style: normal;
|
504 |
-
vertical-align: middle;
|
505 |
-
font-size: 2em;
|
506 |
-
}
|
507 |
-
|
508 |
-
.about-wrap.icegram h2{
|
509 |
-
color: #3754a8;
|
510 |
-
}
|
511 |
-
|
512 |
-
.about-wrap.icegram h2{
|
513 |
-
padding-top: 19px;
|
514 |
-
font-weight: 600;
|
515 |
-
}
|
516 |
-
|
517 |
-
.icegram-dashicons-testimonial h4{
|
518 |
-
font-size: 1.5em;
|
519 |
-
}
|
520 |
-
|
521 |
-
.icegram-badge {
|
522 |
-
background: #3754a8 url(../images/icegram-logo-branding-64-white.png) no-repeat;
|
523 |
-
background-position: center 24px;
|
524 |
-
color: #FFF;
|
525 |
-
font-size: 12px;
|
526 |
-
text-align: center;
|
527 |
-
font-weight: 600;
|
528 |
-
margin: 5px 0 0;
|
529 |
-
padding-top: 120px;
|
530 |
-
height: 24px;
|
531 |
-
display: inline-block;
|
532 |
-
width: 150px;
|
533 |
-
text-rendering: optimizeLegibility;
|
534 |
-
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.2);
|
535 |
-
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
|
536 |
-
}
|
537 |
-
|
538 |
-
|
539 |
-
.about-wrap .icegram-badge {
|
540 |
-
position: absolute;
|
541 |
-
top: 0;
|
542 |
-
right: 0;
|
543 |
-
}
|
544 |
-
.icegram-support{
|
545 |
-
font-size: 14px;
|
546 |
-
color: black;
|
547 |
-
margin: 15px 0 0;
|
548 |
-
height: 10px;
|
549 |
-
width: 180px;
|
550 |
-
text-align: center;
|
551 |
-
text-rendering: optimizeLegibility;
|
552 |
-
/*-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.2);*/
|
553 |
-
/*box-shadow: 0 1px 3px rgba(0,0,0,0.2);*/
|
554 |
-
position: absolute;
|
555 |
-
top: 0;
|
556 |
-
right: 0;
|
557 |
-
margin-top: 178px;
|
558 |
-
text-align: right;
|
559 |
-
}
|
560 |
-
.icegram-contact-us{
|
561 |
-
font-size: 20px;
|
562 |
-
line-height: 1.5em;
|
563 |
-
font-weight: 800;
|
564 |
-
margin-right: 18px;
|
565 |
-
}
|
566 |
-
|
567 |
-
.icegram-contact-us a{
|
568 |
-
color: #3754a8;
|
569 |
-
}
|
570 |
-
|
571 |
-
/* Addons Page*/
|
572 |
-
.ig_addons_wrap .addons {
|
573 |
-
overflow: hidden;
|
574 |
-
}
|
575 |
-
.ig_addons_wrap .addons li {
|
576 |
-
float: left;
|
577 |
-
margin: 0 1em 1em 0!important;
|
578 |
-
padding: 0;
|
579 |
-
vertical-align: top;
|
580 |
-
width: 300px;
|
581 |
-
}
|
582 |
-
.ig_addons_wrap .addons li a {
|
583 |
-
text-decoration: none;
|
584 |
-
color: inherit;
|
585 |
-
border: 1px solid #ddd;
|
586 |
-
display: block;
|
587 |
-
min-height: 220px;
|
588 |
-
overflow: hidden;
|
589 |
-
background: #f5f5f5;
|
590 |
-
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(0, 0, 0, .1);
|
591 |
-
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(0, 0, 0, .1);
|
592 |
-
}
|
593 |
-
.ig_addons_wrap .addons li a img {
|
594 |
-
max-width: 100px;
|
595 |
-
max-height: 100px;
|
596 |
-
margin-right: -15px;
|
597 |
-
padding: 0 0 5px 5px;
|
598 |
-
float: right;
|
599 |
-
}
|
600 |
-
.ig_addons_wrap .addons li a h3 {
|
601 |
-
margin: 0!important;
|
602 |
-
padding: 20px!important;
|
603 |
-
background: #fff;
|
604 |
-
}
|
605 |
-
.ig_addons_wrap .addons li a p {
|
606 |
-
padding: 20px!important;
|
607 |
-
margin: 0!important;
|
608 |
-
border-top: 1px solid #f1f1f1;
|
609 |
-
}
|
610 |
-
.ig_addons_wrap .addons li a:focus, .ig_addons_wrap .addons li a:hover {
|
611 |
-
background-color: #fff;
|
612 |
-
}
|
613 |
-
.ig_addons_wrap .addons li .ig_addon_category {
|
614 |
-
margin-top: -3.5em;
|
615 |
-
float: right;
|
616 |
-
text-transform: capitalize;
|
617 |
-
font-style: normal;
|
618 |
-
margin-right: 1em;
|
619 |
-
font-size: 80%;
|
620 |
-
}
|
621 |
-
.ig_addons_wrap .addons li .ig_addon_category span {
|
622 |
-
margin-left: 1.2em;
|
623 |
-
padding: 2px 3px;
|
624 |
-
background-color: #DEDEDE;
|
625 |
-
border-radius: .3em;
|
626 |
-
}
|
627 |
-
.ig_addons_wrap .addons li .ig_addon_category span.free {
|
628 |
-
background-color: #C3D3FF;
|
629 |
-
color: #3754a8;
|
630 |
-
}
|
631 |
-
|
632 |
-
.ig_addons_special_message {
|
633 |
-
font-size: 60%;
|
634 |
-
line-height: 60%;
|
635 |
-
margin-left: 3em;
|
636 |
-
padding: 3px 10px;
|
637 |
-
background-color: #FCF0AD;
|
638 |
-
border: 1px solid #CCC;
|
639 |
-
}
|
640 |
-
|
641 |
-
/** Embed Form CSS - Start**/
|
642 |
-
#popup_container {
|
643 |
-
width: 550px;
|
644 |
-
background-color: #FFF;
|
645 |
-
margin: 0 auto;
|
646 |
-
padding: .5em 1em 1em 1em;
|
647 |
-
}
|
648 |
-
#popup_container input[value="ig_vertical"]{
|
649 |
-
margin-left: 3%;
|
650 |
-
}
|
651 |
-
#popup_container select{
|
652 |
-
width:30%;
|
653 |
-
}
|
654 |
-
#popup_container #embed_howto_link {
|
655 |
-
float: right;
|
656 |
-
font-size: .8em;
|
657 |
-
font-weight: normal;
|
658 |
-
}
|
659 |
-
/** Embed Form CSS - End**/
|
660 |
-
|
661 |
-
|
662 |
-
/** Fix to keep the message setting row indepenent of other themes **/
|
663 |
-
.campaign_target_rules_panel .messages_list_table p.inline{
|
664 |
-
display: block;
|
665 |
-
margin: 1em 0;
|
666 |
-
}
|
667 |
-
|
668 |
-
.campaign_target_rules_panel .form-field .delete-url:before{
|
669 |
-
font-family: dashicons;
|
670 |
-
content: "\f182";
|
671 |
-
cursor: pointer;
|
672 |
-
}
|
673 |
-
.campaign_target_rules_panel .form-field .url_input_field{
|
674 |
-
width:65% !important;
|
675 |
-
}
|
676 |
-
|
677 |
-
|
678 |
-
.campaign_target_rules_panel #valid-field{
|
679 |
-
margin-left: 92%;
|
680 |
-
}
|
681 |
-
|
682 |
-
.campaign_target_rules_panel #valid-field.error{
|
683 |
-
font-family: dashicons;
|
684 |
-
font-size: 1.5em;
|
685 |
-
color: #ff0000;
|
686 |
-
vertical-align: middle;
|
687 |
-
display: inline-block;
|
688 |
-
-webkit-font-smoothing: antialiased;
|
689 |
-
cursor: help;
|
690 |
-
}
|
691 |
-
|
692 |
-
.campaign_target_rules_panel #valid-field.error:after{
|
693 |
-
content: "\f223";
|
694 |
-
}
|
695 |
-
|
696 |
-
.campaign_target_rules_panel #add-url-icon:after{
|
697 |
-
font-family: dashicons;
|
698 |
-
content: "\f132";
|
699 |
-
vertical-align: middle;
|
700 |
-
}
|
701 |
-
/* chosen fix*/
|
702 |
-
|
703 |
-
.message-setting-fields .chosen-container-single .chosen-single
|
704 |
-
{
|
705 |
-
z-index:initial!important;
|
706 |
-
}
|
707 |
-
.message-setting-fields .chosen-container-single.chosen-single div b {
|
708 |
-
background: url(../images/chosen-sprite.png)no-repeat 0 2px!important;
|
709 |
-
}
|
1 |
+
.campaign_target_rules_panel .options_group{border-bottom:1px dashed #D3D3D3}.campaign_target_rules_panel .options_group:last-child{border-bottom-style:none}.campaign_target_rules_panel .options_group .form-field .options_header{display:inline-block;width:30%;vertical-align:top}.campaign_target_rules_panel .options_group p label input[type=checkbox],.campaign_target_rules_panel .options_group p label input[type=radio]{width:0}.campaign_target_rules_panel .options_group p label input[type=date]{width:auto;margin-left:10px}.user_roles p label input[type=checkbox],.user_roles p label input[type=radio]{margin-left:3px}.campaign_target_rules_panel .options_group .form-field #icegram_messages{width:300px;text-align:center}.empty_campaign{margin:1em;font-style:italic}.hndle em{font-weight:normal;font-size:85%;margin-left:1em;color:#777}h3 .chosen-container{font-weight:500}.thickbox_edit_message{padding:0 1em;border-bottom:1px solid #D3D3D3}.messages-list-sortable{margin-top:30px}.messages_list_table{font-size:1em;width:100%;border-collapse:separate;border-spacing:3px}th.message_header{text-align:center!important}.message_title{text-align:left}.message_headline{text-align:left;padding-left:1.2em}.message_seconds,.action_links{width:75px!important;text-align:center}.message_seconds input{text-align:right}.message-row .seconds-text{width:40px!important;text-align:center}.message-sort-placeholder{background-color:#D3D3D3}.device{width:auto;line-height:5em;vertical-align:baseline}.device:after{font-family:dashicons;font-size:3em}.device input{position:relative;left:2.5em;top:1.5em}.admin_field_icon{display:inline-block;-webkit-font-smoothing:antialiased;width:18px;height:18px;font:400 18px/1 dashicons;color:#888;vertical-align:text-top;margin:0 2px}.campaign_preview{float:right;margin-right:1em!important}.shortcode_description:before{content:"\f348"}.shortcode_description.light{content:"\f348";color:#777}.campaign_shortcode{display:block;width:45%;color:#777}.campaign_shortcode.light{margin-left:50%;border:1px dashed #ccc;padding-left:0.6%;padding-right:0.2%;position:absolute;margin-top:-1.5em}.campaign_shortcode.light code{color:#777}label[for=device_mobile]{margin-left:-2em}label[for=device_mobile]:after{content:"\f470"}label[for=device_tablet]:after{content:"\f471"}label[for=device_laptop]:after{content:"\f472"}.date_picker:after{font-family:dashicons;content:"\f145";position:relative;top:5px;font:normal 20px/1 dashicons;vertical-align:top}.date_picker{margin-left:1em}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.date-picker{max-width:15%}.campaign_target_rules_panel .options_group .messages-list .form-field .message_header{width:75px!important;text-align:right}.disable{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";filter:alpha(opacity=30);opacity:0.3}.enable{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:alpha(opacity=100);opacity:1}.message_edit:after{content:"\f464"}.message_delete:after{content:"\f158"}.actions:after{font-family:dashicons;font-size:1.4em}.actions{text-decoration:none;color:#444;padding-right:3px;cursor:pointer}.actions:hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";filter:alpha(opacity=70);opacity:0.7}.action_links{vertical-align:middle}.message_header_label{color:#fff;text-align:center;font-size:0.7em!important;margin:0!important;padding:3px 5px;cursor:auto;text-transform:uppercase}.message_label{float:left;width:25%;padding:0}.message_field{width:65%;display:inline-block}.message_image_button .image-buttons-icon{margin:0 2px}.message_image_button .image-buttons-icon:before{content:"\f128"}.message_headline_button,.message_image_button{vertical-align:top!important}.message_headline_button .headline-buttons-icon{margin:2px}.message_headline_button .headline-buttons-icon:before{content:"\f130"}.help_tip:after{content:"\f223"}.help_tip{float:right;margin:4px 0;cursor:help;text-decoration:none}.chosen-container{width:65%!important}.message_row.position{height:110px}.location-selector input[type=radio]:checked + label span{background-color:#2ea2cc}.location-selector{width:128px;height:115px;position:absolute;display:block;margin-left:24.3%;background-image:url(../images/desktop.png);background-position:0 -19px}.location-selector .location{background-color:#ddd;cursor:pointer;position:absolute}.location-selector .location:hover{background-color:#ccc}.location-selector .location.top,.location-selector .location.bottom,.location-selector .location.middle{height:14%;width:14%;right:42%}.location-selector .location.top{top:13px}.location-selector .location.middle{top:30%}.location-selector .location.bottom{bottom:43px}.location-selector .location.right,.location-selector .location.left{height:14%;width:14%;margin-left:0;margin-right:0}.location-selector .location.right{right:15px}.location-selector .location.left{left:15px}.wp-editor-container{margin-left:25%}.message-setting-fields #upload_image,.message-setting-fields #message_title{width:58%}.wp-editor-container span .mceLayout{width:50%}#ui-datepicker-div,#wp-admin-bar-view,#edit-slug-box,.empty_campaign,.location-selector input[type=radio]{display:none}#the-list .message_thumbnail img{max-width:200px;max-height:100px}#icegram_messages + .chosen-container-single .chosen-search input[type=text]{width:100%!important}.message_theme + .chosen-container.chosen-container .chosen-results{max-height:30em!important}.message_theme + .chosen-container-single .chosen-single span{background-repeat:no-repeat!important;background-position:100% 50%!important}.message_theme + .chosen-container .chosen-results li{margin:0% 0% 2% 2%;background-position:0.5em 2em!important;-webkit-background-size:95%!important;background-size:95%!important;border:2px solid #EEE!important;font-weight:700!important;display:inline-block!important;text-align:center!important;background-repeat:no-repeat!important}.message_theme + .chosen-container .chosen-results li.highlighted{color:#000!important;border:2px solid #2ea2cc!important;background-color:#EAEFFF!important}#tiptip_holder{display:none;position:absolute;top:0;left:0;z-index:99999}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-left:-6px;border-top-color:#464646}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#464646}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#464646}#tiptip_holder.tip_left{padding-right:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#464646}#tiptip_content,.chart-tooltip{font-size:11px;color:#fff;padding:.5em;background:#464646;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:1px 1px 3px rgba(0,0,0,.1);-moz-box-shadow:1px 1px 3px rgba(0,0,0,.1);box-shadow:1px 1px 3px rgba(0,0,0,.1);text-align:center;max-width:150px}#tiptip_content code,.chart-tooltip code{background:#888;padding:1px}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}table#icegram_post_query_table{padding:5px}table#icegram_post_query_table tr td{padding:5px}input.sm_text_field{padding:5px}#icegram_post_query_table label{font-weight:bold}.icegram-dashicons:before{font-family:dashicons;position:relative;font-family:dashicons;font-style:normal;vertical-align:middle;font-size:2em}.about-wrap.icegram h2{color:#3754a8}.about-wrap.icegram h2{padding-top:19px;font-weight:600}.icegram-dashicons-testimonial h4{font-size:1.5em}.icegram-badge{background:#3754a8 url(../images/icegram-logo-branding-64-white.png) no-repeat;background-position:center 24px;color:#FFF;font-size:12px;text-align:center;font-weight:600;margin:5px 0 0;padding-top:120px;height:24px;display:inline-block;width:150px;text-rendering:optimizeLegibility;-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.2);box-shadow:0 1px 3px rgba(0,0,0,0.2)}.about-wrap .icegram-badge{position:absolute;top:0;right:0}.icegram-support{font-size:14px;color:black;margin:15px 0 0;height:10px;width:180px;text-align:center;text-rendering:optimizeLegibility;position:absolute;top:0;right:0;margin-top:178px;text-align:right}.icegram-contact-us{font-size:20px;line-height:1.5em;font-weight:800;margin-right:18px}.icegram-contact-us a{color:#3754a8}.ig_addons_wrap .addons{overflow:hidden}.ig_addons_wrap .addons li{float:left;margin:0 1em 1em 0!important;padding:0;vertical-align:top;width:300px}.ig_addons_wrap .addons li a{text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:220px;overflow:hidden;background:#f5f5f5;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1)}.ig_addons_wrap .addons li a img{max-width:100px;max-height:100px;margin-right:-15px;padding:0 0 5px 5px;float:right}.ig_addons_wrap .addons li a h3{margin:0!important;padding:20px!important;background:#fff}.ig_addons_wrap .addons li a p{padding:20px!important;margin:0!important;border-top:1px solid #f1f1f1}.ig_addons_wrap .addons li a:focus,.ig_addons_wrap .addons li a:hover{background-color:#fff}.ig_addons_wrap .addons li .ig_addon_category{margin-top:-3.5em;float:right;text-transform:capitalize;font-style:normal;margin-right:1em;font-size:80%}.ig_addons_wrap .addons li .ig_addon_category span{margin-left:1.2em;padding:2px 3px;background-color:#DEDEDE;border-radius:.3em}.ig_addons_wrap .addons li .ig_addon_category span.free{background-color:#C3D3FF;color:#3754a8}.ig_addons_special_message{font-size:60%;line-height:60%;margin-left:3em;padding:3px 10px;background-color:#FCF0AD;border:1px solid #CCC}#popup_container{width:550px;background-color:#FFF;margin:0 auto;padding:.5em 1em 1em 1em}#popup_container input[value="ig_vertical"]{margin-left:3%}#popup_container select{width:30%}#popup_container #embed_howto_link{float:right;font-size:.8em;font-weight:normal}.campaign_target_rules_panel .messages_list_table p.inline{display:block;margin:1em 0}.campaign_target_rules_panel .form-field .delete-url:before{font-family:dashicons;content:"\f182";cursor:pointer}.campaign_target_rules_panel .form-field .url_input_field{width:65%!important}.campaign_target_rules_panel #valid-field{margin-left:92%}.campaign_target_rules_panel #valid-field.error{font-family:dashicons;font-size:1.5em;color:#f00;vertical-align:middle;display:inline-block;-webkit-font-smoothing:antialiased;cursor:help}.campaign_target_rules_panel #valid-field.error:after{content:"\f223"}.campaign_target_rules_panel #add-url-icon:after{font-family:dashicons;content:"\f132";vertical-align:middle}.message_colors_options_container p{margin-top:.3em!important;margin-bottom:.3em!important}.message_colors_options_container p span.message_label{font-size:12px;margin-top:2px}.message-setting-fields .chosen-container-single .chosen-single{z-index:initial!important}.message-setting-fields .chosen-container-single.chosen-single div b{background:url(../images/chosen-sprite.png)no-repeat 0 2px!important}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/css/chosen.min.css
CHANGED
@@ -1,3 +1,2 @@
|
|
1 |
/* Chosen v1.1.0 | (c) 2011-2013 by Harvest | MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md */
|
2 |
-
|
3 |
.chosen-container{position:relative;display:inline-block;vertical-align:middle;font-size:13px;zoom:1;*display:inline;-webkit-user-select:none;-moz-user-select:none;user-select:none}.chosen-container .chosen-drop{position:absolute;top:100%;left:-9999px;z-index:1010;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;border:1px solid #aaa;border-top:0;background:#fff;box-shadow:0 4px 5px rgba(0,0,0,.15)}.chosen-container.chosen-with-drop .chosen-drop{left:0}.chosen-container a{cursor:pointer}.chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:23px;border:1px solid #aaa;border-radius:5px;background-color:#fff;background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#fff),color-stop(50%,#f6f6f6),color-stop(52%,#eee),color-stop(100%,#f4f4f4));background:-webkit-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background:-moz-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background:-o-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background:linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-clip:padding-box;box-shadow:0 0 3px #fff inset,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-sprite.png) -42px 1px no-repeat;font-size:1px}.chosen-container-single .chosen-single abbr:hover{background-position:-42px -10px}.chosen-container-single.chosen-disabled .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-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]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #aaa;background:#fff url(../images/chosen-sprite.png) no-repeat 100% -20px;background:url(../images/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;left:-9999px}.chosen-container .chosen-results{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;-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,50% 0,50% 100%,color-stop(20%,#3875d7),color-stop(90%,#2a62bc));background-image:-webkit-linear-gradient(#3875d7 20%,#2a62bc 90%);background-image:-moz-linear-gradient(#3875d7 20%,#2a62bc 90%);background-image:-o-linear-gradient(#3875d7 20%,#2a62bc 90%);background-image:linear-gradient(#3875d7 20%,#2a62bc 90%);color:#fff}.chosen-container .chosen-results li.no-results{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;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;width:100%;height:auto!important;height:1%;border:1px solid #aaa;background-color:#fff;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(1%,#eee),color-stop(15%,#fff));background-image:-webkit-linear-gradient(#eee 1%,#fff 15%);background-image:-moz-linear-gradient(#eee 1%,#fff 15%);background-image:-o-linear-gradient(#eee 1%,#fff 15%);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:5px;height:15px;outline:0;border:0!important;background:transparent!important;box-shadow:none;color:#666;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0}.chosen-container-multi .chosen-choices li.search-field .default{color:#999}.chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 0 3px 5px;padding:3px 20px 3px 5px;border:1px solid #aaa;border-radius:3px;background-color:#e4e4e4;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#f4f4f4),color-stop(50%,#f0f0f0),color-stop(52%,#e8e8e8),color-stop(100%,#eee));background-image:-webkit-linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-moz-linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-o-linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);color:#333;line-height:13px;cursor:default}.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-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,50% 0,50% 100%,color-stop(20%,#f4f4f4),color-stop(50%,#f0f0f0),color-stop(52%,#e8e8e8),color-stop(100%,#eee));background-image:-webkit-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-moz-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-o-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);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;box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #aaa;-moz-border-radius-bottomright:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#eee),color-stop(80%,#fff));background-image:-webkit-linear-gradient(#eee 20%,#fff 80%);background-image:-moz-linear-gradient(#eee 20%,#fff 80%);background-image:-o-linear-gradient(#eee 20%,#fff 80%);background-image:linear-gradient(#eee 20%,#fff 80%);box-shadow:0 1px 0 #fff inset}.chosen-container-active.chosen-with-drop .chosen-single div{border-left:0;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;box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active .chosen-choices li.search-field input[type=text]{color:#111!important}.chosen-disabled{opacity:.5!important;cursor:default}.chosen-disabled .chosen-single{cursor:default}.chosen-disabled .chosen-choices .search-choice .search-choice-close{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-nosearch .chosen-search,.chosen-rtl .chosen-drop{left:9999px}.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:0}.chosen-rtl .chosen-search input[type=text]{padding:4px 5px 4px 20px;background:#fff url(../images/chosen-sprite.png) no-repeat -30px -20px;background:url(../images/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:2),only screen and (min-resolution:144dpi){.chosen-rtl .chosen-search input[type=text],.chosen-container-single .chosen-single abbr,.chosen-container-single .chosen-single div b,.chosen-container-single .chosen-search input[type=text],.chosen-container-multi .chosen-choices .search-choice .search-choice-close,.chosen-container .chosen-results-scroll-down span,.chosen-container .chosen-results-scroll-up span{background-image:url(chosen-sprite@2x.png)!important;background-size:52px 37px!important;background-repeat:no-repeat!important}}
|
1 |
/* Chosen v1.1.0 | (c) 2011-2013 by Harvest | MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md */
|
|
|
2 |
.chosen-container{position:relative;display:inline-block;vertical-align:middle;font-size:13px;zoom:1;*display:inline;-webkit-user-select:none;-moz-user-select:none;user-select:none}.chosen-container .chosen-drop{position:absolute;top:100%;left:-9999px;z-index:1010;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;border:1px solid #aaa;border-top:0;background:#fff;box-shadow:0 4px 5px rgba(0,0,0,.15)}.chosen-container.chosen-with-drop .chosen-drop{left:0}.chosen-container a{cursor:pointer}.chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:23px;border:1px solid #aaa;border-radius:5px;background-color:#fff;background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#fff),color-stop(50%,#f6f6f6),color-stop(52%,#eee),color-stop(100%,#f4f4f4));background:-webkit-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background:-moz-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background:-o-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background:linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-clip:padding-box;box-shadow:0 0 3px #fff inset,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-sprite.png) -42px 1px no-repeat;font-size:1px}.chosen-container-single .chosen-single abbr:hover{background-position:-42px -10px}.chosen-container-single.chosen-disabled .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-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]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #aaa;background:#fff url(../images/chosen-sprite.png) no-repeat 100% -20px;background:url(../images/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;left:-9999px}.chosen-container .chosen-results{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;-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,50% 0,50% 100%,color-stop(20%,#3875d7),color-stop(90%,#2a62bc));background-image:-webkit-linear-gradient(#3875d7 20%,#2a62bc 90%);background-image:-moz-linear-gradient(#3875d7 20%,#2a62bc 90%);background-image:-o-linear-gradient(#3875d7 20%,#2a62bc 90%);background-image:linear-gradient(#3875d7 20%,#2a62bc 90%);color:#fff}.chosen-container .chosen-results li.no-results{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;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;width:100%;height:auto!important;height:1%;border:1px solid #aaa;background-color:#fff;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(1%,#eee),color-stop(15%,#fff));background-image:-webkit-linear-gradient(#eee 1%,#fff 15%);background-image:-moz-linear-gradient(#eee 1%,#fff 15%);background-image:-o-linear-gradient(#eee 1%,#fff 15%);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:5px;height:15px;outline:0;border:0!important;background:transparent!important;box-shadow:none;color:#666;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0}.chosen-container-multi .chosen-choices li.search-field .default{color:#999}.chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 0 3px 5px;padding:3px 20px 3px 5px;border:1px solid #aaa;border-radius:3px;background-color:#e4e4e4;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#f4f4f4),color-stop(50%,#f0f0f0),color-stop(52%,#e8e8e8),color-stop(100%,#eee));background-image:-webkit-linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-moz-linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-o-linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);color:#333;line-height:13px;cursor:default}.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-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,50% 0,50% 100%,color-stop(20%,#f4f4f4),color-stop(50%,#f0f0f0),color-stop(52%,#e8e8e8),color-stop(100%,#eee));background-image:-webkit-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-moz-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-o-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);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;box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #aaa;-moz-border-radius-bottomright:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#eee),color-stop(80%,#fff));background-image:-webkit-linear-gradient(#eee 20%,#fff 80%);background-image:-moz-linear-gradient(#eee 20%,#fff 80%);background-image:-o-linear-gradient(#eee 20%,#fff 80%);background-image:linear-gradient(#eee 20%,#fff 80%);box-shadow:0 1px 0 #fff inset}.chosen-container-active.chosen-with-drop .chosen-single div{border-left:0;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;box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active .chosen-choices li.search-field input[type=text]{color:#111!important}.chosen-disabled{opacity:.5!important;cursor:default}.chosen-disabled .chosen-single{cursor:default}.chosen-disabled .chosen-choices .search-choice .search-choice-close{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-nosearch .chosen-search,.chosen-rtl .chosen-drop{left:9999px}.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:0}.chosen-rtl .chosen-search input[type=text]{padding:4px 5px 4px 20px;background:#fff url(../images/chosen-sprite.png) no-repeat -30px -20px;background:url(../images/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:2),only screen and (min-resolution:144dpi){.chosen-rtl .chosen-search input[type=text],.chosen-container-single .chosen-single abbr,.chosen-container-single .chosen-single div b,.chosen-container-single .chosen-search input[type=text],.chosen-container-multi .chosen-choices .search-choice .search-choice-close,.chosen-container .chosen-results-scroll-down span,.chosen-container .chosen-results-scroll-up span{background-image:url(chosen-sprite@2x.png)!important;background-size:52px 37px!important;background-repeat:no-repeat!important}}
|
assets/css/frontend.css
CHANGED
@@ -1,180 +1,2 @@
|
|
1 |
/* Powered By link */
|
2 |
-
.powered_by
|
3 |
-
color: #A8A8A8 !important;
|
4 |
-
text-decoration: none;
|
5 |
-
}
|
6 |
-
|
7 |
-
/* Forms */
|
8 |
-
div.icegram form {
|
9 |
-
box-sizing: border-box;
|
10 |
-
-moz-box-sizing: border-box;
|
11 |
-
-webkit-box-sizing: border-box;
|
12 |
-
}
|
13 |
-
|
14 |
-
div.icegram input, div.icegram label {
|
15 |
-
margin: .2em .2em .2em .5em;
|
16 |
-
box-sizing: border-box;
|
17 |
-
-moz-box-sizing: border-box;
|
18 |
-
-webkit-box-sizing: border-box;
|
19 |
-
vertical-align: middle !important;
|
20 |
-
}
|
21 |
-
/*
|
22 |
-
div.icegram input[type="submit"], div.icegram input[type="button"], div.icegram input[type="button"] {
|
23 |
-
font-size: 100%;
|
24 |
-
}
|
25 |
-
*/
|
26 |
-
|
27 |
-
/************* Embeded Form CSS - Start************/
|
28 |
-
div.icegram .ig_embed_form{
|
29 |
-
text-align: left;
|
30 |
-
margin-bottom: 1%;
|
31 |
-
}
|
32 |
-
|
33 |
-
.ig_embed_form ul.ig_embed_form_container{
|
34 |
-
list-style-type: none !important;
|
35 |
-
margin: 0;
|
36 |
-
padding: 1%;
|
37 |
-
}
|
38 |
-
|
39 |
-
div.icegram .ig_embed_form.ig_full .ig_embed_form_container{
|
40 |
-
width:100%;
|
41 |
-
}
|
42 |
-
div.icegram .ig_embed_form.ig_half .ig_embed_form_container{
|
43 |
-
width:50%;
|
44 |
-
}
|
45 |
-
div.icegram .ig_embed_form.ig_quarter .ig_embed_form_container{
|
46 |
-
width:25%;
|
47 |
-
}
|
48 |
-
div.icegram .ig_embed_form.ig_auto .ig_embed_form_container{
|
49 |
-
width: 25%;
|
50 |
-
margin-right: 2%;
|
51 |
-
}
|
52 |
-
|
53 |
-
div.icegram .ig_embed_form.ig_left .ig_embed_form_container{
|
54 |
-
float: left;
|
55 |
-
overflow: hidden;
|
56 |
-
}
|
57 |
-
div.icegram .ig_embed_form.ig_right .ig_embed_form_container{
|
58 |
-
float: right;
|
59 |
-
}
|
60 |
-
div.icegram .ig_embed_form.ig_center .ig_embed_form_container{
|
61 |
-
margin: 0 auto;
|
62 |
-
display: block;
|
63 |
-
text-align: center;
|
64 |
-
}
|
65 |
-
div.icegram .ig_embed_form.ig_inline .ig_embed_form_container{
|
66 |
-
display: inline-block;
|
67 |
-
margin: 1% 1% 0 1%;
|
68 |
-
padding: 0 1%;
|
69 |
-
vertical-align: bottom;
|
70 |
-
}
|
71 |
-
|
72 |
-
div.icegram .ig_embed_form input{
|
73 |
-
margin-top: 0;
|
74 |
-
}
|
75 |
-
div.icegram .ig_embed_form .ig_embed_form_container {
|
76 |
-
font-size: .9em;
|
77 |
-
text-align: left !important;
|
78 |
-
}
|
79 |
-
div.icegram .ig_embed_form.ig_vertical.ig_quarter label,
|
80 |
-
div.icegram .ig_embed_form.ig_vertical.ig_quarter textarea,
|
81 |
-
div.icegram .ig_embed_form.ig_vertical.ig_quarter select,
|
82 |
-
div.icegram .ig_embed_form.ig_vertical.ig_quarter input{
|
83 |
-
/*margin: 0;*/
|
84 |
-
}
|
85 |
-
div.icegram .ig_embed_form.ig_vertical label,
|
86 |
-
div.icegram .ig_embed_form.ig_vertical textarea,
|
87 |
-
div.icegram .ig_embed_form.ig_vertical select,
|
88 |
-
div.icegram .ig_embed_form.ig_vertical input{
|
89 |
-
width: 96%;
|
90 |
-
margin-right: 4%;
|
91 |
-
}
|
92 |
-
|
93 |
-
div.icegram .ig_embed_form.ig_horizontal .ig_embed_form_container li{
|
94 |
-
display: inline-block;
|
95 |
-
min-width: 24%;
|
96 |
-
}
|
97 |
-
div.icegram .ig_embed_form.ig_horizontal label,
|
98 |
-
div.icegram .ig_embed_form.ig_horizontal textarea,
|
99 |
-
div.icegram .ig_embed_form.ig_horizontal select,
|
100 |
-
div.icegram .ig_embed_form.ig_horizontal input{
|
101 |
-
width: 96%;
|
102 |
-
margin-right: 4%;
|
103 |
-
}
|
104 |
-
|
105 |
-
div.icegram .ig_embed_form .ig_form_el_group.ig_form_el_radio input{
|
106 |
-
width: auto;
|
107 |
-
}
|
108 |
-
div.icegram .ig_embed_form.ig_horizontal .ig_form_el_group.ig_form_el_radio label{
|
109 |
-
|
110 |
-
}
|
111 |
-
div.icegram .ig_embed_form .ig_form_el_group.ig_form_el_radio label{
|
112 |
-
width: 92%;
|
113 |
-
margin-right: 4%;
|
114 |
-
font-size: 1em;
|
115 |
-
margin-bottom: 0.2em;
|
116 |
-
margin-top: 0.2em;
|
117 |
-
}
|
118 |
-
div.icegram .ig_embed_form select{
|
119 |
-
padding: .3em 0;
|
120 |
-
|
121 |
-
}
|
122 |
-
div.icegram .ig_embed_form select,
|
123 |
-
div.icegram .ig_embed_form textarea {
|
124 |
-
margin: .2em .2em .2em .5em;
|
125 |
-
-moz-box-sizing: border-box;
|
126 |
-
-webkit-box-sizing: border-box;
|
127 |
-
box-sizing: border-box;
|
128 |
-
vertical-align: middle !important;
|
129 |
-
}
|
130 |
-
div.icegram .ig_embed_form .ig_form_el_group textarea{
|
131 |
-
height: 4em;
|
132 |
-
}
|
133 |
-
|
134 |
-
div.icegram .ig_embed_form input[type="submit"],
|
135 |
-
div.icegram .ig_embed_form input[type="button"]{
|
136 |
-
line-height: 1em;
|
137 |
-
font-size: 1em;
|
138 |
-
margin: .2em .2em .2em .5em!important;
|
139 |
-
width: auto;
|
140 |
-
}
|
141 |
-
|
142 |
-
div.icegram .ig_embed_form .ig_detected_bot_fields{
|
143 |
-
display: none;
|
144 |
-
}
|
145 |
-
|
146 |
-
/************* Embeded Form - End************/
|
147 |
-
|
148 |
-
div.icegram .ig_clear:after {
|
149 |
-
content: ".";
|
150 |
-
display: block;
|
151 |
-
clear: both;
|
152 |
-
visibility: hidden;
|
153 |
-
line-height: 0;
|
154 |
-
height: 0;
|
155 |
-
}
|
156 |
-
|
157 |
-
|
158 |
-
@media only screen and (max-device-width: 319px) {
|
159 |
-
div.icegram .ig_embed_form.ig_left .ig_embed_form_container{
|
160 |
-
margin-bottom: .7em;
|
161 |
-
}
|
162 |
-
}
|
163 |
-
|
164 |
-
@media only screen and (min-device-width: 320px) and (max-device-width: 359px) {
|
165 |
-
div.icegram .ig_embed_form.ig_left .ig_embed_form_container{
|
166 |
-
margin-bottom: .7em;
|
167 |
-
}
|
168 |
-
}
|
169 |
-
|
170 |
-
@media only screen and (min-device-width: 360px) and (max-device-width: 413px) {
|
171 |
-
div.icegram .ig_embed_form.ig_left .ig_embed_form_container{
|
172 |
-
margin-bottom: .7em;
|
173 |
-
}
|
174 |
-
}
|
175 |
-
|
176 |
-
@media only screen and (min-device-width: 414px) and (max-device-width: 643px) {
|
177 |
-
div.icegram .ig_embed_form.ig_left .ig_embed_form_container{
|
178 |
-
margin-bottom: .7em;
|
179 |
-
}
|
180 |
-
}
|
1 |
/* Powered By link */
|
2 |
+
.powered_by,.powered_by a,a.powered_by{color:#A8A8A8!important;text-decoration:none}div.icegram form{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}div.icegram input,div.icegram label{margin:.2em .2em .2em .5em;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;vertical-align:middle!important}div.icegram .ig_embed_form{text-align:left;margin-bottom:1%}.ig_embed_form ul.ig_embed_form_container{list-style-type:none!important;margin:0;padding:1%}div.icegram .ig_embed_form.ig_full .ig_embed_form_container{width:100%}div.icegram .ig_embed_form.ig_half .ig_embed_form_container{width:50%}div.icegram .ig_embed_form.ig_quarter .ig_embed_form_container{width:25%}div.icegram .ig_embed_form.ig_auto .ig_embed_form_container{width:25%;margin-right:2%}div.icegram .ig_embed_form.ig_left .ig_embed_form_container{float:left;overflow:hidden}div.icegram .ig_embed_form.ig_right .ig_embed_form_container{float:right}div.icegram .ig_embed_form.ig_center .ig_embed_form_container{margin:0 auto;display:block;text-align:center}div.icegram .ig_embed_form.ig_inline .ig_embed_form_container{display:inline-block;margin:1% 1% 0 1%;padding:0 1%;vertical-align:bottom}div.icegram .ig_embed_form input{margin-top:0}div.icegram .ig_embed_form .ig_embed_form_container{font-size:.9em;text-align:left!important}div.icegram .ig_embed_form.ig_vertical.ig_quarter label,div.icegram .ig_embed_form.ig_vertical.ig_quarter textarea,div.icegram .ig_embed_form.ig_vertical.ig_quarter select,div.icegram .ig_embed_form.ig_vertical.ig_quarter input{}div.icegram .ig_embed_form.ig_vertical label,div.icegram .ig_embed_form.ig_vertical textarea,div.icegram .ig_embed_form.ig_vertical select,div.icegram .ig_embed_form.ig_vertical input{width:96%;margin-right:4%}div.icegram .ig_embed_form.ig_horizontal .ig_embed_form_container li{display:inline-block;min-width:24%}div.icegram .ig_embed_form.ig_horizontal label,div.icegram .ig_embed_form.ig_horizontal textarea,div.icegram .ig_embed_form.ig_horizontal select,div.icegram .ig_embed_form.ig_horizontal input{width:96%;margin-right:4%}div.icegram .ig_embed_form .ig_form_el_group.ig_form_el_radio input{width:auto}div.icegram .ig_embed_form.ig_horizontal .ig_form_el_group.ig_form_el_radio label{}div.icegram .ig_embed_form .ig_form_el_group.ig_form_el_radio label{width:92%;margin-right:4%;font-size:1em;margin-bottom:0.2em;margin-top:0.2em}div.icegram .ig_embed_form select{padding:.3em 0}div.icegram .ig_embed_form select,div.icegram .ig_embed_form textarea{margin:.2em .2em .2em .5em;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;vertical-align:middle!important}div.icegram .ig_embed_form .ig_form_el_group textarea{height:4em}div.icegram .ig_embed_form input[type="submit"],div.icegram .ig_embed_form input[type="button"]{line-height:1em;font-size:1em;margin:.2em .2em .2em .5em!important;width:auto}div.icegram .ig_embed_form .ig_detected_bot_fields{display:none}div.icegram .ig_clear:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}@media only screen and (max-device-width:319px){div.icegram .ig_embed_form.ig_left .ig_embed_form_container{margin-bottom:.7em}}@media only screen and (min-device-width:320px) and (max-device-width:359px){div.icegram .ig_embed_form.ig_left .ig_embed_form_container{margin-bottom:.7em}}@media only screen and (min-device-width:360px) and (max-device-width:413px){div.icegram .ig_embed_form.ig_left .ig_embed_form_container{margin-bottom:.7em}}@media only screen and (min-device-width:414px) and (max-device-width:643px){div.icegram .ig_embed_form.ig_left .ig_embed_form_container{margin-bottom:.7em}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/css/jquery-ui.min.css
CHANGED
@@ -3,5 +3,9 @@
|
|
3 |
* Includes: core.css, draggable.css, resizable.css, selectable.css, sortable.css, accordion.css, autocomplete.css, button.css, datepicker.css, dialog.css, menu.css, progressbar.css, selectmenu.css, slider.css, spinner.css, tabs.css, tooltip.css, theme.css
|
4 |
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana%2CArial%2Csans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=highlight_soft&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=flat&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=glass&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=glass&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=glass&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=glass&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
|
5 |
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
|
6 |
-
|
7 |
-
.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-draggable-handle{-ms-touch-action:none;touch-action:none}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:0.1px;display:block;-ms-touch-action:none;touch-action:none}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-selectable{-ms-touch-action:none;touch-action:none}.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted black}.ui-sortable-handle{-ms-touch-action:none;touch-action:none}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin:2px 0 0 0;padding:.5em .5em .5em .7em;min-height:0;font-size:100%}.ui-accordion .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-icons .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-header .ui-accordion-header-icon{position:absolute;left:.5em;top:50%;margin-top:-8px}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-button{display:inline-block;position:relative;padding:0;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;overflow:visible}.ui-button,.ui-button:link,.ui-button:visited,.ui-button:hover,.ui-button:active{text-decoration:none}.ui-button-icon-only{width:2.2em}button.ui-button-icon-only{width:2.4em}.ui-button-icons-only{width:3.4em}button.ui-button-icons-only{width:3.7em}.ui-button .ui-button-text{display:block;line-height:normal}.ui-button-text-only .ui-button-text{padding:.4em 1em}.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:.4em;text-indent:-9999999px}.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 1em .4em 2.1em}.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 2.1em .4em 1em}.ui-button-text-icons .ui-button-text{padding-left:2.1em;padding-right:2.1em}input.ui-button{padding:.4em 1em}.ui-button-icon-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon,.ui-button-icons-only .ui-icon{position:absolute;top:50%;margin-top:-8px}.ui-button-icon-only .ui-icon{left:50%;margin-left:-8px}.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary,.ui-button-icons-only .ui-button-icon-primary{left:.5em}.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em}.ui-buttonset{margin-right:7px}.ui-buttonset .ui-button{margin-left:0;margin-right:-.3em}input.ui-button::-moz-focus-inner,button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em .6em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-dialog{overflow:hidden;position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:20px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:none;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-se{width:12px;height:12px;right:-5px;bottom:-5px;background-position:16px 16px}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:none}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{position:relative;margin:0;padding:3px 1em 3px .4em;cursor:pointer;min-height:0;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-focus,.ui-menu .ui-state-active{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0}.ui-progressbar{height:2em;text-align:left;overflow:hidden}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}.ui-progressbar .ui-progressbar-overlay{background:url("../images/animated-overlay.gif");height:100%;filter:alpha(opacity=25);opacity:0.25}.ui-progressbar-indeterminate .ui-progressbar-value{background-image:none}.ui-selectmenu-menu{padding:0;margin:0;position:absolute;top:0;left:0;display:none}.ui-selectmenu-menu .ui-menu{overflow:auto;overflow-x:hidden;padding-bottom:1px}.ui-selectmenu-menu .ui-menu .ui-selectmenu-optgroup{font-size:1em;font-weight:bold;line-height:1.5;padding:2px 0.4em;margin:0.5em 0 0 0;height:auto;border:0}.ui-selectmenu-open{display:block}.ui-selectmenu-button{display:inline-block;overflow:hidden;position:relative;text-decoration:none;cursor:pointer}.ui-selectmenu-button span.ui-icon{right:0.5em;left:auto;margin-top:-8px;position:absolute;top:50%}.ui-selectmenu-button span.ui-selectmenu-text{text-align:left;padding:0.4em 2.1em 0.4em 1em;display:block;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default;-ms-touch-action:none;touch-action:none}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-spinner{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle}.ui-spinner-input{border:none;background:none;color:inherit;padding:0;margin:.2em 0;vertical-align:middle;margin-left:.4em;margin-right:22px}.ui-spinner-button{width:16px;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.ui-spinner a.ui-spinner-button{border-top:none;border-bottom:none;border-right:none}.ui-spinner .ui-icon{position:absolute;margin-top:-8px;top:50%;left:0}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-spinner .ui-icon-triangle-1-s{background-position:-65px -16px}.ui-tabs{position:relative;padding:.2em}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav .ui-tabs-anchor{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor{cursor:text}.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:none}.ui-tooltip{padding:8px;position:absolute;z-index:9999;max-width:300px;-webkit-box-shadow:0 0 5px #aaa;box-shadow:0 0 5px #aaa}body .ui-tooltip{border-width:2px}.ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Verdana,Arial,sans-serif;font-size:1em}.ui-widget-content{border:1px solid #aaa;background:#fff url("../images/ui-bg_flat_75_ffffff_40x100.png") 50% 50% repeat-x;color:#222}.ui-widget-content a{color:#222}.ui-widget-header{border:1px solid #aaa;background:#ccc url("../images/ui-bg_highlight-soft_75_cccccc_1x100.png") 50% 50% repeat-x;color:#222;font-weight:bold}.ui-widget-header a{color:#222}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #d3d3d3;background:#e6e6e6 url("../images/ui-bg_glass_75_e6e6e6_1x400.png") 50% 50% repeat-x;font-weight:normal;color:#555}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#555;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #999;background:#dadada url("../images/ui-bg_glass_75_dadada_1x400.png") 50% 50% repeat-x;font-weight:normal;color:#212121}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,.ui-state-focus a,.ui-state-focus a:hover,.ui-state-focus a:link,.ui-state-focus a:visited{color:#212121;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #aaa;background:#fff url("../images/ui-bg_glass_65_ffffff_1x400.png") 50% 50% repeat-x;font-weight:normal;color:#212121}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#212121;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fcefa1;background:#fbf9ee url("../images/ui-bg_glass_55_fbf9ee_1x400.png") 50% 50% repeat-x;color:#363636}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#fef1ec url("../images/ui-bg_glass_95_fef1ec_1x400.png") 50% 50% repeat-x;color:#cd0a0a}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#cd0a0a}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#cd0a0a}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px}.ui-icon,.ui-widget-content .ui-icon{background-image:url("../images/ui-icons_222222_256x240.png")}.ui-widget-header .ui-icon{background-image:url("../images/ui-icons_222222_256x240.png")}.ui-state-default .ui-icon{background-image:url("../images/ui-icons_888888_256x240.png")}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url("../images/ui-icons_454545_256x240.png")}.ui-state-active .ui-icon{background-image:url("../images/ui-icons_454545_256x240.png")}.ui-state-highlight .ui-icon{background-image:url("../images/ui-icons_2e83ff_256x240.png")}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url("../images/ui-icons_cd0a0a_256x240.png")}.ui-icon-blank{background-position:16px 16px}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{border-top-left-radius:4px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{border-top-right-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:4px}.ui-widget-overlay{background:#aaa url("../images/ui-bg_flat_0_aaaaaa_40x100.png") 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30)}.ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa url("../images/ui-bg_flat_0_aaaaaa_40x100.png") 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30);border-radius:8px}
|
|
|
|
|
|
|
|
3 |
* Includes: core.css, draggable.css, resizable.css, selectable.css, sortable.css, accordion.css, autocomplete.css, button.css, datepicker.css, dialog.css, menu.css, progressbar.css, selectmenu.css, slider.css, spinner.css, tabs.css, tooltip.css, theme.css
|
4 |
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana%2CArial%2Csans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=highlight_soft&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=flat&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=glass&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=glass&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=glass&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=glass&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
|
5 |
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
|
6 |
+
/*! jQuery UI - v1.11.0 - 2014-07-18
|
7 |
+
* http://jqueryui.com
|
8 |
+
* Includes: core.css, draggable.css, resizable.css, selectable.css, sortable.css, accordion.css, autocomplete.css, button.css, datepicker.css, dialog.css, menu.css, progressbar.css, selectmenu.css, slider.css, spinner.css, tabs.css, tooltip.css, theme.css
|
9 |
+
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana%2CArial%2Csans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=highlight_soft&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=flat&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=glass&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=glass&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=glass&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=glass&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
|
10 |
+
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
|
11 |
+
.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-draggable-handle{-ms-touch-action:none;touch-action:none}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:0.1px;display:block;-ms-touch-action:none;touch-action:none}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-selectable{-ms-touch-action:none;touch-action:none}.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted black}.ui-sortable-handle{-ms-touch-action:none;touch-action:none}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin:2px 0 0 0;padding:.5em .5em .5em .7em;min-height:0;font-size:100%}.ui-accordion .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-icons .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-header .ui-accordion-header-icon{position:absolute;left:.5em;top:50%;margin-top:-8px}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-button{display:inline-block;position:relative;padding:0;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;overflow:visible}.ui-button,.ui-button:link,.ui-button:visited,.ui-button:hover,.ui-button:active{text-decoration:none}.ui-button-icon-only{width:2.2em}button.ui-button-icon-only{width:2.4em}.ui-button-icons-only{width:3.4em}button.ui-button-icons-only{width:3.7em}.ui-button .ui-button-text{display:block;line-height:normal}.ui-button-text-only .ui-button-text{padding:.4em 1em}.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:.4em;text-indent:-9999999px}.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 1em .4em 2.1em}.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 2.1em .4em 1em}.ui-button-text-icons .ui-button-text{padding-left:2.1em;padding-right:2.1em}input.ui-button{padding:.4em 1em}.ui-button-icon-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon,.ui-button-icons-only .ui-icon{position:absolute;top:50%;margin-top:-8px}.ui-button-icon-only .ui-icon{left:50%;margin-left:-8px}.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary,.ui-button-icons-only .ui-button-icon-primary{left:.5em}.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em}.ui-buttonset{margin-right:7px}.ui-buttonset .ui-button{margin-left:0;margin-right:-.3em}input.ui-button::-moz-focus-inner,button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em .6em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-dialog{overflow:hidden;position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:20px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:none;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-se{width:12px;height:12px;right:-5px;bottom:-5px;background-position:16px 16px}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:none}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{position:relative;margin:0;padding:3px 1em 3px .4em;cursor:pointer;min-height:0;list-style-image:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-focus,.ui-menu .ui-state-active{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0}.ui-progressbar{height:2em;text-align:left;overflow:hidden}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}.ui-progressbar .ui-progressbar-overlay{background:url(../images/animated-overlay.gif);height:100%;filter:alpha(opacity=25);opacity:0.25}.ui-progressbar-indeterminate .ui-progressbar-value{background-image:none}.ui-selectmenu-menu{padding:0;margin:0;position:absolute;top:0;left:0;display:none}.ui-selectmenu-menu .ui-menu{overflow:auto;overflow-x:hidden;padding-bottom:1px}.ui-selectmenu-menu .ui-menu .ui-selectmenu-optgroup{font-size:1em;font-weight:bold;line-height:1.5;padding:2px 0.4em;margin:0.5em 0 0 0;height:auto;border:0}.ui-selectmenu-open{display:block}.ui-selectmenu-button{display:inline-block;overflow:hidden;position:relative;text-decoration:none;cursor:pointer}.ui-selectmenu-button span.ui-icon{right:0.5em;left:auto;margin-top:-8px;position:absolute;top:50%}.ui-selectmenu-button span.ui-selectmenu-text{text-align:left;padding:0.4em 2.1em 0.4em 1em;display:block;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default;-ms-touch-action:none;touch-action:none}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-spinner{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle}.ui-spinner-input{border:none;background:none;color:inherit;padding:0;margin:.2em 0;vertical-align:middle;margin-left:.4em;margin-right:22px}.ui-spinner-button{width:16px;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.ui-spinner a.ui-spinner-button{border-top:none;border-bottom:none;border-right:none}.ui-spinner .ui-icon{position:absolute;margin-top:-8px;top:50%;left:0}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-spinner .ui-icon-triangle-1-s{background-position:-65px -16px}.ui-tabs{position:relative;padding:.2em}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav .ui-tabs-anchor{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor{cursor:text}.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:none}.ui-tooltip{padding:8px;position:absolute;z-index:9999;max-width:300px;-webkit-box-shadow:0 0 5px #aaa;box-shadow:0 0 5px #aaa}body .ui-tooltip{border-width:2px}.ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Verdana,Arial,sans-serif;font-size:1em}.ui-widget-content{border:1px solid #aaa;background:#fff url(../images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x;color:#222}.ui-widget-content a{color:#222}.ui-widget-header{border:1px solid #aaa;background:#ccc url(../images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x;color:#222;font-weight:bold}.ui-widget-header a{color:#222}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #d3d3d3;background:#e6e6e6 url(../images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;font-weight:normal;color:#555}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#555;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #999;background:#dadada url(../images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x;font-weight:normal;color:#212121}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,.ui-state-focus a,.ui-state-focus a:hover,.ui-state-focus a:link,.ui-state-focus a:visited{color:#212121;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #aaa;background:#fff url(../images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;font-weight:normal;color:#212121}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#212121;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fcefa1;background:#fbf9ee url(../images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x;color:#363636}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#fef1ec url(../images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x;color:#cd0a0a}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#cd0a0a}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#cd0a0a}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px}.ui-icon,.ui-widget-content .ui-icon{background-image:url(../images/ui-icons_222222_256x240.png)}.ui-widget-header .ui-icon{background-image:url(../images/ui-icons_222222_256x240.png)}.ui-state-default .ui-icon{background-image:url(../images/ui-icons_888888_256x240.png)}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url(../images/ui-icons_454545_256x240.png)}.ui-state-active .ui-icon{background-image:url(../images/ui-icons_454545_256x240.png)}.ui-state-highlight .ui-icon{background-image:url(../images/ui-icons_2e83ff_256x240.png)}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url(../images/ui-icons_cd0a0a_256x240.png)}.ui-icon-blank{background-position:16px 16px}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{border-top-left-radius:4px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{border-top-right-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:4px}.ui-widget-overlay{background:#aaa url(../images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30)}.ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa url(../images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30);border-radius:8px}
|
assets/css/magnific-popup.css
CHANGED
@@ -1,376 +1 @@
|
|
1 |
-
|
2 |
-
.mfp-bg {
|
3 |
-
top: 0;
|
4 |
-
left: 0;
|
5 |
-
width: 100%;
|
6 |
-
height: 100%;
|
7 |
-
z-index: 1042;
|
8 |
-
overflow: hidden;
|
9 |
-
position: fixed;
|
10 |
-
background: #0b0b0b;
|
11 |
-
opacity: 0.8;
|
12 |
-
filter: alpha(opacity=80); }
|
13 |
-
|
14 |
-
.mfp-wrap {
|
15 |
-
top: 0;
|
16 |
-
left: 0;
|
17 |
-
width: 100%;
|
18 |
-
height: 100%;
|
19 |
-
/*z-index: 1043;*/
|
20 |
-
/*ICG-Hack:: Higher z-index to make it visible on top */
|
21 |
-
z-index: 999999;
|
22 |
-
position: fixed;
|
23 |
-
outline: none !important;
|
24 |
-
-webkit-backface-visibility: hidden; }
|
25 |
-
|
26 |
-
.mfp-container {
|
27 |
-
text-align: center;
|
28 |
-
position: absolute;
|
29 |
-
width: 100%;
|
30 |
-
height: 100%;
|
31 |
-
left: 0;
|
32 |
-
top: 0;
|
33 |
-
padding: 0 8px;
|
34 |
-
-webkit-box-sizing: border-box;
|
35 |
-
-moz-box-sizing: border-box;
|
36 |
-
box-sizing: border-box; }
|
37 |
-
|
38 |
-
.mfp-container:before {
|
39 |
-
content: '';
|
40 |
-
display: inline-block;
|
41 |
-
height: 100%;
|
42 |
-
vertical-align: middle; }
|
43 |
-
|
44 |
-
.mfp-align-top .mfp-container:before {
|
45 |
-
display: none; }
|
46 |
-
|
47 |
-
.mfp-content {
|
48 |
-
position: relative;
|
49 |
-
display: inline-block;
|
50 |
-
vertical-align: middle;
|
51 |
-
margin: 0 auto;
|
52 |
-
text-align: left;
|
53 |
-
z-index: 1045; }
|
54 |
-
|
55 |
-
.mfp-inline-holder .mfp-content, .mfp-ajax-holder .mfp-content {
|
56 |
-
width: 100%;
|
57 |
-
cursor: auto; }
|
58 |
-
|
59 |
-
.mfp-ajax-cur {
|
60 |
-
cursor: progress; }
|
61 |
-
|
62 |
-
.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
|
63 |
-
cursor: -moz-zoom-out;
|
64 |
-
cursor: -webkit-zoom-out;
|
65 |
-
cursor: zoom-out; }
|
66 |
-
|
67 |
-
.mfp-zoom {
|
68 |
-
cursor: pointer;
|
69 |
-
cursor: -webkit-zoom-in;
|
70 |
-
cursor: -moz-zoom-in;
|
71 |
-
cursor: zoom-in; }
|
72 |
-
|
73 |
-
.mfp-auto-cursor .mfp-content {
|
74 |
-
cursor: auto; }
|
75 |
-
|
76 |
-
.mfp-close, .mfp-arrow, .mfp-preloader, .mfp-counter {
|
77 |
-
-webkit-user-select: none;
|
78 |
-
-moz-user-select: none;
|
79 |
-
user-select: none; }
|
80 |
-
|
81 |
-
.mfp-loading.mfp-figure {
|
82 |
-
display: none; }
|
83 |
-
|
84 |
-
.mfp-hide {
|
85 |
-
display: none !important; }
|
86 |
-
|
87 |
-
.mfp-preloader {
|
88 |
-
color: #CCC;
|
89 |
-
position: absolute;
|
90 |
-
top: 50%;
|
91 |
-
width: auto;
|
92 |
-
text-align: center;
|
93 |
-
margin-top: -0.8em;
|
94 |
-
left: 8px;
|
95 |
-
right: 8px;
|
96 |
-
z-index: 1044; }
|
97 |
-
.mfp-preloader a {
|
98 |
-
color: #CCC; }
|
99 |
-
.mfp-preloader a:hover {
|
100 |
-
color: #FFF; }
|
101 |
-
|
102 |
-
.mfp-s-ready .mfp-preloader {
|
103 |
-
display: none; }
|
104 |
-
|
105 |
-
.mfp-s-error .mfp-content {
|
106 |
-
display: none; }
|
107 |
-
|
108 |
-
button.mfp-close, button.mfp-arrow {
|
109 |
-
overflow: visible;
|
110 |
-
cursor: pointer;
|
111 |
-
background: transparent;
|
112 |
-
border: 0;
|
113 |
-
-webkit-appearance: none;
|
114 |
-
display: block;
|
115 |
-
outline: none;
|
116 |
-
padding: 0;
|
117 |
-
z-index: 1046;
|
118 |
-
-webkit-box-shadow: none;
|
119 |
-
box-shadow: none; }
|
120 |
-
button::-moz-focus-inner {
|
121 |
-
padding: 0;
|
122 |
-
border: 0; }
|
123 |
-
|
124 |
-
.mfp-close {
|
125 |
-
width: 44px;
|
126 |
-
height: 44px;
|
127 |
-
line-height: 44px;
|
128 |
-
position: absolute;
|
129 |
-
right: 0;
|
130 |
-
top: 0;
|
131 |
-
text-decoration: none;
|
132 |
-
text-align: center;
|
133 |
-
opacity: 0.65;
|
134 |
-
filter: alpha(opacity=65);
|
135 |
-
padding: 0 0 18px 10px;
|
136 |
-
color: #FFF;
|
137 |
-
font-style: normal;
|
138 |
-
font-size: 28px;
|
139 |
-
font-family: Arial, Baskerville, monospace; }
|
140 |
-
.mfp-close:hover, .mfp-close:focus {
|
141 |
-
opacity: 1;
|
142 |
-
filter: alpha(opacity=100); }
|
143 |
-
.mfp-close:active {
|
144 |
-
top: 1px; }
|
145 |
-
|
146 |
-
.mfp-close-btn-in .mfp-close {
|
147 |
-
color: #333; }
|
148 |
-
|
149 |
-
.mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close {
|
150 |
-
color: #FFF;
|
151 |
-
right: -6px;
|
152 |
-
text-align: right;
|
153 |
-
padding-right: 6px;
|
154 |
-
width: 100%; }
|
155 |
-
|
156 |
-
.mfp-counter {
|
157 |
-
position: absolute;
|
158 |
-
top: 0;
|
159 |
-
right: 0;
|
160 |
-
color: #CCC;
|
161 |
-
font-size: 12px;
|
162 |
-
line-height: 18px;
|
163 |
-
white-space: nowrap; }
|
164 |
-
|
165 |
-
.mfp-arrow {
|
166 |
-
position: absolute;
|
167 |
-
opacity: 0.65;
|
168 |
-
filter: alpha(opacity=65);
|
169 |
-
margin: 0;
|
170 |
-
top: 50%;
|
171 |
-
margin-top: -55px;
|
172 |
-
padding: 0;
|
173 |
-
width: 90px;
|
174 |
-
height: 110px;
|
175 |
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
|
176 |
-
.mfp-arrow:active {
|
177 |
-
margin-top: -54px; }
|
178 |
-
.mfp-arrow:hover, .mfp-arrow:focus {
|
179 |
-
opacity: 1;
|
180 |
-
filter: alpha(opacity=100); }
|
181 |
-
.mfp-arrow:before, .mfp-arrow:after, .mfp-arrow .mfp-b, .mfp-arrow .mfp-a {
|
182 |
-
content: '';
|
183 |
-
display: block;
|
184 |
-
width: 0;
|
185 |
-
height: 0;
|
186 |
-
position: absolute;
|
187 |
-
left: 0;
|
188 |
-
top: 0;
|
189 |
-
margin-top: 35px;
|
190 |
-
margin-left: 35px;
|
191 |
-
border: medium inset transparent; }
|
192 |
-
.mfp-arrow:after, .mfp-arrow .mfp-a {
|
193 |
-
border-top-width: 13px;
|
194 |
-
border-bottom-width: 13px;
|
195 |
-
top: 8px; }
|
196 |
-
.mfp-arrow:before, .mfp-arrow .mfp-b {
|
197 |
-
border-top-width: 21px;
|
198 |
-
border-bottom-width: 21px;
|
199 |
-
opacity: 0.7; }
|
200 |
-
|
201 |
-
.mfp-arrow-left {
|
202 |
-
left: 0; }
|
203 |
-
.mfp-arrow-left:after, .mfp-arrow-left .mfp-a {
|
204 |
-
border-right: 17px solid #FFF;
|
205 |
-
margin-left: 31px; }
|
206 |
-
.mfp-arrow-left:before, .mfp-arrow-left .mfp-b {
|
207 |
-
margin-left: 25px;
|
208 |
-
border-right: 27px solid #3F3F3F; }
|
209 |
-
|
210 |
-
.mfp-arrow-right {
|
211 |
-
right: 0; }
|
212 |
-
.mfp-arrow-right:after, .mfp-arrow-right .mfp-a {
|
213 |
-
border-left: 17px solid #FFF;
|
214 |
-
margin-left: 39px; }
|
215 |
-
.mfp-arrow-right:before, .mfp-arrow-right .mfp-b {
|
216 |
-
border-left: 27px solid #3F3F3F; }
|
217 |
-
|
218 |
-
.mfp-iframe-holder {
|
219 |
-
padding-top: 40px;
|
220 |
-
padding-bottom: 40px; }
|
221 |
-
.mfp-iframe-holder .mfp-content {
|
222 |
-
line-height: 0;
|
223 |
-
width: 100%;
|
224 |
-
max-width: 900px; }
|
225 |
-
.mfp-iframe-holder .mfp-close {
|
226 |
-
top: -40px; }
|
227 |
-
|
228 |
-
.mfp-iframe-scaler {
|
229 |
-
width: 100%;
|
230 |
-
height: 0;
|
231 |
-
overflow: hidden;
|
232 |
-
padding-top: 56.25%; }
|
233 |
-
.mfp-iframe-scaler iframe {
|
234 |
-
position: absolute;
|
235 |
-
display: block;
|
236 |
-
top: 0;
|
237 |
-
left: 0;
|
238 |
-
width: 100%;
|
239 |
-
height: 100%;
|
240 |
-
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
|
241 |
-
background: #000; }
|
242 |
-
|
243 |
-
/* Main image in popup */
|
244 |
-
img.mfp-img {
|
245 |
-
width: auto;
|
246 |
-
max-width: 100%;
|
247 |
-
height: auto;
|
248 |
-
display: block;
|
249 |
-
line-height: 0;
|
250 |
-
-webkit-box-sizing: border-box;
|
251 |
-
-moz-box-sizing: border-box;
|
252 |
-
box-sizing: border-box;
|
253 |
-
padding: 40px 0 40px;
|
254 |
-
margin: 0 auto; }
|
255 |
-
|
256 |
-
/* The shadow behind the image */
|
257 |
-
.mfp-figure {
|
258 |
-
line-height: 0; }
|
259 |
-
.mfp-figure:after {
|
260 |
-
content: '';
|
261 |
-
position: absolute;
|
262 |
-
left: 0;
|
263 |
-
top: 40px;
|
264 |
-
bottom: 40px;
|
265 |
-
display: block;
|
266 |
-
right: 0;
|
267 |
-
width: auto;
|
268 |
-
height: auto;
|
269 |
-
z-index: -1;
|
270 |
-
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
|
271 |
-
background: #444; }
|
272 |
-
.mfp-figure small {
|
273 |
-
color: #BDBDBD;
|
274 |
-
display: block;
|
275 |
-
font-size: 12px;
|
276 |
-
line-height: 14px; }
|
277 |
-
.mfp-figure figure {
|
278 |
-
margin: 0; }
|
279 |
-
|
280 |
-
.mfp-bottom-bar {
|
281 |
-
margin-top: -36px;
|
282 |
-
position: absolute;
|
283 |
-
top: 100%;
|
284 |
-
left: 0;
|
285 |
-
width: 100%;
|
286 |
-
cursor: auto; }
|
287 |
-
|
288 |
-
.mfp-title {
|
289 |
-
text-align: left;
|
290 |
-
line-height: 18px;
|
291 |
-
color: #F3F3F3;
|
292 |
-
word-wrap: break-word;
|
293 |
-
padding-right: 36px; }
|
294 |
-
|
295 |
-
.mfp-image-holder .mfp-content {
|
296 |
-
max-width: 100%; }
|
297 |
-
|
298 |
-
.mfp-gallery .mfp-image-holder .mfp-figure {
|
299 |
-
cursor: pointer; }
|
300 |
-
|
301 |
-
@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
|
302 |
-
/**
|
303 |
-
* Remove all paddings around the image on small screen
|
304 |
-
*/
|
305 |
-
.mfp-img-mobile .mfp-image-holder {
|
306 |
-
padding-left: 0;
|
307 |
-
padding-right: 0; }
|
308 |
-
.mfp-img-mobile img.mfp-img {
|
309 |
-
padding: 0; }
|
310 |
-
.mfp-img-mobile .mfp-figure:after {
|
311 |
-
top: 0;
|
312 |
-
bottom: 0; }
|
313 |
-
.mfp-img-mobile .mfp-figure small {
|
314 |
-
display: inline;
|
315 |
-
margin-left: 5px; }
|
316 |
-
.mfp-img-mobile .mfp-bottom-bar {
|
317 |
-
background: rgba(0, 0, 0, 0.6);
|
318 |
-
bottom: 0;
|
319 |
-
margin: 0;
|
320 |
-
top: auto;
|
321 |
-
padding: 3px 5px;
|
322 |
-
position: fixed;
|
323 |
-
-webkit-box-sizing: border-box;
|
324 |
-
-moz-box-sizing: border-box;
|
325 |
-
box-sizing: border-box; }
|
326 |
-
.mfp-img-mobile .mfp-bottom-bar:empty {
|
327 |
-
padding: 0; }
|
328 |
-
.mfp-img-mobile .mfp-counter {
|
329 |
-
right: 5px;
|
330 |
-
top: 3px; }
|
331 |
-
.mfp-img-mobile .mfp-close {
|
332 |
-
top: 0;
|
333 |
-
right: 0;
|
334 |
-
width: 35px;
|
335 |
-
height: 35px;
|
336 |
-
line-height: 35px;
|
337 |
-
background: rgba(0, 0, 0, 0.6);
|
338 |
-
position: fixed;
|
339 |
-
text-align: center;
|
340 |
-
padding: 0; }
|
341 |
-
}
|
342 |
-
|
343 |
-
@media all and (max-width: 900px) {
|
344 |
-
.mfp-arrow {
|
345 |
-
-webkit-transform: scale(0.75);
|
346 |
-
transform: scale(0.75); }
|
347 |
-
|
348 |
-
.mfp-arrow-left {
|
349 |
-
-webkit-transform-origin: 0;
|
350 |
-
transform-origin: 0; }
|
351 |
-
|
352 |
-
.mfp-arrow-right {
|
353 |
-
-webkit-transform-origin: 100%;
|
354 |
-
transform-origin: 100%; }
|
355 |
-
|
356 |
-
.mfp-container {
|
357 |
-
padding-left: 6px;
|
358 |
-
padding-right: 6px; }
|
359 |
-
}
|
360 |
-
|
361 |
-
.mfp-ie7 .mfp-img {
|
362 |
-
padding: 0; }
|
363 |
-
.mfp-ie7 .mfp-bottom-bar {
|
364 |
-
width: 600px;
|
365 |
-
left: 50%;
|
366 |
-
margin-left: -300px;
|
367 |
-
margin-top: 5px;
|
368 |
-
padding-bottom: 5px; }
|
369 |
-
.mfp-ie7 .mfp-container {
|
370 |
-
padding: 0; }
|
371 |
-
.mfp-ie7 .mfp-content {
|
372 |
-
padding-top: 44px; }
|
373 |
-
.mfp-ie7 .mfp-close {
|
374 |
-
top: 0;
|
375 |
-
right: 0;
|
376 |
-
padding-top: 0; }
|
1 |
+
.mfp-bg{top:0;left:0;width:100%;height:100%;z-index:1042;overflow:hidden;position:fixed;background:#0b0b0b;opacity:.8;filter:alpha(opacity=80)}.mfp-wrap{top:0;left:0;width:100%;height:100%;z-index:999999;position:fixed;outline:0!important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;width:100%;height:100%;left:0;top:0;padding:0 8px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mfp-container:before{content:'';display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:1045}.mfp-ajax-holder .mfp-content,.mfp-inline-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:-moz-zoom-out;cursor:-webkit-zoom-out;cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-arrow,.mfp-close,.mfp-counter,.mfp-preloader{-webkit-user-select:none;-moz-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none!important}.mfp-preloader{color:#CCC;position:absolute;top:50%;width:auto;text-align:center;margin-top:-.8em;left:8px;right:8px;z-index:1044}.mfp-preloader a{color:#CCC}.mfp-preloader a:hover{color:#FFF}.mfp-s-error .mfp-content,.mfp-s-ready .mfp-preloader{display:none}button.mfp-arrow,button.mfp-close{overflow:visible;cursor:pointer;background:0 0;border:0;-webkit-appearance:none;display:block;outline:0;padding:0;z-index:1046;-webkit-box-shadow:none;box-shadow:none}button::-moz-focus-inner{padding:0;border:0}.mfp-close{width:44px;height:44px;line-height:44px;position:absolute;right:0;top:0;text-decoration:none;text-align:center;opacity:.65;filter:alpha(opacity=65);padding:0 0 18px 10px;color:#FFF;font-style:normal;font-size:28px;font-family:Arial,Baskerville,monospace}.mfp-close:focus,.mfp-close:hover{opacity:1;filter:alpha(opacity=100)}.mfp-close:active{top:1px}.mfp-close-btn-in .mfp-close{color:#333}.mfp-iframe-holder .mfp-close,.mfp-image-holder .mfp-close{color:#FFF;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#CCC;font-size:12px;line-height:18px;white-space:nowrap}.mfp-arrow{position:absolute;opacity:.65;filter:alpha(opacity=65);margin:-55px 0 0;top:50%;padding:0;width:90px;height:110px;-webkit-tap-highlight-color:transparent}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:focus,.mfp-arrow:hover{opacity:1;filter:alpha(opacity=100)}.mfp-arrow .mfp-a,.mfp-arrow .mfp-b,.mfp-arrow:after,.mfp-arrow:before{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:inset transparent}.mfp-arrow .mfp-a,.mfp-arrow:after{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow .mfp-b,.mfp-arrow:before{border-top-width:21px;border-bottom-width:21px;opacity:.7}.mfp-arrow-left{left:0}.mfp-arrow-left .mfp-a,.mfp-arrow-left:after{border-right:17px solid #FFF;margin-left:31px}.mfp-arrow-left .mfp-b,.mfp-arrow-left:before{margin-left:25px;border-right:27px solid #3F3F3F}.mfp-arrow-right{right:0}.mfp-arrow-right .mfp-a,.mfp-arrow-right:after{border-left:17px solid #FFF;margin-left:39px}.mfp-arrow-right .mfp-b,.mfp-arrow-right:before{border-left:27px solid #3F3F3F}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;box-shadow:0 0 8px rgba(0,0,0,.6);background:#000}img.mfp-img{width:auto;max-width:100%;height:auto;display:block;line-height:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:40px 0;margin:0 auto}.mfp-figure{line-height:0}.mfp-figure:after{content:'';position:absolute;left:0;top:40px;bottom:40px;display:block;right:0;width:auto;height:auto;z-index:-1;box-shadow:0 0 8px rgba(0,0,0,.6);background:#444}.mfp-figure small{color:#BDBDBD;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#F3F3F3;word-wrap:break-word;padding-right:36px}.mfp-image-holder .mfp-content{max-width:100%}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}@media screen and (max-width:800px) and (orientation:landscape),screen and (max-height:300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,.6);position:fixed;text-align:center;padding:0}}@media all and (max-width:900px){.mfp-arrow{-webkit-transform:scale(.75);transform:scale(.75)}.mfp-arrow-left{-webkit-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}.mfp-ie7 .mfp-img{padding:0}.mfp-ie7 .mfp-bottom-bar{width:600px;left:50%;margin-left:-300px;margin-top:5px;padding-bottom:5px}.mfp-ie7 .mfp-container{padding:0}.mfp-ie7 .mfp-content{padding-top:44px}.mfp-ie7 .mfp-close{top:0;right:0;padding-top:0}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/js/admin.js
CHANGED
@@ -1,465 +1,31 @@
|
|
1 |
-
jQuery(function() {
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
jQuery('.target_rules_desc').appendTo( '#campaign_target_rules h3.hndle span' );
|
33 |
-
|
34 |
-
jQuery(document).ready(function() {
|
35 |
-
var original_send_to_editor = window.send_to_editor;
|
36 |
-
|
37 |
-
jQuery('#postdivrich').hide();
|
38 |
-
jQuery('.color-field').wpColorPicker();
|
39 |
-
hide_empty_campaign_message();
|
40 |
-
jQuery('.message_edit:first').trigger('click');
|
41 |
-
|
42 |
-
this_data = jQuery('.message_type option:selected').closest('.message-setting-fields');
|
43 |
-
for (var i = 0; i < this_data.length; i++) {
|
44 |
-
display_message_themes(this_data[i]);
|
45 |
-
};
|
46 |
-
|
47 |
-
jQuery('.inside').on('change', '.message_type', function(e) {
|
48 |
-
var t = jQuery(e.target).parents('.message-setting-fields');
|
49 |
-
display_message_themes(t);
|
50 |
-
});
|
51 |
-
|
52 |
-
jQuery('#campaign_data').on('change', '.message_theme', function(e) {
|
53 |
-
var t = jQuery(e.target).parents('.message-setting-fields');
|
54 |
-
var message_type = jQuery(t).find('.message_type').val();
|
55 |
-
var message_theme = jQuery(t).find('.message_row.'+message_type).find('.message_theme').val();
|
56 |
-
var message_thumb = jQuery(t).find('#message_theme_'+message_type).find('.'+message_theme).attr('style');
|
57 |
-
jQuery(t).find('.message_row.'+message_type).find('.message_theme').next().find('.chosen-single span').attr('style',message_thumb);
|
58 |
-
|
59 |
-
});
|
60 |
-
|
61 |
-
jQuery('#campaign_data').on('click', '.message_image_button', function(event) {
|
62 |
-
var that = this;
|
63 |
-
window.send_to_editor = function(html) {
|
64 |
-
imgurl = jQuery('img', html).attr('src');
|
65 |
-
jQuery(that).parent().find('#upload_image').val(imgurl);
|
66 |
-
tb_remove();
|
67 |
-
window.send_to_editor = original_send_to_editor;
|
68 |
-
};
|
69 |
-
return false;
|
70 |
-
});
|
71 |
-
|
72 |
-
jQuery('#campaign_data').on('click','.message_headline_button', function() {
|
73 |
-
var headline_key = jQuery(this).prev().attr('data-headline');
|
74 |
-
var headline_max = icegram_writepanel_params.available_headlines.length;
|
75 |
-
var new_headline_key = get_random_int( headline_key, 0, headline_max );
|
76 |
-
var new_headline = icegram_writepanel_params.available_headlines[ new_headline_key ];
|
77 |
-
jQuery(this).prev().val( new_headline );
|
78 |
-
});
|
79 |
-
|
80 |
-
jQuery(".tips, .help_tip").tipTip({'attribute' : 'data-tip'});
|
81 |
-
|
82 |
-
jQuery('span.test_class').hover(function(){
|
83 |
-
jQuery(this).next().show();
|
84 |
-
}, function(){
|
85 |
-
jQuery(this).next().hide();
|
86 |
-
});
|
87 |
-
|
88 |
-
// Disable closing message list
|
89 |
-
jQuery('#campaign_data .hndle, #campaign_data .handlediv').unbind('click');
|
90 |
-
jQuery('#campaign_data .handlediv').hide();
|
91 |
-
|
92 |
-
});
|
93 |
-
jQuery('#campaign_data').on('click','.message_delete', function() {
|
94 |
-
jQuery(this).parent().parent().next().remove();
|
95 |
-
jQuery(this).parent().parent().remove();
|
96 |
-
hide_empty_campaign_message();
|
97 |
-
|
98 |
-
});
|
99 |
-
|
100 |
-
jQuery('#campaign_data').on( 'click', '.message_edit' ,function() {
|
101 |
-
jQuery(this).parent().parent().next().toggle();
|
102 |
-
jQuery(this).parent().parent().find('.message-title-text, .message-title-input').toggle();
|
103 |
-
});
|
104 |
-
|
105 |
-
jQuery('#campaign_data').on( 'change', '.message-title-input',function() {
|
106 |
-
jQuery(this).prev().text(jQuery(this).val());
|
107 |
-
});
|
108 |
-
|
109 |
-
jQuery("select.ajax_chosen_select_messages").ajaxChosen({
|
110 |
-
type: 'GET',
|
111 |
-
url: icegram_writepanel_params.ajax_url,
|
112 |
-
dataType: 'json',
|
113 |
-
afterTypeDelay: 100,
|
114 |
-
data: {
|
115 |
-
action: 'icegram_json_search_messages',
|
116 |
-
security: icegram_writepanel_params.search_message_nonce
|
117 |
-
}
|
118 |
-
}, function(data) {
|
119 |
-
var terms = {};
|
120 |
-
jQuery.each(data, function(i, val) {
|
121 |
-
terms[i] = val;
|
122 |
-
});
|
123 |
-
return terms;
|
124 |
-
});
|
125 |
-
|
126 |
-
jQuery(document).on('click', '#embed_form_but', function(event) {
|
127 |
-
jQuery.magnificPopup.open({
|
128 |
-
items: {
|
129 |
-
src: '#popup_container',
|
130 |
-
type: 'inline'
|
131 |
-
},
|
132 |
-
modal : true
|
133 |
-
});
|
134 |
-
|
135 |
-
});
|
136 |
-
|
137 |
-
jQuery(document).on('click', '.cancel_parse_form', function(event) {
|
138 |
-
jQuery.magnificPopup.close({ items: {
|
139 |
-
src: '#popup_container',
|
140 |
-
type: 'inline'
|
141 |
-
}});
|
142 |
-
jQuery(this).closest('form').get(0).reset();
|
143 |
-
return false;
|
144 |
-
});
|
145 |
-
|
146 |
-
jQuery(document).on('click', '.parse_form' ,function(event) {
|
147 |
-
var that = this;
|
148 |
-
var parent_node = jQuery(that).closest('form');
|
149 |
-
var form_layout = jQuery(parent_node).find('.embed_form_layouts input[type=radio]:checked').val();
|
150 |
-
var form_width = jQuery(parent_node).find('#embed_form_width option:selected').val();
|
151 |
-
var form_position = jQuery(parent_node).find('#embed_form_positions option:selected').val();
|
152 |
-
// var form_container = jQuery('<div class="ig_embed_form_container"></div>').addClass(form_layout);
|
153 |
-
var form_container = jQuery('<ul class="ig_embed_form_container"></ul>').addClass('ig_clear');
|
154 |
-
var has_label = (jQuery(parent_node).find('.has_label_check input[type=checkbox]:checked').length > 0) ? true : false;
|
155 |
-
var form_text = jQuery(parent_node).find('textarea#form_data').val().trim();
|
156 |
-
|
157 |
-
var form_tags = jQuery('<div/>')
|
158 |
-
.html(form_text)
|
159 |
-
.find('input, label, select, textarea, button')
|
160 |
-
.not('br'); // Get only these tags from the form
|
161 |
-
|
162 |
-
if(jQuery(parent_node).find('.use_cta_check input[type=checkbox]:checked').length > 0){
|
163 |
-
form_tags = form_tags.not('input[type=submit]');
|
164 |
-
form_tags = form_tags.not('button[type=submit]');
|
165 |
-
}
|
166 |
-
var form_html = '';
|
167 |
-
var form_object = jQuery('<div/>')
|
168 |
-
.html(form_text)
|
169 |
-
.find('form')
|
170 |
-
.removeAttr('class')
|
171 |
-
.addClass('ig_embed_form')
|
172 |
-
.addClass(form_layout)
|
173 |
-
.addClass(form_width)
|
174 |
-
.addClass(form_position)
|
175 |
-
.addClass('ig_clear')
|
176 |
-
.empty();
|
177 |
-
var label_text = null;
|
178 |
-
var el_count = 0;
|
179 |
-
jQuery.each(form_tags, function(i, form_el){
|
180 |
-
var el_obj = jQuery(form_el);
|
181 |
-
var el_group = jQuery('<li class="ig_form_el_group"></li>');
|
182 |
-
el_obj.removeAttr('class').removeAttr('style');
|
183 |
-
// For now : we are hiding fields with tabindex -1 and hidden fields
|
184 |
-
if(el_obj.attr('tabindex') == -1 || el_obj.attr('type') == 'hidden'){
|
185 |
-
el_obj.addClass('ig_detected_bot_fields');
|
186 |
-
el_count--;
|
187 |
-
}
|
188 |
-
if(el_obj.is('label')){
|
189 |
-
label_text = el_obj.not('input, select, textarea, button, span, br').text().replace(/\s+/g, ' ');
|
190 |
-
}else if((el_obj.is('input') || el_obj.is('button') || el_obj.is('textarea')) && !el_obj.is('input[type=radio]') ) {
|
191 |
-
el_obj.removeAttr('id');
|
192 |
-
if(el_obj.is('button')){
|
193 |
-
var button_text = el_obj.not('br, span, div').text().trim() || '';
|
194 |
-
el_obj.remove();
|
195 |
-
el_obj = jQuery('<input type="submit">');
|
196 |
-
if(button_text){
|
197 |
-
el_obj.attr('value',button_text );
|
198 |
-
}
|
199 |
-
}
|
200 |
-
|
201 |
-
if(has_label){
|
202 |
-
el_obj.removeAttr('placeholder');
|
203 |
-
if(label_text){
|
204 |
-
jQuery('<label>' + label_text + '</label>').appendTo(el_group);
|
205 |
-
label_text = null;
|
206 |
-
}
|
207 |
-
}else {
|
208 |
-
if(label_text){
|
209 |
-
el_obj.attr('placeholder', label_text);
|
210 |
-
label_text = null;
|
211 |
-
}
|
212 |
-
}
|
213 |
-
el_group.append(el_obj);
|
214 |
-
if(el_obj.is('textarea')){
|
215 |
-
el_group.append(el_obj).addClass('ig_form_el_textarea');
|
216 |
-
}else{
|
217 |
-
el_group.append(el_obj).addClass('ig_form_el_input');
|
218 |
-
}
|
219 |
-
form_container.append(el_group);
|
220 |
-
el_count++;
|
221 |
-
}else if(el_obj.is('select')) {
|
222 |
-
if(label_text){
|
223 |
-
if(has_label){
|
224 |
-
jQuery('<label>' + label_text + '</label>').appendTo(el_group);
|
225 |
-
}else{
|
226 |
-
jQuery('<option>' + label_text + '</option>').prependTo(el_obj);
|
227 |
-
}
|
228 |
-
label_text = null;
|
229 |
-
}
|
230 |
-
el_group.append(el_obj).addClass('ig_form_el_select');
|
231 |
-
form_container.append(el_group);
|
232 |
-
el_count++;
|
233 |
-
}else if(el_obj.is('input[type=radio]') ) {
|
234 |
-
if(label_text){
|
235 |
-
jQuery('<label>' + label_text + '</label>').prepend(el_obj).appendTo(el_group);
|
236 |
-
label_text = null;
|
237 |
-
}
|
238 |
-
el_group.addClass('ig_form_el_radio');
|
239 |
-
form_container.append(el_group);
|
240 |
-
el_count++;
|
241 |
-
}
|
242 |
-
});
|
243 |
-
if(form_layout == 'ig_horizontal'){
|
244 |
-
var max_el = (form_width == 'ig_full') ? 4 : ((form_width == 'ig_half') ? 2 : 1);
|
245 |
-
el_count = (el_count > max_el ) ? max_el : el_count;
|
246 |
-
var li_width = (100 - el_count) / el_count;
|
247 |
-
form_container
|
248 |
-
.find('input, select, textarea')
|
249 |
-
.not('input[type=submit]')
|
250 |
-
.not('input[type=radio]')
|
251 |
-
.not('input[type=hidden]')
|
252 |
-
.parent()
|
253 |
-
.css('width', li_width + '%' );
|
254 |
-
form_container
|
255 |
-
.find('input[type=radio]')
|
256 |
-
.parent()
|
257 |
-
.parent()
|
258 |
-
.css('width', li_width + '%' );
|
259 |
-
}
|
260 |
-
form_container.find('.ig_detected_bot_fields').parent().css('display', 'none');
|
261 |
-
form_object.append(form_container);
|
262 |
-
|
263 |
-
//closing a popup
|
264 |
-
jQuery.magnificPopup.close({ items: {
|
265 |
-
src: '#popup_container',
|
266 |
-
type: 'inline'
|
267 |
-
}});
|
268 |
-
// reset all fields of Embed form setting
|
269 |
-
jQuery(that).closest('form').get(0).reset();
|
270 |
-
window.send_to_editor(jQuery('<div/>').append(form_object).html());
|
271 |
-
return false;
|
272 |
-
});
|
273 |
-
|
274 |
-
|
275 |
-
//var message_rows = jQuery(this).parent().siblings('.campaign_target_rules_panel').find('.message-row').length;
|
276 |
-
jQuery('.ajax_chosen_select_messages').chosen();
|
277 |
-
jQuery('#campaign_data').on('change', '.ajax_chosen_select_messages' , function() {
|
278 |
-
var selected_tab = jQuery('#ig-tabs li.current').attr('variation_id');
|
279 |
-
var newSettings = jQuery.extend( {}, tinyMCEPreInit.mceInit[ 'content' ] );
|
280 |
-
var newQTS = jQuery.extend( {}, tinyMCEPreInit.qtInit[ 'content' ] );
|
281 |
-
var parent_campaign_box = jQuery(this).parent().siblings('.campaign_target_rules_panel');
|
282 |
-
var message_rows = jQuery(parent_campaign_box).find('.message-row').length;
|
283 |
-
var message_id = jQuery(this).val();
|
284 |
-
if( message_id == '' ) {
|
285 |
-
jQuery(".ajax_chosen_select_messages").val('').trigger("chosen:updated");
|
286 |
-
return;
|
287 |
-
}
|
288 |
-
|
289 |
-
jQuery('.message-edit-row').hide();
|
290 |
-
jQuery('.message-title-text').show();
|
291 |
-
jQuery('.message-title-input').hide();
|
292 |
-
jQuery.ajax({
|
293 |
-
type: 'POST',
|
294 |
-
url: icegram_writepanel_params.ajax_url,
|
295 |
-
dataType: 'json',
|
296 |
-
data: {
|
297 |
-
action: 'get_message_action_row',
|
298 |
-
message_id: message_id,
|
299 |
-
row: message_rows
|
300 |
-
},
|
301 |
-
success: function(response) {
|
302 |
-
|
303 |
-
message_rows++;
|
304 |
-
//jQuery('.messages-list .messages_list_table tbody').append(response.main);
|
305 |
-
jQuery(parent_campaign_box).find('.messages-list .messages_list_table tbody').append(response.main);
|
306 |
-
jQuery('.color-field').wpColorPicker();
|
307 |
-
display_message_themes(jQuery('#'+response.id));
|
308 |
-
jQuery(".ajax_chosen_select_messages").val('').trigger("chosen:updated");
|
309 |
-
jQuery("select.icegram_chosen_page").chosen({
|
310 |
-
disable_search_threshold: 10
|
311 |
-
});
|
312 |
-
hide_empty_campaign_message();
|
313 |
-
jQuery('.message-setting-fields').trigger('change');
|
314 |
-
jQuery(".tips, .help_tip").tipTip({'attribute' : 'data-tip'});
|
315 |
-
// text editor issue fix
|
316 |
-
if ( typeof( tinyMCEPreInit.mceInit[ 'edit'+response.id ] ) === 'undefined' ) {
|
317 |
-
for ( _prop in newSettings ) {
|
318 |
-
if ( 'string' === typeof( newSettings[_prop] ) ) {
|
319 |
-
if(_prop !== 'content_css'){
|
320 |
-
newSettings[_prop] = newSettings[_prop].replace( new RegExp( 'content', 'g' ), 'edit'+response.id );
|
321 |
-
}
|
322 |
-
}
|
323 |
-
}
|
324 |
-
tinyMCEPreInit.mceInit[ 'edit'+response.id ] = newSettings;
|
325 |
-
}
|
326 |
-
if ( typeof( tinyMCEPreInit.qtInit[ 'edit'+response.id ] ) === 'undefined' ) {
|
327 |
-
for ( _prop in newQTS ) {
|
328 |
-
if ( 'string' === typeof( newQTS[_prop] ) ) {
|
329 |
-
if(_prop !== 'content_css'){
|
330 |
-
newQTS[_prop] = newQTS[_prop].replace( new RegExp( 'content', 'g' ), 'edit'+response.id );
|
331 |
-
}
|
332 |
-
}
|
333 |
-
}
|
334 |
-
tinyMCEPreInit.qtInit[ 'edit'+response.id ] = newQTS;
|
335 |
-
}
|
336 |
-
tinyMCE.init({ id : tinyMCEPreInit.mceInit[ 'edit'+response.id ]});
|
337 |
-
quicktags({id : 'edit'+response.id});
|
338 |
-
QTags._buttonsInit();
|
339 |
-
if(jQuery('#wp-edit'+response.id+'-wrap').hasClass('tmce-active')){
|
340 |
-
jQuery('#edit'+response.id+'-tmce').click();
|
341 |
-
}else{
|
342 |
-
jQuery('#edit'+response.id+'-html').click();
|
343 |
-
}
|
344 |
-
if(typeof(selected_tab) !== 'undefined'){
|
345 |
-
jQuery( window ).trigger( "icegram_tab_selected" ,[selected_tab]);
|
346 |
-
}
|
347 |
-
}
|
348 |
-
});
|
349 |
-
});
|
350 |
-
//add local url
|
351 |
-
jQuery('#campaign_target_rules').on('click', '#add_local_url_row' ,function(e) {
|
352 |
-
e.preventDefault();
|
353 |
-
var row = add_url_row();
|
354 |
-
if(jQuery('.local_url').find('.url_input_field').length){
|
355 |
-
jQuery(row).insertAfter(jQuery('.local_url').find('.url_input_field').last().parent('span'));
|
356 |
-
}else{
|
357 |
-
jQuery(row).insertBefore(jQuery('.local_url').find('#add_local_url_row_label'));
|
358 |
-
|
359 |
-
}
|
360 |
-
|
361 |
-
});
|
362 |
-
jQuery('#campaign_target_rules').on('click', '.delete-url',function(e) {
|
363 |
-
jQuery(this).parent().remove();
|
364 |
-
});
|
365 |
-
|
366 |
-
function add_url_row(){
|
367 |
-
var row = '<span><label class="options_header"><span id="valid-field"> </span></label> <input type="text" class="url_input_field" data-option="local_url" name="campaign_target_rules[local_urls][]" value="'+home_url+'*"/><span class="delete-url"></span></span>';
|
368 |
-
return row;
|
369 |
-
}
|
370 |
-
function hide_empty_campaign_message() {
|
371 |
-
if( jQuery('.message-row').length == 0 ) {
|
372 |
-
jQuery('.empty_campaign').show();
|
373 |
-
} else {
|
374 |
-
jQuery('.empty_campaign').hide();
|
375 |
-
}
|
376 |
-
}
|
377 |
-
|
378 |
-
jQuery('select.ajax_chosen_select_messages').next('div').on('click', 'div.chosen-drop' ,function() {
|
379 |
-
jQuery(this).closest('h3.hndle').trigger('click');
|
380 |
-
});
|
381 |
-
|
382 |
-
jQuery('#campaign_data').on( 'click','.campaign_preview' ,function(event) {
|
383 |
-
jQuery(this).closest('h3.hndle').trigger('click');
|
384 |
-
|
385 |
-
if( jQuery('.message-row').length == 0 )
|
386 |
-
return;
|
387 |
-
// trigger event for saving visual content
|
388 |
-
tinyMCE.triggerSave();
|
389 |
-
// Change action
|
390 |
-
params = jQuery("#post").serializeArray();
|
391 |
-
params.push( {name: 'action', value: 'save_campaign_preview' });
|
392 |
-
|
393 |
-
jQuery.ajax({
|
394 |
-
type: 'POST',
|
395 |
-
async: false,
|
396 |
-
url: icegram_writepanel_params.ajax_url,
|
397 |
-
data: params,
|
398 |
-
success: function(response) {
|
399 |
-
if (response != '') {
|
400 |
-
window.open(response, 'preview_window');
|
401 |
-
}
|
402 |
-
}
|
403 |
-
});
|
404 |
-
|
405 |
-
});
|
406 |
-
|
407 |
-
jQuery("select.icegram_chosen_page").chosen({
|
408 |
-
disable_search_threshold: 10
|
409 |
-
});
|
410 |
-
|
411 |
-
jQuery('input#users_logged_in, input#users_all ,input#users_not_logged_in').on('change', function() {
|
412 |
-
if (jQuery(this).val() == 'logged_in') {
|
413 |
-
jQuery('select#users_roles').parent('p').show();
|
414 |
-
jQuery('#users_roles_chosen').find('input').trigger('click');
|
415 |
-
}else{
|
416 |
-
jQuery('select#users_roles').parent('p').hide();
|
417 |
-
}
|
418 |
-
});
|
419 |
-
|
420 |
-
jQuery('.schedule_rule').on('change', function() {
|
421 |
-
if (jQuery(this).attr('id') == "when_schedule") {
|
422 |
-
jQuery('#date_picker').show();
|
423 |
-
} else {
|
424 |
-
jQuery('#date_picker').hide();
|
425 |
-
}
|
426 |
-
});
|
427 |
-
|
428 |
-
jQuery('input#where_other_page').on('change', function() {
|
429 |
-
jQuery('select#where_page_id').parent('p').slideToggle();
|
430 |
-
if (jQuery(this).is(':checked')) {
|
431 |
-
jQuery('#where_page_id_chosen').find('input').trigger('click');
|
432 |
-
}
|
433 |
-
});
|
434 |
-
jQuery('input#where_sitewide').on('change', function() {
|
435 |
-
jQuery('select#exclude_page_id').parent('p').slideToggle();
|
436 |
-
if (jQuery(this).is(':checked')) {
|
437 |
-
jQuery('#exclude_page_id_chosen').find('input').trigger('click');
|
438 |
-
}
|
439 |
-
});
|
440 |
-
jQuery('input#where_local_url').on('change', function() {
|
441 |
-
jQuery('.local_url').slideToggle();
|
442 |
-
});
|
443 |
-
|
444 |
-
jQuery('.date-picker').datepicker({
|
445 |
-
dateFormat: 'yy-mm-dd',
|
446 |
-
defaultDate: 0,
|
447 |
-
showOtherMonths: true,
|
448 |
-
selectOtherMonths: true,
|
449 |
-
changeMonth: true,
|
450 |
-
changeYear: true,
|
451 |
-
showButtonPanel: true
|
452 |
-
});
|
453 |
-
|
454 |
-
jQuery('#campaign_target_rules').on('focusout','input.url_input_field',function() {
|
455 |
-
var url = this;
|
456 |
-
jQuery(url).parent().find('span#valid-field').removeClass('error');
|
457 |
-
if(jQuery(url).data("option") !== 'undefine' && jQuery(url).data("option") == 'local_url' && jQuery(url).val() != '*'){
|
458 |
-
var url_val = url.value;
|
459 |
-
if(url_val.indexOf(home_url) < 0){
|
460 |
-
jQuery(url).val(home_url + url_val);
|
461 |
-
return;
|
462 |
-
}
|
463 |
-
}
|
464 |
-
});
|
465 |
-
});
|
1 |
+
jQuery(function(){function e(e){var t=jQuery(e).find(".message_type option:selected").val(),a=jQuery(e).find(".message_row."+t).find(".message_theme").val(),i=jQuery(e).find("#message_theme_"+t).find("."+a).attr("style")
|
2 |
+
jQuery(e).find("#embed_form_but").hide(),jQuery(e).find(".message_row, .location").hide(),jQuery(e).find("."+t).show(),jQuery(e).find(".message_row."+t).find(".message_theme").next().find(".chosen-single span").attr("style",i),"block"!==jQuery(e).find(".message_body").parent().css("display")?jQuery(e).find(".message_body").parent().next(".wp-editor-wrap").hide():jQuery(e).find(".message_body").parent().next(".wp-editor-wrap").show()}function t(e,a,i){var n=Math.floor(Math.random()*(i-a+1))+a
|
3 |
+
return n==e?t(n,a,i):n}function a(){var e='<span><label class="options_header"><span id="valid-field"> </span></label> <input type="text" class="url_input_field" data-option="local_url" name="campaign_target_rules[local_urls][]" value="'+r+'*"/><span class="delete-url"></span></span>'
|
4 |
+
return e}function i(){0==jQuery(".message-row").length?jQuery(".empty_campaign").show():jQuery(".empty_campaign").hide()}var n=window.location.href,r=n.slice(0,n.indexOf("wp-admin"))
|
5 |
+
jQuery("#campaign_data").find("h3.hndle").hide(),jQuery(".target_rules_desc").appendTo("#campaign_target_rules h3.hndle span"),jQuery(document).ready(function(){var a=window.send_to_editor
|
6 |
+
jQuery("#postdivrich").hide(),jQuery(".color-field").wpColorPicker().each(function(e){var t=jQuery(this).data("color-label")||""
|
7 |
+
""!==t&&jQuery(this).closest(".wp-picker-container").find("a.wp-color-result").attr("title",t)}),jQuery("#campaign_data").on("change",".show_color_options",function(){jQuery(this).closest("p").next(".message_colors_options_container").toggle(!this.checked)}).change(),i(),jQuery(".message_edit:first").trigger("click"),this_data=jQuery(".message_type option:selected").closest(".message-setting-fields")
|
8 |
+
for(var n=0;n<this_data.length;n++)e(this_data[n])
|
9 |
+
jQuery(".inside").on("change",".message_type",function(t){var a=jQuery(t.target).parents(".message-setting-fields")
|
10 |
+
e(a)}),jQuery("#campaign_data").on("change",".message_theme",function(e){var t=jQuery(e.target).parents(".message-setting-fields"),a=jQuery(t).find(".message_type").val(),i=jQuery(t).find(".message_row."+a).find(".message_theme").val(),n=jQuery(t).find("#message_theme_"+a).find("."+i).attr("style")
|
11 |
+
jQuery(t).find(".message_row."+a).find(".message_theme").next().find(".chosen-single span").attr("style",n)}),jQuery("#campaign_data").on("click",".message_image_button",function(e){var t=this
|
12 |
+
return window.send_to_editor=function(e){imgurl=jQuery("img",e).attr("src"),jQuery(t).parent().find("#upload_image").val(imgurl),tb_remove(),window.send_to_editor=a},!1}),jQuery("#campaign_data ,#message-settings").on("click",".message_headline_button",function(){var e=jQuery(this).prev().attr("data-headline"),a=icegram_writepanel_params.available_headlines.length,i=t(e,0,a),n=icegram_writepanel_params.available_headlines[i]
|
13 |
+
jQuery(this).prev().val(n)}),jQuery(".tips, .help_tip").tipTip({attribute:"data-tip"}),jQuery("span.test_class").hover(function(){jQuery(this).next().show()},function(){jQuery(this).next().hide()}),jQuery("#campaign_data .hndle, #campaign_data .handlediv").unbind("click"),jQuery("#campaign_data .handlediv").hide()}),jQuery("#campaign_data").on("click",".message_delete",function(){jQuery(this).parent().parent().next().remove(),jQuery(this).parent().parent().remove(),i()}),jQuery("#campaign_data").on("click",".message_edit",function(){jQuery(this).parent().parent().next().toggle(),jQuery(this).parent().parent().find(".message-title-text, .message-title-input").toggle()}),jQuery("#campaign_data").on("change",".message-title-input",function(){jQuery(this).prev().text(jQuery(this).val())}),jQuery("select.ajax_chosen_select_messages").ajaxChosen({type:"GET",url:icegram_writepanel_params.ajax_url,dataType:"json",afterTypeDelay:100,data:{action:"icegram_json_search_messages",security:icegram_writepanel_params.search_message_nonce}},function(e){var t={}
|
14 |
+
return jQuery.each(e,function(e,a){t[e]=a}),t}),jQuery(document).on("click","#embed_form_but",function(e){jQuery.magnificPopup.open({items:{src:"#popup_container",type:"inline"},modal:!0})}),jQuery(document).on("click",".cancel_parse_form",function(e){return jQuery.magnificPopup.close({items:{src:"#popup_container",type:"inline"}}),jQuery(this).closest("form").get(0).reset(),!1}),jQuery(document).on("click",".parse_form",function(e){var t=this,a=jQuery(t).closest("form"),i=jQuery(a).find(".embed_form_layouts input[type=radio]:checked").val(),n=jQuery(a).find("#embed_form_width option:selected").val(),r=jQuery(a).find("#embed_form_positions option:selected").val(),s=jQuery('<ul class="ig_embed_form_container"></ul>').addClass("ig_clear"),o=jQuery(a).find(".has_label_check input[type=checkbox]:checked").length>0?!0:!1,l=jQuery(a).find("textarea#form_data").val().trim(),u=jQuery("<div/>").html(l).find("input, label, select, textarea, button").not("br")
|
15 |
+
jQuery(a).find(".use_cta_check input[type=checkbox]:checked").length>0&&(u=u.not("input[type=submit]"),u=u.not("button[type=submit]"))
|
16 |
+
var c=jQuery("<div/>").html(l).find("form").removeAttr("class").addClass("ig_embed_form").addClass(i).addClass(n).addClass(r).addClass("ig_clear").empty(),d=null,p=0
|
17 |
+
if(jQuery.each(u,function(e,t){var a=jQuery(t),i=jQuery('<li class="ig_form_el_group"></li>')
|
18 |
+
if(a.removeAttr("class").removeAttr("style"),(-1==a.attr("tabindex")||"hidden"==a.attr("type"))&&(a.addClass("ig_detected_bot_fields"),p--),a.is("label"))d=a.not("input, select, textarea, button, span, br").text().replace(/\s+/g," ")
|
19 |
+
else if((a.is("input")||a.is("button")||a.is("textarea"))&&!a.is("input[type=radio]")){if(a.removeAttr("id"),a.is("button")){var n=a.not("br, span, div").text().trim()||""
|
20 |
+
a.remove(),a=jQuery('<input type="submit">'),n&&a.attr("value",n)}o?(a.removeAttr("placeholder"),d&&(jQuery("<label>"+d+"</label>").appendTo(i),d=null)):d&&(a.attr("placeholder",d),d=null),i.append(a),i.append(a).addClass(a.is("textarea")?"ig_form_el_textarea":"ig_form_el_input"),s.append(i),p++}else a.is("select")?(d&&(o?jQuery("<label>"+d+"</label>").appendTo(i):jQuery("<option>"+d+"</option>").prependTo(a),d=null),i.append(a).addClass("ig_form_el_select"),s.append(i),p++):a.is("input[type=radio]")&&(d&&(jQuery("<label>"+d+"</label>").prepend(a).appendTo(i),d=null),i.addClass("ig_form_el_radio"),s.append(i),p++)}),"ig_horizontal"==i){var _="ig_full"==n?4:"ig_half"==n?2:1
|
21 |
+
p=p>_?_:p
|
22 |
+
var y=(100-p)/p
|
23 |
+
s.find("input, select, textarea").not("input[type=submit]").not("input[type=radio]").not("input[type=hidden]").parent().css("width",y+"%"),s.find("input[type=radio]").parent().parent().css("width",y+"%")}return s.find(".ig_detected_bot_fields").parent().css("display","none"),c.append(s),jQuery.magnificPopup.close({items:{src:"#popup_container",type:"inline"}}),jQuery(t).closest("form").get(0).reset(),window.send_to_editor(jQuery("<div/>").append(c).html()),!1}),jQuery(".ajax_chosen_select_messages").chosen(),jQuery("#campaign_data").on("change",".ajax_chosen_select_messages",function(){var t=jQuery("#ig-tabs li.current").attr("variation_id"),a=jQuery.extend({},tinyMCEPreInit.mceInit.content),n=jQuery.extend({},tinyMCEPreInit.qtInit.content),r=jQuery(this).parent().siblings(".campaign_target_rules_panel"),s=jQuery(r).find(".message-row").length,o=jQuery(this).val()
|
24 |
+
return""==o?void jQuery(".ajax_chosen_select_messages").val("").trigger("chosen:updated"):(jQuery(".message-edit-row").hide(),jQuery(".message-title-text").show(),jQuery(".message-title-input").hide(),void jQuery.ajax({type:"POST",url:icegram_writepanel_params.ajax_url,dataType:"json",data:{action:"get_message_action_row",message_id:o,row:s},success:function(o){if(s++,jQuery(r).find(".messages-list .messages_list_table tbody").append(o.main),jQuery(".color-field").wpColorPicker().each(function(e){var t=jQuery(this).data("color-label")||""
|
25 |
+
""!==t&&jQuery(this).closest(".wp-picker-container").find("a.wp-color-result").attr("title",t)}),jQuery("#campaign_data").on("change",".show_color_options",function(){jQuery(this).closest("p").next(".message_colors_options_container").toggle(!this.checked)}).change(),e(jQuery("#"+o.id)),jQuery(".ajax_chosen_select_messages").val("").trigger("chosen:updated"),jQuery("select.icegram_chosen_page").chosen({disable_search_threshold:10}),i(),jQuery(".message-setting-fields").trigger("change"),jQuery(".tips, .help_tip").tipTip({attribute:"data-tip"}),"undefined"==typeof tinyMCEPreInit.mceInit["edit"+o.id]){for(_prop in a)"string"==typeof a[_prop]&&"content_css"!==_prop&&(a[_prop]=a[_prop].replace(new RegExp("content","g"),"edit"+o.id))
|
26 |
+
tinyMCEPreInit.mceInit["edit"+o.id]=a}if("undefined"==typeof tinyMCEPreInit.qtInit["edit"+o.id]){for(_prop in n)"string"==typeof n[_prop]&&"content_css"!==_prop&&(n[_prop]=n[_prop].replace(new RegExp("content","g"),"edit"+o.id))
|
27 |
+
tinyMCEPreInit.qtInit["edit"+o.id]=n}tinyMCE.init({id:tinyMCEPreInit.mceInit["edit"+o.id]}),quicktags({id:"edit"+o.id}),QTags._buttonsInit(),jQuery("#wp-edit"+o.id+"-wrap").hasClass("tmce-active")?jQuery("#edit"+o.id+"-tmce").click():jQuery("#edit"+o.id+"-html").click(),"undefined"!=typeof t&&jQuery(window).trigger("icegram_tab_selected",[t])}}))}),jQuery("#campaign_target_rules").on("click","#add_local_url_row",function(e){e.preventDefault()
|
28 |
+
var t=a()
|
29 |
+
jQuery(".local_url").find(".url_input_field").length?jQuery(t).insertAfter(jQuery(".local_url").find(".url_input_field").last().parent("span")):jQuery(t).insertBefore(jQuery(".local_url").find("#add_local_url_row_label"))}),jQuery("#campaign_target_rules").on("click",".delete-url",function(e){jQuery(this).parent().remove()}),jQuery("select.ajax_chosen_select_messages").next("div").on("click","div.chosen-drop",function(){jQuery(this).closest("h3.hndle").trigger("click")}),jQuery("#campaign_data").on("click",".campaign_preview",function(e){jQuery(this).closest("h3.hndle").trigger("click"),0!=jQuery(".message-row").length&&(tinyMCE.triggerSave(),params=jQuery("#post").serializeArray(),params.push({name:"action",value:"save_campaign_preview"}),jQuery.ajax({type:"POST",async:!1,url:icegram_writepanel_params.ajax_url,data:params,success:function(e){""!=e&&window.open(e,"preview_window")}}))}),jQuery("select.icegram_chosen_page").chosen({disable_search_threshold:10}),jQuery("input#users_logged_in, input#users_all ,input#users_not_logged_in").on("change",function(){"logged_in"==jQuery(this).val()?(jQuery("select#users_roles").parent("p").show(),jQuery("#users_roles_chosen").find("input").trigger("click")):jQuery("select#users_roles").parent("p").hide()}),jQuery(".schedule_rule").on("change",function(){"when_schedule"==jQuery(this).attr("id")?jQuery("#date_picker").show():jQuery("#date_picker").hide()}),jQuery("input#where_other_page").on("change",function(){jQuery("select#where_page_id").parent("p").slideToggle(),jQuery(this).is(":checked")&&jQuery("#where_page_id_chosen").find("input").trigger("click")}),jQuery("input#where_sitewide").on("change",function(){jQuery("select#exclude_page_id").parent("p").slideToggle(),jQuery(this).is(":checked")&&jQuery("#exclude_page_id_chosen").find("input").trigger("click")}),jQuery("input#where_local_url").on("change",function(){jQuery(".local_url").slideToggle()}),jQuery(".date-picker").datepicker({dateFormat:"yy-mm-dd",defaultDate:0,showOtherMonths:!0,selectOtherMonths:!0,changeMonth:!0,changeYear:!0,showButtonPanel:!0}),jQuery("#campaign_target_rules").on("focusout","input.url_input_field",function(){var e=this
|
30 |
+
if(jQuery(e).parent().find("span#valid-field").removeClass("error"),"undefine"!==jQuery(e).data("option")&&"local_url"==jQuery(e).data("option")&&"*"!=jQuery(e).val()){var t=e.value
|
31 |
+
if(t.indexOf(r)<0)return void jQuery(e).val(r+t)}})})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/js/ajax-chosen.jquery.min.js
CHANGED
@@ -1,2 +1,5 @@
|
|
1 |
// Generated by CoffeeScript 1.3.1
|
2 |
-
|
|
|
|
|
|
1 |
// Generated by CoffeeScript 1.3.1
|
2 |
+
!function(t){return t.fn.ajaxChosen=function(e,n){var a,i,r,s
|
3 |
+
return null==e&&(e={}),null==n&&(n=function(){}),i={minTermLength:3,afterTypeDelay:500,jsonTermKey:"term"},s=this,a=null,r=t.extend({},i,e),this.chosen(),this.each(function(){return t(this).next(".chosen-container").find(".search-field > input, .chosen-search > input").bind("keyup",function(){var e,i,u,h
|
4 |
+
return h=t.trim(t(this).attr("value")),i=h.length<r.minTermLength?"Keep typing...":"Looking for '"+h+"'",s.next(".chosen-container").find(".no-results").text(i),h===t(this).data("prevVal")?!1:(t(this).data("prevVal",h),this.timer&&clearTimeout(this.timer),h.length<r.minTermLength?!1:(e=t(this),null==r.data&&(r.data={}),r.data[r.jsonTermKey]=h,null!=r.dataCallback&&(r.data=r.dataCallback(r.data)),u=r.success,r.success=function(a){var i,r
|
5 |
+
if(null!=a)return r=[],s.find("option").each(function(){return t(this).is(":selected")?r.push(t(this).val()+"-"+t(this).text()):t(this).remove()}),i=n(a),t.each(i,function(e,n){return-1===t.inArray(e+"-"+n,r)?t("<option />").attr("value",e).html(n).appendTo(s):void 0}),s.trigger("chosen:updated"),null!=u&&u(a),e.attr("value",h),e.css("width","auto")},this.timer=setTimeout(function(){return a&&a.abort(),a=t.ajax(r)},r.afterTypeDelay)))})})}}(jQuery)
|
assets/js/chosen.jquery.min.js
CHANGED
@@ -1,2 +1,65 @@
|
|
1 |
/* Chosen v1.1.0 | (c) 2011-2013 by Harvest | MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md */
|
2 |
-
!function(){var a,AbstractChosen,Chosen,SelectParser,b,c={}.hasOwnProperty,d=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a[e]=b[e]);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a};SelectParser=function(){function SelectParser(){this.options_index=0,this.parsed=[]}return SelectParser.prototype.add_node=function(a){return"OPTGROUP"===a.nodeName.toUpperCase()?this.add_group(a):this.add_option(a)},SelectParser.prototype.add_group=function(a){var b,c,d,e,f,g;for(b=this.parsed.length,this.parsed.push({array_index:b,group:!0,label:this.escapeExpression(a.label),children:0,disabled:a.disabled}),f=a.childNodes,g=[],d=0,e=f.length;e>d;d++)c=f[d],g.push(this.add_option(c,b,a.disabled));return g},SelectParser.prototype.add_option=function(a,b,c){return"OPTION"===a.nodeName.toUpperCase()?(""!==a.text?(null!=b&&(this.parsed[b].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:a.value,text:a.text,html:a.innerHTML,selected:a.selected,disabled:c===!0?c:a.disabled,group_array_index:b,classes:a.className,style:a.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1):void 0},SelectParser.prototype.escapeExpression=function(a){var b,c;return null==a||a===!1?"":/[\&\<\>\"\'\`]/.test(a)?(b={"<":"<",">":">",'"':""","'":"'","`":"`"},c=/&(?!\w+;)|[\<\>\"\'\`]/g,a.replace(c,function(a){return b[a]||"&"})):a},SelectParser}(),SelectParser.select_to_array=function(a){var b,c,d,e,f;for(c=new SelectParser,f=a.childNodes,d=0,e=f.length;e>d;d++)b=f[d],c.add_node(b);return c.parsed},AbstractChosen=function(){function AbstractChosen(a,b){this.form_field=a,this.options=null!=b?b:{},AbstractChosen.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers())}return AbstractChosen.prototype.set_default_values=function(){var a=this;return this.click_test_action=function(b){return a.test_active_click(b)},this.activate_action=function(b){return a.activate_field(b)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null!=this.options.enable_split_word_search?this.options.enable_split_word_search:!0,this.group_search=null!=this.options.group_search?this.options.group_search:!0,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null!=this.options.single_backstroke_delete?this.options.single_backstroke_delete:!0,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null!=this.options.display_selected_options?this.options.display_selected_options:!0,this.display_disabled_options=null!=this.options.display_disabled_options?this.options.display_disabled_options:!0},AbstractChosen.prototype.set_default_text=function(){return this.default_text=this.form_field.getAttribute("data-placeholder")?this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.options.placeholder_text_multiple||this.options.placeholder_text||AbstractChosen.default_multiple_text:this.options.placeholder_text_single||this.options.placeholder_text||AbstractChosen.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||AbstractChosen.default_no_result_text},AbstractChosen.prototype.mouse_enter=function(){return this.mouse_on_container=!0},AbstractChosen.prototype.mouse_leave=function(){return this.mouse_on_container=!1},AbstractChosen.prototype.input_focus=function(){var a=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return a.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},AbstractChosen.prototype.input_blur=function(){var a=this;return this.mouse_on_container?void 0:(this.active_field=!1,setTimeout(function(){return a.blur_test()},100))},AbstractChosen.prototype.results_option_build=function(a){var b,c,d,e,f;for(b="",f=this.results_data,d=0,e=f.length;e>d;d++)c=f[d],b+=c.group?this.result_add_group(c):this.result_add_option(c),(null!=a?a.first:void 0)&&(c.selected&&this.is_multiple?this.choice_build(c):c.selected&&!this.is_multiple&&this.single_set_selected_text(c.text));return b},AbstractChosen.prototype.result_add_option=function(a){var b,c;return a.search_match?this.include_option_in_results(a)?(b=[],a.disabled||a.selected&&this.is_multiple||b.push("active-result"),!a.disabled||a.selected&&this.is_multiple||b.push("disabled-result"),a.selected&&b.push("result-selected"),null!=a.group_array_index&&b.push("group-option"),""!==a.classes&&b.push(a.classes),c=document.createElement("li"),c.className=b.join(" "),c.style.cssText=a.style,c.setAttribute("data-option-array-index",a.array_index),c.innerHTML=a.search_text,this.outerHTML(c)):"":""},AbstractChosen.prototype.result_add_group=function(a){var b;return a.search_match||a.group_match?a.active_options>0?(b=document.createElement("li"),b.className="group-result",b.innerHTML=a.search_text,this.outerHTML(b)):"":""},AbstractChosen.prototype.results_update_field=function(){return this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing?this.winnow_results():void 0},AbstractChosen.prototype.reset_single_select_options=function(){var a,b,c,d,e;for(d=this.results_data,e=[],b=0,c=d.length;c>b;b++)a=d[b],a.selected?e.push(a.selected=!1):e.push(void 0);return e},AbstractChosen.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},AbstractChosen.prototype.results_search=function(){return this.results_showing?this.winnow_results():this.results_show()},AbstractChosen.prototype.winnow_results=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m;for(this.no_results_clear(),e=0,g=this.get_search_text(),a=g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),d=this.search_contains?"":"^",c=new RegExp(d+a,"i"),j=new RegExp(a,"i"),m=this.results_data,k=0,l=m.length;l>k;k++)b=m[k],b.search_match=!1,f=null,this.include_option_in_results(b)&&(b.group&&(b.group_match=!1,b.active_options=0),null!=b.group_array_index&&this.results_data[b.group_array_index]&&(f=this.results_data[b.group_array_index],0===f.active_options&&f.search_match&&(e+=1),f.active_options+=1),(!b.group||this.group_search)&&(b.search_text=b.group?b.label:b.html,b.search_match=this.search_string_match(b.search_text,c),b.search_match&&!b.group&&(e+=1),b.search_match?(g.length&&(h=b.search_text.search(j),i=b.search_text.substr(0,h+g.length)+"</em>"+b.search_text.substr(h+g.length),b.search_text=i.substr(0,h)+"<em>"+i.substr(h)),null!=f&&(f.group_match=!0)):null!=b.group_array_index&&this.results_data[b.group_array_index].search_match&&(b.search_match=!0)));return this.result_clear_highlight(),1>e&&g.length?(this.update_results_content(""),this.no_results(g)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},AbstractChosen.prototype.search_string_match=function(a,b){var c,d,e,f;if(b.test(a))return!0;if(this.enable_split_word_search&&(a.indexOf(" ")>=0||0===a.indexOf("["))&&(d=a.replace(/\[|\]/g,"").split(" "),d.length))for(e=0,f=d.length;f>e;e++)if(c=d[e],b.test(c))return!0},AbstractChosen.prototype.choices_count=function(){var a,b,c,d;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,d=this.form_field.options,b=0,c=d.length;c>b;b++)a=d[b],a.selected&&(this.selected_option_count+=1);return this.selected_option_count},AbstractChosen.prototype.choices_click=function(a){return a.preventDefault(),this.results_showing||this.is_disabled?void 0:this.results_show()},AbstractChosen.prototype.keyup_checker=function(a){var b,c;switch(b=null!=(c=a.which)?c:a.keyCode,this.search_field_scale(),b){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(a.preventDefault(),this.results_showing)return this.result_select(a);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},AbstractChosen.prototype.clipboard_event_checker=function(){var a=this;return setTimeout(function(){return a.results_search()},50)},AbstractChosen.prototype.container_width=function(){return null!=this.options.width?this.options.width:""+this.form_field.offsetWidth+"px"},AbstractChosen.prototype.include_option_in_results=function(a){return this.is_multiple&&!this.display_selected_options&&a.selected?!1:!this.display_disabled_options&&a.disabled?!1:a.empty?!1:!0},AbstractChosen.prototype.search_results_touchstart=function(a){return this.touch_started=!0,this.search_results_mouseover(a)},AbstractChosen.prototype.search_results_touchmove=function(a){return this.touch_started=!1,this.search_results_mouseout(a)},AbstractChosen.prototype.search_results_touchend=function(a){return this.touch_started?this.search_results_mouseup(a):void 0},AbstractChosen.prototype.outerHTML=function(a){var b;return a.outerHTML?a.outerHTML:(b=document.createElement("div"),b.appendChild(a),b.innerHTML)},AbstractChosen.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:/iP(od|hone)/i.test(window.navigator.userAgent)?!1:/Android/i.test(window.navigator.userAgent)&&/Mobile/i.test(window.navigator.userAgent)?!1:!0},AbstractChosen.default_multiple_text="Select Some Options",AbstractChosen.default_single_text="Select an Option",AbstractChosen.default_no_result_text="No results match",AbstractChosen}(),a=jQuery,a.fn.extend({chosen:function(b){return AbstractChosen.browser_is_supported()?this.each(function(){var c,d;c=a(this),d=c.data("chosen"),"destroy"===b&&d?d.destroy():d||c.data("chosen",new Chosen(this,b))}):this}}),Chosen=function(c){function Chosen(){return b=Chosen.__super__.constructor.apply(this,arguments)}return d(Chosen,c),Chosen.prototype.setup=function(){return this.form_field_jq=a(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},Chosen.prototype.set_up_html=function(){var b,c;return b=["chosen-container"],b.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&b.push(this.form_field.className),this.is_rtl&&b.push("chosen-rtl"),c={"class":b.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(c.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=a("<div />",c),this.is_multiple?this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>'):this.container.html('<a class="chosen-single chosen-default" tabindex="-1"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior(),this.form_field_jq.trigger("chosen:ready",{chosen:this})},Chosen.prototype.register_observers=function(){var a=this;return this.container.bind("mousedown.chosen",function(b){a.container_mousedown(b)}),this.container.bind("mouseup.chosen",function(b){a.container_mouseup(b)}),this.container.bind("mouseenter.chosen",function(b){a.mouse_enter(b)}),this.container.bind("mouseleave.chosen",function(b){a.mouse_leave(b)}),this.search_results.bind("mouseup.chosen",function(b){a.search_results_mouseup(b)}),this.search_results.bind("mouseover.chosen",function(b){a.search_results_mouseover(b)}),this.search_results.bind("mouseout.chosen",function(b){a.search_results_mouseout(b)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(b){a.search_results_mousewheel(b)}),this.search_results.bind("touchstart.chosen",function(b){a.search_results_touchstart(b)}),this.search_results.bind("touchmove.chosen",function(b){a.search_results_touchmove(b)}),this.search_results.bind("touchend.chosen",function(b){a.search_results_touchend(b)}),this.form_field_jq.bind("chosen:updated.chosen",function(b){a.results_update_field(b)}),this.form_field_jq.bind("chosen:activate.chosen",function(b){a.activate_field(b)}),this.form_field_jq.bind("chosen:open.chosen",function(b){a.container_mousedown(b)}),this.form_field_jq.bind("chosen:close.chosen",function(b){a.input_blur(b)}),this.search_field.bind("blur.chosen",function(b){a.input_blur(b)}),this.search_field.bind("keyup.chosen",function(b){a.keyup_checker(b)}),this.search_field.bind("keydown.chosen",function(b){a.keydown_checker(b)}),this.search_field.bind("focus.chosen",function(b){a.input_focus(b)}),this.search_field.bind("cut.chosen",function(b){a.clipboard_event_checker(b)}),this.search_field.bind("paste.chosen",function(b){a.clipboard_event_checker(b)}),this.is_multiple?this.search_choices.bind("click.chosen",function(b){a.choices_click(b)}):this.container.bind("click.chosen",function(a){a.preventDefault()})},Chosen.prototype.destroy=function(){return a(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},Chosen.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},Chosen.prototype.container_mousedown=function(b){return this.is_disabled||(b&&"mousedown"===b.type&&!this.results_showing&&b.preventDefault(),null!=b&&a(b.target).hasClass("search-choice-close"))?void 0:(this.active_field?this.is_multiple||!b||a(b.target)[0]!==this.selected_item[0]&&!a(b.target).parents("a.chosen-single").length||(b.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),a(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},Chosen.prototype.container_mouseup=function(a){return"ABBR"!==a.target.nodeName||this.is_disabled?void 0:this.results_reset(a)},Chosen.prototype.search_results_mousewheel=function(a){var b;return a.originalEvent&&(b=-a.originalEvent.wheelDelta||a.originalEvent.detail),null!=b?(a.preventDefault(),"DOMMouseScroll"===a.type&&(b=40*b),this.search_results.scrollTop(b+this.search_results.scrollTop())):void 0},Chosen.prototype.blur_test=function(){return!this.active_field&&this.container.hasClass("chosen-container-active")?this.close_field():void 0},Chosen.prototype.close_field=function(){return a(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},Chosen.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},Chosen.prototype.test_active_click=function(b){var c;return c=a(b.target).closest(".chosen-container"),c.length&&this.container[0]===c[0]?this.active_field=!0:this.close_field()},Chosen.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=SelectParser.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},Chosen.prototype.result_do_highlight=function(a){var b,c,d,e,f;if(a.length){if(this.result_clear_highlight(),this.result_highlight=a,this.result_highlight.addClass("highlighted"),d=parseInt(this.search_results.css("maxHeight"),10),f=this.search_results.scrollTop(),e=d+f,c=this.result_highlight.position().top+this.search_results.scrollTop(),b=c+this.result_highlight.outerHeight(),b>=e)return this.search_results.scrollTop(b-d>0?b-d:0);if(f>c)return this.search_results.scrollTop(c)}},Chosen.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},Chosen.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},Chosen.prototype.update_results_content=function(a){return this.search_results.html(a)},Chosen.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},Chosen.prototype.set_tab_index=function(){var a;return this.form_field.tabIndex?(a=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=a):void 0},Chosen.prototype.set_label_behavior=function(){var b=this;return this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=a("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0?this.form_field_label.bind("click.chosen",function(a){return b.is_multiple?b.container_mousedown(a):b.activate_field()}):void 0},Chosen.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},Chosen.prototype.search_results_mouseup=function(b){var c;return c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first(),c.length?(this.result_highlight=c,this.result_select(b),this.search_field.focus()):void 0},Chosen.prototype.search_results_mouseover=function(b){var c;return c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first(),c?this.result_do_highlight(c):void 0},Chosen.prototype.search_results_mouseout=function(b){return a(b.target).hasClass("active-result")?this.result_clear_highlight():void 0},Chosen.prototype.choice_build=function(b){var c,d,e=this;return c=a("<li />",{"class":"search-choice"}).html("<span>"+b.html+"</span>"),b.disabled?c.addClass("search-choice-disabled"):(d=a("<a />",{"class":"search-choice-close","data-option-array-index":b.array_index}),d.bind("click.chosen",function(a){return e.choice_destroy_link_click(a)}),c.append(d)),this.search_container.before(c)},Chosen.prototype.choice_destroy_link_click=function(b){return b.preventDefault(),b.stopPropagation(),this.is_disabled?void 0:this.choice_destroy(a(b.target))},Chosen.prototype.choice_destroy=function(a){return this.result_deselect(a[0].getAttribute("data-option-array-index"))?(this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),a.parents("li").first().remove(),this.search_field_scale()):void 0},Chosen.prototype.results_reset=function(){return this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field?this.results_hide():void 0},Chosen.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},Chosen.prototype.result_select=function(a){var b,c;return this.result_highlight?(b=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?b.removeClass("active-result"):this.reset_single_select_options(),c=this.results_data[b[0].getAttribute("data-option-array-index")],c.selected=!0,this.form_field.options[c.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(c):this.single_set_selected_text(c.text),(a.metaKey||a.ctrlKey)&&this.is_multiple||this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[c.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,this.search_field_scale())):void 0},Chosen.prototype.single_set_selected_text=function(a){return null==a&&(a=this.default_text),a===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").text(a)},Chosen.prototype.result_deselect=function(a){var b;return b=this.results_data[a],this.form_field.options[b.options_index].disabled?!1:(b.selected=!1,this.form_field.options[b.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[b.options_index].value}),this.search_field_scale(),!0)},Chosen.prototype.single_deselect_control_build=function(){return this.allow_single_deselect?(this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")):void 0},Chosen.prototype.get_search_text=function(){return this.search_field.val()===this.default_text?"":a("<div/>").text(a.trim(this.search_field.val())).html()},Chosen.prototype.winnow_results_set_highlight=function(){var a,b;return b=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),a=b.length?b.first():this.search_results.find(".active-result").first(),null!=a?this.result_do_highlight(a):void 0},Chosen.prototype.no_results=function(b){var c;return c=a('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'),c.find("span").first().html(b),this.search_results.append(c),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},Chosen.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},Chosen.prototype.keydown_arrow=function(){var a;return this.results_showing&&this.result_highlight?(a=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(a):void 0:this.results_show()},Chosen.prototype.keyup_arrow=function(){var a;return this.results_showing||this.is_multiple?this.result_highlight?(a=this.result_highlight.prevAll("li.active-result"),a.length?this.result_do_highlight(a.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())):void 0:this.results_show()},Chosen.prototype.keydown_backstroke=function(){var a;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(a=this.search_container.siblings("li.search-choice").last(),a.length&&!a.hasClass("search-choice-disabled")?(this.pending_backstroke=a,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0)},Chosen.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},Chosen.prototype.keydown_checker=function(a){var b,c;switch(b=null!=(c=a.which)?c:a.keyCode,this.search_field_scale(),8!==b&&this.pending_backstroke&&this.clear_backstroke(),b){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(a),this.mouse_on_container=!1;break;case 13:a.preventDefault();break;case 38:a.preventDefault(),this.keyup_arrow();break;case 40:a.preventDefault(),this.keydown_arrow()}},Chosen.prototype.search_field_scale=function(){var b,c,d,e,f,g,h,i,j;if(this.is_multiple){for(d=0,h=0,f="position:absolute; left: -1000px; top: -1000px; display:none;",g=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"],i=0,j=g.length;j>i;i++)e=g[i],f+=e+":"+this.search_field.css(e)+";";return b=a("<div />",{style:f}),b.text(this.search_field.val()),a("body").append(b),h=b.width()+25,b.remove(),c=this.container.outerWidth(),h>c-10&&(h=c-10),this.search_field.css({width:h+"px"})}},Chosen}(AbstractChosen)}.call(this);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
/* Chosen v1.1.0 | (c) 2011-2013 by Harvest | MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md */
|
2 |
+
!function(){var t,e,s,i,r,o={}.hasOwnProperty,n=function(t,e){function s(){this.constructor=t}for(var i in e)o.call(e,i)&&(t[i]=e[i])
|
3 |
+
return s.prototype=e.prototype,t.prototype=new s,t.__super__=e.prototype,t}
|
4 |
+
i=function(){function t(){this.options_index=0,this.parsed=[]}return t.prototype.add_node=function(t){return"OPTGROUP"===t.nodeName.toUpperCase()?this.add_group(t):this.add_option(t)},t.prototype.add_group=function(t){var e,s,i,r,o,n
|
5 |
+
for(e=this.parsed.length,this.parsed.push({array_index:e,group:!0,label:this.escapeExpression(t.label),children:0,disabled:t.disabled}),o=t.childNodes,n=[],i=0,r=o.length;r>i;i++)s=o[i],n.push(this.add_option(s,e,t.disabled))
|
6 |
+
return n},t.prototype.add_option=function(t,e,s){return"OPTION"===t.nodeName.toUpperCase()?(""!==t.text?(null!=e&&(this.parsed[e].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:t.value,text:t.text,html:t.innerHTML,selected:t.selected,disabled:s===!0?s:t.disabled,group_array_index:e,classes:t.className,style:t.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1):void 0},t.prototype.escapeExpression=function(t){var e,s
|
7 |
+
return null==t||t===!1?"":/[\&\<\>\"\'\`]/.test(t)?(e={"<":"<",">":">",'"':""","'":"'","`":"`"},s=/&(?!\w+;)|[\<\>\"\'\`]/g,t.replace(s,function(t){return e[t]||"&"})):t},t}(),i.select_to_array=function(t){var e,s,r,o,n
|
8 |
+
for(s=new i,n=t.childNodes,r=0,o=n.length;o>r;r++)e=n[r],s.add_node(e)
|
9 |
+
return s.parsed},e=function(){function t(e,s){this.form_field=e,this.options=null!=s?s:{},t.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers())}return t.prototype.set_default_values=function(){var t=this
|
10 |
+
return this.click_test_action=function(e){return t.test_active_click(e)},this.activate_action=function(e){return t.activate_field(e)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null!=this.options.enable_split_word_search?this.options.enable_split_word_search:!0,this.group_search=null!=this.options.group_search?this.options.group_search:!0,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null!=this.options.single_backstroke_delete?this.options.single_backstroke_delete:!0,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null!=this.options.display_selected_options?this.options.display_selected_options:!0,this.display_disabled_options=null!=this.options.display_disabled_options?this.options.display_disabled_options:!0},t.prototype.set_default_text=function(){return this.default_text=this.form_field.getAttribute("data-placeholder")?this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.options.placeholder_text_multiple||this.options.placeholder_text||t.default_multiple_text:this.options.placeholder_text_single||this.options.placeholder_text||t.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||t.default_no_result_text},t.prototype.mouse_enter=function(){return this.mouse_on_container=!0},t.prototype.mouse_leave=function(){return this.mouse_on_container=!1},t.prototype.input_focus=function(){var t=this
|
11 |
+
if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return t.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},t.prototype.input_blur=function(){var t=this
|
12 |
+
return this.mouse_on_container?void 0:(this.active_field=!1,setTimeout(function(){return t.blur_test()},100))},t.prototype.results_option_build=function(t){var e,s,i,r,o
|
13 |
+
for(e="",o=this.results_data,i=0,r=o.length;r>i;i++)s=o[i],e+=s.group?this.result_add_group(s):this.result_add_option(s),(null!=t?t.first:void 0)&&(s.selected&&this.is_multiple?this.choice_build(s):s.selected&&!this.is_multiple&&this.single_set_selected_text(s.text))
|
14 |
+
return e},t.prototype.result_add_option=function(t){var e,s
|
15 |
+
return t.search_match&&this.include_option_in_results(t)?(e=[],t.disabled||t.selected&&this.is_multiple||e.push("active-result"),!t.disabled||t.selected&&this.is_multiple||e.push("disabled-result"),t.selected&&e.push("result-selected"),null!=t.group_array_index&&e.push("group-option"),""!==t.classes&&e.push(t.classes),s=document.createElement("li"),s.className=e.join(" "),s.style.cssText=t.style,s.setAttribute("data-option-array-index",t.array_index),s.innerHTML=t.search_text,this.outerHTML(s)):""},t.prototype.result_add_group=function(t){var e
|
16 |
+
return(t.search_match||t.group_match)&&t.active_options>0?(e=document.createElement("li"),e.className="group-result",e.innerHTML=t.search_text,this.outerHTML(e)):""},t.prototype.results_update_field=function(){return this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing?this.winnow_results():void 0},t.prototype.reset_single_select_options=function(){var t,e,s,i,r
|
17 |
+
for(i=this.results_data,r=[],e=0,s=i.length;s>e;e++)t=i[e],r.push(t.selected?t.selected=!1:void 0)
|
18 |
+
return r},t.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},t.prototype.results_search=function(){return this.results_showing?this.winnow_results():this.results_show()},t.prototype.winnow_results=function(){var t,e,s,i,r,o,n,h,l,c,a,_,u
|
19 |
+
for(this.no_results_clear(),r=0,n=this.get_search_text(),t=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),i=this.search_contains?"":"^",s=new RegExp(i+t,"i"),c=new RegExp(t,"i"),u=this.results_data,a=0,_=u.length;_>a;a++)e=u[a],e.search_match=!1,o=null,this.include_option_in_results(e)&&(e.group&&(e.group_match=!1,e.active_options=0),null!=e.group_array_index&&this.results_data[e.group_array_index]&&(o=this.results_data[e.group_array_index],0===o.active_options&&o.search_match&&(r+=1),o.active_options+=1),(!e.group||this.group_search)&&(e.search_text=e.group?e.label:e.html,e.search_match=this.search_string_match(e.search_text,s),e.search_match&&!e.group&&(r+=1),e.search_match?(n.length&&(h=e.search_text.search(c),l=e.search_text.substr(0,h+n.length)+"</em>"+e.search_text.substr(h+n.length),e.search_text=l.substr(0,h)+"<em>"+l.substr(h)),null!=o&&(o.group_match=!0)):null!=e.group_array_index&&this.results_data[e.group_array_index].search_match&&(e.search_match=!0)))
|
20 |
+
return this.result_clear_highlight(),1>r&&n.length?(this.update_results_content(""),this.no_results(n)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},t.prototype.search_string_match=function(t,e){var s,i,r,o
|
21 |
+
if(e.test(t))return!0
|
22 |
+
if(this.enable_split_word_search&&(t.indexOf(" ")>=0||0===t.indexOf("["))&&(i=t.replace(/\[|\]/g,"").split(" "),i.length))for(r=0,o=i.length;o>r;r++)if(s=i[r],e.test(s))return!0},t.prototype.choices_count=function(){var t,e,s,i
|
23 |
+
if(null!=this.selected_option_count)return this.selected_option_count
|
24 |
+
for(this.selected_option_count=0,i=this.form_field.options,e=0,s=i.length;s>e;e++)t=i[e],t.selected&&(this.selected_option_count+=1)
|
25 |
+
return this.selected_option_count},t.prototype.choices_click=function(t){return t.preventDefault(),this.results_showing||this.is_disabled?void 0:this.results_show()},t.prototype.keyup_checker=function(t){var e,s
|
26 |
+
switch(e=null!=(s=t.which)?s:t.keyCode,this.search_field_scale(),e){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke()
|
27 |
+
if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search()
|
28 |
+
break
|
29 |
+
case 13:if(t.preventDefault(),this.results_showing)return this.result_select(t)
|
30 |
+
break
|
31 |
+
case 27:return this.results_showing&&this.results_hide(),!0
|
32 |
+
case 9:case 38:case 40:case 16:case 91:case 17:break
|
33 |
+
default:return this.results_search()}},t.prototype.clipboard_event_checker=function(){var t=this
|
34 |
+
return setTimeout(function(){return t.results_search()},50)},t.prototype.container_width=function(){return null!=this.options.width?this.options.width:""+this.form_field.offsetWidth+"px"},t.prototype.include_option_in_results=function(t){return this.is_multiple&&!this.display_selected_options&&t.selected?!1:!this.display_disabled_options&&t.disabled?!1:t.empty?!1:!0},t.prototype.search_results_touchstart=function(t){return this.touch_started=!0,this.search_results_mouseover(t)},t.prototype.search_results_touchmove=function(t){return this.touch_started=!1,this.search_results_mouseout(t)},t.prototype.search_results_touchend=function(t){return this.touch_started?this.search_results_mouseup(t):void 0},t.prototype.outerHTML=function(t){var e
|
35 |
+
return t.outerHTML?t.outerHTML:(e=document.createElement("div"),e.appendChild(t),e.innerHTML)},t.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:/iP(od|hone)/i.test(window.navigator.userAgent)?!1:/Android/i.test(window.navigator.userAgent)&&/Mobile/i.test(window.navigator.userAgent)?!1:!0},t.default_multiple_text="Select Some Options",t.default_single_text="Select an Option",t.default_no_result_text="No results match",t}(),t=jQuery,t.fn.extend({chosen:function(i){return e.browser_is_supported()?this.each(function(){var e,r
|
36 |
+
e=t(this),r=e.data("chosen"),"destroy"===i&&r?r.destroy():r||e.data("chosen",new s(this,i))}):this}}),s=function(e){function s(){return r=s.__super__.constructor.apply(this,arguments)}return n(s,e),s.prototype.setup=function(){return this.form_field_jq=t(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},s.prototype.set_up_html=function(){var e,s
|
37 |
+
return e=["chosen-container"],e.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&e.push(this.form_field.className),this.is_rtl&&e.push("chosen-rtl"),s={"class":e.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(s.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=t("<div />",s),this.container.html(this.is_multiple?'<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>':'<a class="chosen-single chosen-default" tabindex="-1"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior(),this.form_field_jq.trigger("chosen:ready",{chosen:this})},s.prototype.register_observers=function(){var t=this
|
38 |
+
return this.container.bind("mousedown.chosen",function(e){t.container_mousedown(e)}),this.container.bind("mouseup.chosen",function(e){t.container_mouseup(e)}),this.container.bind("mouseenter.chosen",function(e){t.mouse_enter(e)}),this.container.bind("mouseleave.chosen",function(e){t.mouse_leave(e)}),this.search_results.bind("mouseup.chosen",function(e){t.search_results_mouseup(e)}),this.search_results.bind("mouseover.chosen",function(e){t.search_results_mouseover(e)}),this.search_results.bind("mouseout.chosen",function(e){t.search_results_mouseout(e)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(e){t.search_results_mousewheel(e)}),this.search_results.bind("touchstart.chosen",function(e){t.search_results_touchstart(e)}),this.search_results.bind("touchmove.chosen",function(e){t.search_results_touchmove(e)}),this.search_results.bind("touchend.chosen",function(e){t.search_results_touchend(e)}),this.form_field_jq.bind("chosen:updated.chosen",function(e){t.results_update_field(e)}),this.form_field_jq.bind("chosen:activate.chosen",function(e){t.activate_field(e)}),this.form_field_jq.bind("chosen:open.chosen",function(e){t.container_mousedown(e)}),this.form_field_jq.bind("chosen:close.chosen",function(e){t.input_blur(e)}),this.search_field.bind("blur.chosen",function(e){t.input_blur(e)}),this.search_field.bind("keyup.chosen",function(e){t.keyup_checker(e)}),this.search_field.bind("keydown.chosen",function(e){t.keydown_checker(e)}),this.search_field.bind("focus.chosen",function(e){t.input_focus(e)}),this.search_field.bind("cut.chosen",function(e){t.clipboard_event_checker(e)}),this.search_field.bind("paste.chosen",function(e){t.clipboard_event_checker(e)}),this.is_multiple?this.search_choices.bind("click.chosen",function(e){t.choices_click(e)}):this.container.bind("click.chosen",function(t){t.preventDefault()})},s.prototype.destroy=function(){return t(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},s.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},s.prototype.container_mousedown=function(e){return this.is_disabled||(e&&"mousedown"===e.type&&!this.results_showing&&e.preventDefault(),null!=e&&t(e.target).hasClass("search-choice-close"))?void 0:(this.active_field?this.is_multiple||!e||t(e.target)[0]!==this.selected_item[0]&&!t(e.target).parents("a.chosen-single").length||(e.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),t(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},s.prototype.container_mouseup=function(t){return"ABBR"!==t.target.nodeName||this.is_disabled?void 0:this.results_reset(t)},s.prototype.search_results_mousewheel=function(t){var e
|
39 |
+
return t.originalEvent&&(e=-t.originalEvent.wheelDelta||t.originalEvent.detail),null!=e?(t.preventDefault(),"DOMMouseScroll"===t.type&&(e=40*e),this.search_results.scrollTop(e+this.search_results.scrollTop())):void 0},s.prototype.blur_test=function(){return!this.active_field&&this.container.hasClass("chosen-container-active")?this.close_field():void 0},s.prototype.close_field=function(){return t(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},s.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},s.prototype.test_active_click=function(e){var s
|
40 |
+
return s=t(e.target).closest(".chosen-container"),s.length&&this.container[0]===s[0]?this.active_field=!0:this.close_field()},s.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=i.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},s.prototype.result_do_highlight=function(t){var e,s,i,r,o
|
41 |
+
if(t.length){if(this.result_clear_highlight(),this.result_highlight=t,this.result_highlight.addClass("highlighted"),i=parseInt(this.search_results.css("maxHeight"),10),o=this.search_results.scrollTop(),r=i+o,s=this.result_highlight.position().top+this.search_results.scrollTop(),e=s+this.result_highlight.outerHeight(),e>=r)return this.search_results.scrollTop(e-i>0?e-i:0)
|
42 |
+
if(o>s)return this.search_results.scrollTop(s)}},s.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},s.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},s.prototype.update_results_content=function(t){return this.search_results.html(t)},s.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},s.prototype.set_tab_index=function(){var t
|
43 |
+
return this.form_field.tabIndex?(t=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=t):void 0},s.prototype.set_label_behavior=function(){var e=this
|
44 |
+
return this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=t("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0?this.form_field_label.bind("click.chosen",function(t){return e.is_multiple?e.container_mousedown(t):e.activate_field()}):void 0},s.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},s.prototype.search_results_mouseup=function(e){var s
|
45 |
+
return s=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first(),s.length?(this.result_highlight=s,this.result_select(e),this.search_field.focus()):void 0},s.prototype.search_results_mouseover=function(e){var s
|
46 |
+
return s=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first(),s?this.result_do_highlight(s):void 0},s.prototype.search_results_mouseout=function(e){return t(e.target).hasClass("active-result")?this.result_clear_highlight():void 0},s.prototype.choice_build=function(e){var s,i,r=this
|
47 |
+
return s=t("<li />",{"class":"search-choice"}).html("<span>"+e.html+"</span>"),e.disabled?s.addClass("search-choice-disabled"):(i=t("<a />",{"class":"search-choice-close","data-option-array-index":e.array_index}),i.bind("click.chosen",function(t){return r.choice_destroy_link_click(t)}),s.append(i)),this.search_container.before(s)},s.prototype.choice_destroy_link_click=function(e){return e.preventDefault(),e.stopPropagation(),this.is_disabled?void 0:this.choice_destroy(t(e.target))},s.prototype.choice_destroy=function(t){return this.result_deselect(t[0].getAttribute("data-option-array-index"))?(this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),t.parents("li").first().remove(),this.search_field_scale()):void 0},s.prototype.results_reset=function(){return this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field?this.results_hide():void 0},s.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},s.prototype.result_select=function(t){var e,s
|
48 |
+
return this.result_highlight?(e=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?e.removeClass("active-result"):this.reset_single_select_options(),s=this.results_data[e[0].getAttribute("data-option-array-index")],s.selected=!0,this.form_field.options[s.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(s):this.single_set_selected_text(s.text),(t.metaKey||t.ctrlKey)&&this.is_multiple||this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[s.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,this.search_field_scale())):void 0},s.prototype.single_set_selected_text=function(t){return null==t&&(t=this.default_text),t===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").text(t)},s.prototype.result_deselect=function(t){var e
|
49 |
+
return e=this.results_data[t],this.form_field.options[e.options_index].disabled?!1:(e.selected=!1,this.form_field.options[e.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[e.options_index].value}),this.search_field_scale(),!0)},s.prototype.single_deselect_control_build=function(){return this.allow_single_deselect?(this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")):void 0},s.prototype.get_search_text=function(){return this.search_field.val()===this.default_text?"":t("<div/>").text(t.trim(this.search_field.val())).html()},s.prototype.winnow_results_set_highlight=function(){var t,e
|
50 |
+
return e=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),t=e.length?e.first():this.search_results.find(".active-result").first(),null!=t?this.result_do_highlight(t):void 0},s.prototype.no_results=function(e){var s
|
51 |
+
return s=t('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'),s.find("span").first().html(e),this.search_results.append(s),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},s.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},s.prototype.keydown_arrow=function(){var t
|
52 |
+
return this.results_showing&&this.result_highlight?(t=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(t):void 0:this.results_show()},s.prototype.keyup_arrow=function(){var t
|
53 |
+
return this.results_showing||this.is_multiple?this.result_highlight?(t=this.result_highlight.prevAll("li.active-result"),t.length?this.result_do_highlight(t.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())):void 0:this.results_show()},s.prototype.keydown_backstroke=function(){var t
|
54 |
+
return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(t=this.search_container.siblings("li.search-choice").last(),t.length&&!t.hasClass("search-choice-disabled")?(this.pending_backstroke=t,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0)},s.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},s.prototype.keydown_checker=function(t){var e,s
|
55 |
+
switch(e=null!=(s=t.which)?s:t.keyCode,this.search_field_scale(),8!==e&&this.pending_backstroke&&this.clear_backstroke(),e){case 8:this.backstroke_length=this.search_field.val().length
|
56 |
+
break
|
57 |
+
case 9:this.results_showing&&!this.is_multiple&&this.result_select(t),this.mouse_on_container=!1
|
58 |
+
break
|
59 |
+
case 13:t.preventDefault()
|
60 |
+
break
|
61 |
+
case 38:t.preventDefault(),this.keyup_arrow()
|
62 |
+
break
|
63 |
+
case 40:t.preventDefault(),this.keydown_arrow()}},s.prototype.search_field_scale=function(){var e,s,i,r,o,n,h,l,c
|
64 |
+
if(this.is_multiple){for(i=0,h=0,o="position:absolute; left: -1000px; top: -1000px; display:none;",n=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"],l=0,c=n.length;c>l;l++)r=n[l],o+=r+":"+this.search_field.css(r)+";"
|
65 |
+
return e=t("<div />",{style:o}),e.text(this.search_field.val()),t("body").append(e),h=e.width()+25,e.remove(),s=this.container.outerWidth(),h>s-10&&(h=s-10),this.search_field.css({width:h+"px"})}},s}(e)}.call(this)
|
assets/js/icegram.js
CHANGED
@@ -1,552 +1,53 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
var m = null;
|
55 |
-
var classname_suffix = v['type'].split('-').join(' ').ucwords().split(' ').join('_');
|
56 |
-
if (typeof (window['Icegram_Message_Type_' + classname_suffix]) === 'function') {
|
57 |
-
m = new window['Icegram_Message_Type_' + classname_suffix]( v );
|
58 |
-
} else {
|
59 |
-
m = new Icegram_Message_Type( v );
|
60 |
-
}
|
61 |
-
self.messages.push( m );
|
62 |
-
self.map_id_to_index['_'+v['id'] ] = i;
|
63 |
-
self.map_type_to_index[ v['type'] ] = jQuery.isArray(self.map_type_to_index[ v['type'] ]) ? self.map_type_to_index[ v['type'] ] : new Array();
|
64 |
-
self.map_type_to_index[ v['type'] ].push(i);
|
65 |
-
|
66 |
-
} catch( e ) {
|
67 |
-
}
|
68 |
-
});
|
69 |
-
}
|
70 |
-
|
71 |
-
// Submit event data on unload and at every 5 seconds...
|
72 |
-
jQuery( window ).unload( function() {
|
73 |
-
if (typeof(window.icegram.submit_tracking_data) === 'function') {
|
74 |
-
window.icegram.submit_tracking_data();
|
75 |
-
}
|
76 |
-
} );
|
77 |
-
setInterval( function() {
|
78 |
-
if (typeof(window.icegram.submit_tracking_data) === 'function') {
|
79 |
-
window.icegram.submit_tracking_data();
|
80 |
-
} } , 5 * 1000 );
|
81 |
-
|
82 |
-
|
83 |
-
// Trigger event for others!
|
84 |
-
jQuery( window ).trigger( 'init.icegram', [ this ] );
|
85 |
-
};
|
86 |
-
|
87 |
-
|
88 |
-
Icegram.prototype.timer_tick = function ( ) {
|
89 |
-
|
90 |
-
};
|
91 |
-
|
92 |
-
// Message template cache - get / set
|
93 |
-
Icegram.prototype.get_template_fn = function ( type ) {
|
94 |
-
return this.message_template_cache[ type ];
|
95 |
-
};
|
96 |
-
Icegram.prototype.set_template_fn = function ( type, fn ) {
|
97 |
-
this.message_template_cache[ type ] = fn;
|
98 |
-
};
|
99 |
-
|
100 |
-
// Utility functions to get message instances
|
101 |
-
Icegram.prototype.get_message = function ( index ) {
|
102 |
-
if (this.messages.length > index) {
|
103 |
-
return this.messages[ index ];
|
104 |
-
}
|
105 |
-
return undefined;
|
106 |
-
};
|
107 |
-
|
108 |
-
Icegram.prototype.get_message_by_id = function ( id ) {
|
109 |
-
if ( this.map_id_to_index.hasOwnProperty( '_'+id )) {
|
110 |
-
var index = this.map_id_to_index[ '_'+id ];
|
111 |
-
return this.get_message( index );
|
112 |
-
}
|
113 |
-
return undefined;
|
114 |
-
};
|
115 |
-
|
116 |
-
Icegram.prototype.get_messages_by_type = function ( type ) {
|
117 |
-
if ( this.map_type_to_index.hasOwnProperty( type )) {
|
118 |
-
var indices = this.map_type_to_index[ type ];
|
119 |
-
var matches = [];
|
120 |
-
if (jQuery.isArray( indices )) {
|
121 |
-
var self = this;
|
122 |
-
jQuery.each( indices, function ( i, v ) {
|
123 |
-
matches.push( self.get_message( v ) );
|
124 |
-
} );
|
125 |
-
}
|
126 |
-
return matches;
|
127 |
-
}
|
128 |
-
return undefined;
|
129 |
-
};
|
130 |
-
|
131 |
-
//Get powered by link
|
132 |
-
Icegram.prototype.get_powered_by = function ( type ) {
|
133 |
-
var res = jQuery.extend( {}, this.powered_by );
|
134 |
-
res.link = res.link + (type || '');
|
135 |
-
return res;
|
136 |
-
}
|
137 |
-
|
138 |
-
|
139 |
-
//Event tracking
|
140 |
-
Icegram.prototype.track = function ( ev, params ) {
|
141 |
-
if (typeof(params) === 'object' && params.hasOwnProperty('message_id') && params.hasOwnProperty('campaign_id')) {
|
142 |
-
jQuery( window ).trigger( 'track.icegram', [ ev, params ] );
|
143 |
-
this.tracking_data.push( { 'type': ev, 'params': params} );
|
144 |
-
}
|
145 |
-
}
|
146 |
-
Icegram.prototype.submit_tracking_data = function ( ev, params ) {
|
147 |
-
if (this.tracking_data.length > 0 && window.location.href.indexOf("campaign_preview_id") == -1) {
|
148 |
-
var params = {
|
149 |
-
type: 'POST',
|
150 |
-
url: this.data.ajax_url,
|
151 |
-
async: false,
|
152 |
-
data: {
|
153 |
-
action: 'icegram_event_track',
|
154 |
-
event_data: JSON.parse(JSON.stringify(this.tracking_data)),
|
155 |
-
ig_remote_url: (this.mode == 'remote') ? window.location.href : undefined,
|
156 |
-
},
|
157 |
-
success: function(data, status, xhr) {
|
158 |
-
},
|
159 |
-
error: function(data, status, xhr) {
|
160 |
-
}
|
161 |
-
};
|
162 |
-
if (this.mode == 'remote') {
|
163 |
-
params['xhrFields'] = { withCredentials: true };
|
164 |
-
params['crossDomain'] = true;
|
165 |
-
params['async'] = true;
|
166 |
-
}
|
167 |
-
jQuery.ajax(params);
|
168 |
-
this.tracking_data = [];
|
169 |
-
}
|
170 |
-
}
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
/**
|
176 |
-
* Icegram Message Type - Base class
|
177 |
-
**/
|
178 |
-
function Icegram_Message_Type( data ) {
|
179 |
-
|
180 |
-
var data, template, dom_id, el, type, root_container;
|
181 |
-
|
182 |
-
this.root_container = "#icegram_messages_container";
|
183 |
-
this.data = data;
|
184 |
-
this.type = data.type;
|
185 |
-
this.data.delay_time = parseInt(this.data.delay_time);
|
186 |
-
//add http:// to link
|
187 |
-
if (typeof(this.data.link) === 'string' && this.data.link != '') {
|
188 |
-
if (!/^https?:\/\//i.test(this.data.link)) {
|
189 |
-
this.data.link = "http://" + this.data.link;
|
190 |
-
}
|
191 |
-
}
|
192 |
-
this.set_template( this.get_template_default() );
|
193 |
-
this.init();
|
194 |
-
}
|
195 |
-
|
196 |
-
Icegram_Message_Type.prototype.init = function ( ) {
|
197 |
-
// Render HTML
|
198 |
-
this.render();
|
199 |
-
|
200 |
-
// Add handlers
|
201 |
-
this.add_event_handlers();
|
202 |
-
};
|
203 |
-
|
204 |
-
Icegram_Message_Type.prototype.add_event_handlers = function ( ) {
|
205 |
-
this.el.on('click', {self: this}, this.on_click);
|
206 |
-
jQuery( window ).on('resize' , {self: this} , this.on_resize);
|
207 |
-
}
|
208 |
-
|
209 |
-
Icegram_Message_Type.prototype.render = function ( ) {
|
210 |
-
|
211 |
-
this.pre_render();
|
212 |
-
|
213 |
-
var html = this.render_template();
|
214 |
-
|
215 |
-
// Add html to DOM, Setup dom_id, el etc.
|
216 |
-
try {
|
217 |
-
jQuery(this.root_container).append(html);
|
218 |
-
} catch ( e ) {}
|
219 |
-
|
220 |
-
this.dom_id = 'icegram_message_'+this.data.id;
|
221 |
-
this.el = jQuery('#'+this.dom_id);
|
222 |
-
this.set_position();
|
223 |
-
|
224 |
-
var pb = window.icegram.get_powered_by( this.type );
|
225 |
-
if ( pb.hasOwnProperty('link') && pb.hasOwnProperty('text') && pb.text != '' ) {
|
226 |
-
this.add_powered_by( pb );
|
227 |
-
}
|
228 |
-
|
229 |
-
// Hide elements if insufficient data...
|
230 |
-
if(this.data.headline == undefined || this.data.headline == '') {
|
231 |
-
this.el.find('.ig_headline').hide();
|
232 |
-
}
|
233 |
-
if(this.data.icon == undefined || this.data.icon == '') {
|
234 |
-
this.el.find('.ig_icon').remove();
|
235 |
-
}
|
236 |
-
if(this.data.message == undefined || this.data.message == '') {
|
237 |
-
this.el.find('.ig_message').hide();
|
238 |
-
}else{
|
239 |
-
|
240 |
-
var form_el = this.el.find('.ig_embed_form').get(0);
|
241 |
-
if(form_el){
|
242 |
-
if(jQuery(window).width() < 644){
|
243 |
-
jQuery(form_el)
|
244 |
-
.removeClass('ig_horizontal ig_full ig_half ig_quarter')
|
245 |
-
.addClass('ig_vertical ig_full')
|
246 |
-
.find('.ig_form_el_group')
|
247 |
-
.css('width', 96 + '%');
|
248 |
-
}
|
249 |
-
var form_content = jQuery(form_el).html();
|
250 |
-
form_el = jQuery(form_el).empty();
|
251 |
-
jQuery(form_el).replaceWith(form_content);
|
252 |
-
this.el.find('.ig_message').html(form_el.append(this.el.find('.ig_message').html()));
|
253 |
-
var prev_tag = this.el.find('.ig_embed_form_container').prev();
|
254 |
-
var next_tag = this.el.find('.ig_embed_form_container').next();
|
255 |
-
// var allowed_tags = ['P', 'DIV', 'SPAN']; // dont need this, no working !
|
256 |
-
// if(form_el.hasClass('ig_inline') && prev_tag.get(0) && jQuery.inArray(prev_tag.get(0).tagName, allowed_tags) != -1){
|
257 |
-
if(form_el.hasClass('ig_inline') && prev_tag.get(0)){
|
258 |
-
this.el.find('.ig_embed_form_container')
|
259 |
-
.appendTo(prev_tag);
|
260 |
-
if(next_tag.get(0) && next_tag.get(0).tagName == prev_tag.get(0).tagName){
|
261 |
-
prev_tag.append(next_tag.html());
|
262 |
-
next_tag.remove();
|
263 |
-
}
|
264 |
-
}
|
265 |
-
}
|
266 |
-
}
|
267 |
-
if(this.data.label == undefined || this.data.label == '') {
|
268 |
-
this.el.find('.ig_button').hide();
|
269 |
-
}
|
270 |
-
|
271 |
-
// Apply colors if available
|
272 |
-
if (this.data.text_color != undefined && this.data.text_color != '') {
|
273 |
-
this.el.css('color', this.data.text_color);
|
274 |
-
this.el.find('.ig_container').css('color', this.data.text_color);
|
275 |
-
}
|
276 |
-
|
277 |
-
if (this.data.bg_color != undefined && this.data.bg_color != '') {
|
278 |
-
this.el.css('background-color', this.data.bg_color);
|
279 |
-
this.el.find('.ig_container').css('background-color', this.data.bg_color);
|
280 |
-
}
|
281 |
-
|
282 |
-
if(this.data.label == undefined || this.data.label == '') {
|
283 |
-
this.el.find('.ig_button').hide();
|
284 |
-
}
|
285 |
-
if (this.data.bg_color != undefined && this.data.bg_color != '') {
|
286 |
-
var hsl_colors = window.icegram.get_complementary_color(this.data.bg_color, 2);
|
287 |
-
// this.el.find('.ig_button, form input[type="submit"]').css('background', "hsl(" + hsl_colors[0].h + "," + hsl_colors[0].s + "%," + hsl_colors[0].l + "%)" ).css('background-color', "hsl(" + hsl_colors[0].h + "," + hsl_colors[0].s + "%," + hsl_colors[0].l + "%)" );
|
288 |
-
this.el.find('.ig_button, form input[type="submit"]').css('background-color', "hsl(" + hsl_colors[0].h + "," + hsl_colors[0].s + "%," + hsl_colors[0].l + "%)" );
|
289 |
-
this.el.find('.ig_button, form input[type="submit"]').css('color', "hsl(" + hsl_colors[1].h + "," + hsl_colors[1].s + "%," + hsl_colors[1].l + "%)" );
|
290 |
-
this.el.find('.ig_button, form input[type="submit"]').css('border-color', "hsl(" + hsl_colors[0].h + "," + (hsl_colors[0].s-5) + "%," + (hsl_colors[0].l-8) + "%)" );
|
291 |
-
}
|
292 |
-
// Hint clickability for buttons / ctas
|
293 |
-
if (typeof(this.data.link) === 'string' && this.data.link != '') {
|
294 |
-
this.el.parent().find('.ig_cta, .ig_button').css('cursor', 'pointer');
|
295 |
-
}
|
296 |
-
|
297 |
-
this.post_render();
|
298 |
-
|
299 |
-
// Hide the message by default
|
300 |
-
this.hide( {}, true );
|
301 |
-
|
302 |
-
// Set up message display trigger
|
303 |
-
this.set_up_show_trigger();
|
304 |
-
}
|
305 |
-
|
306 |
-
|
307 |
-
Icegram_Message_Type.prototype.render_template = function ( ) {
|
308 |
-
if ( typeof(window.icegram.get_template_fn( this.type ) ) !== 'function') {
|
309 |
-
// Adapted from John Resig's Simple JavaScript Templating
|
310 |
-
window.icegram.set_template_fn( this.type, new Function("obj",
|
311 |
-
"var p=[],print=function(){p.push.apply(p,arguments);};" +
|
312 |
-
"with(obj){p.push('" +
|
313 |
-
this.template
|
314 |
-
.replace(/[\r\t\n]/g, " ")
|
315 |
-
.split("{{").join("\t")
|
316 |
-
.replace(/((^|\}\})[^\t]*)'/g, "$1\r")
|
317 |
-
.replace(/\t=(.*?)\}\}/g, "',$1,'")
|
318 |
-
.split("\t").join("');")
|
319 |
-
.split("}}").join("p.push('")
|
320 |
-
.split("\r").join("\\'")
|
321 |
-
+ "');}return p.join('');") );
|
322 |
-
}
|
323 |
-
return window.icegram.get_template_fn( this.type )( this.data );
|
324 |
-
};
|
325 |
-
|
326 |
-
Icegram_Message_Type.prototype.pre_render = function ( ) {
|
327 |
-
|
328 |
-
};
|
329 |
-
|
330 |
-
Icegram_Message_Type.prototype.post_render = function ( ) {
|
331 |
-
|
332 |
-
};
|
333 |
-
|
334 |
-
Icegram_Message_Type.prototype.set_up_show_trigger = function ( ) {
|
335 |
-
if (!isNaN(this.data.delay_time)) {
|
336 |
-
if( this.data.delay_time >= 0 ) {
|
337 |
-
var self = this;
|
338 |
-
this.timer = setTimeout( function() { self.show(); } , this.data.delay_time * 1000 );
|
339 |
-
}
|
340 |
-
} else {
|
341 |
-
this.show();
|
342 |
-
}
|
343 |
-
};
|
344 |
-
|
345 |
-
Icegram_Message_Type.prototype.set_template = function ( str ) {
|
346 |
-
this.template = str;
|
347 |
-
};
|
348 |
-
|
349 |
-
Icegram_Message_Type.prototype.get_template_default = function () {
|
350 |
-
return '<div id="icegram_message_{{=id}}" class="icegram">' +
|
351 |
-
'<div class="ig_headline">{{=headline}}</div>' +
|
352 |
-
'</div>';
|
353 |
-
};
|
354 |
-
|
355 |
-
Icegram_Message_Type.prototype.show = function ( options, silent ) {
|
356 |
-
if ( !this.is_visible() ) {
|
357 |
-
this.el.show( options );
|
358 |
-
silent !== true && this.track( 'shown' );
|
359 |
-
}
|
360 |
-
};
|
361 |
-
|
362 |
-
Icegram_Message_Type.prototype.hide = function ( options, silent ) {
|
363 |
-
if ( this.is_visible() ) {
|
364 |
-
this.el.hide( options );
|
365 |
-
silent !== true && this.track( 'closed' );
|
366 |
-
}
|
367 |
-
};
|
368 |
-
|
369 |
-
Icegram_Message_Type.prototype.set_position = function ( ) {
|
370 |
-
|
371 |
-
};
|
372 |
-
|
373 |
-
|
374 |
-
Icegram_Message_Type.prototype.add_powered_by = function ( pb ) {
|
375 |
-
|
376 |
-
};
|
377 |
-
|
378 |
-
// Event tracking wrapper
|
379 |
-
Icegram_Message_Type.prototype.track = function ( e, params ) {
|
380 |
-
if (typeof( window.icegram.track ) === 'function' ) {
|
381 |
-
params = params || {};
|
382 |
-
jQuery.extend( params, {message_id: this.data.id, campaign_id: this.data.campaign_id ,expiry_time:this.data.expiry_time ,expiry_time_clicked:this.data.expiry_time_clicked} );
|
383 |
-
window.icegram.track( e, params);
|
384 |
-
}
|
385 |
-
};
|
386 |
-
|
387 |
-
Icegram_Message_Type.prototype.is_visible = function ( ) {
|
388 |
-
return this.el.is(':visible');
|
389 |
-
};
|
390 |
-
|
391 |
-
// Click and other event handlers
|
392 |
-
Icegram_Message_Type.prototype.toggle = function ( options ) {
|
393 |
-
if ( this.is_visible() ) {
|
394 |
-
this.hide( options );
|
395 |
-
} else {
|
396 |
-
this.show( options );
|
397 |
-
};
|
398 |
-
};
|
399 |
-
|
400 |
-
Icegram_Message_Type.prototype.on_click = function ( e ) {
|
401 |
-
e.data = e.data || { self: this };
|
402 |
-
// Clicked on close button
|
403 |
-
if (jQuery(e.target).filter('.ig_close').length) {
|
404 |
-
e.data.self.hide();
|
405 |
-
return;
|
406 |
-
}
|
407 |
-
var form = jQuery(e.target).closest('.icegram').find('form').first();
|
408 |
-
// Clicking on ig_button or any other link with a class ig_cta will trigger cta click
|
409 |
-
if(jQuery(e.target).filter('.ig_button, .ig_cta ,:submit').length || jQuery(e.target).parents('.ig_button, .ig_cta ').length && !(form.find('ig_button').length > 0 || form.find('input[type=button]').length > 0 || form.find('input[type=submit]').length > 0 )){
|
410 |
-
e.data.self.on_cta_click( e );
|
411 |
-
}
|
412 |
-
};
|
413 |
-
Icegram_Message_Type.prototype.on_resize = function ( e ) {
|
414 |
-
|
415 |
-
};
|
416 |
-
|
417 |
-
Icegram_Message_Type.prototype.on_cta_click = function ( e ) {
|
418 |
-
e.data = e.data || { self: this };
|
419 |
-
e.data.self.track( 'clicked' );
|
420 |
-
if(jQuery(e.target).closest('.icegram').find('form').length ){
|
421 |
-
var form = jQuery(e.target).closest('.icegram').find('form').first();
|
422 |
-
jQuery(form).submit();
|
423 |
-
}else if (typeof(e.data.self.data.link) === 'string' && e.data.self.data.link != '') {
|
424 |
-
window.location.href = e.data.self.data.link;
|
425 |
-
}else if(e.data.self.data.hide !== false){
|
426 |
-
e.data.self.hide()
|
427 |
-
}
|
428 |
-
};
|
429 |
-
|
430 |
-
|
431 |
-
/**
|
432 |
-
* Utilities
|
433 |
-
*/
|
434 |
-
String.prototype.ucwords = function() {
|
435 |
-
return this.toLowerCase().replace(/\b[a-z]/g, function(letter) {
|
436 |
-
return letter.toUpperCase();
|
437 |
-
});
|
438 |
-
}
|
439 |
-
|
440 |
-
Icegram.prototype.get_complementary_color = function (hex, num) {
|
441 |
-
num = num || 1;
|
442 |
-
var H, S, L, brightness;
|
443 |
-
// Convert RGB to HSL
|
444 |
-
hex = hex.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i , function(m, r, g, b) {
|
445 |
-
return r + r + g + g + b + b;
|
446 |
-
});
|
447 |
-
|
448 |
-
var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
449 |
-
if(result){
|
450 |
-
|
451 |
-
var r = parseInt(result[1], 16);
|
452 |
-
var g = parseInt(result[2], 16);
|
453 |
-
var b = parseInt(result[3], 16);
|
454 |
-
brightness = Math.sqrt(r * r * .241 + g * g * .691 + b * b * .068);
|
455 |
-
r /= 255;
|
456 |
-
g /= 255;
|
457 |
-
b /= 255;
|
458 |
-
|
459 |
-
var maxColor = Math.max(r, g, b);
|
460 |
-
var minColor = Math.min(r, g, b);
|
461 |
-
//Calculate L:
|
462 |
-
L = (maxColor + minColor) / 2 ;
|
463 |
-
S = 0;
|
464 |
-
H = 0;
|
465 |
-
if(maxColor != minColor){
|
466 |
-
//Calculate S:
|
467 |
-
S = (L < 0.5) ? (maxColor - minColor) / (maxColor + minColor) : (maxColor - minColor) / (2.0 - maxColor - minColor) ;
|
468 |
-
//Calculate H:
|
469 |
-
if(r == maxColor){
|
470 |
-
H = (g - b) / (maxColor - minColor);
|
471 |
-
}else if(g == maxColor){
|
472 |
-
H = 2.0 + (b - r) / (maxColor - minColor);
|
473 |
-
}else{
|
474 |
-
H = 4.0 + (r - g) / (maxColor - minColor);
|
475 |
-
}
|
476 |
-
}
|
477 |
-
|
478 |
-
L = Math.floor(L * 100);
|
479 |
-
S = Math.floor(S * 100);
|
480 |
-
H = Math.floor(H * 60);
|
481 |
-
if(H<0){
|
482 |
-
H += 360;
|
483 |
-
}
|
484 |
-
}
|
485 |
-
|
486 |
-
// Now change HSL to vary color
|
487 |
-
var colors = [];
|
488 |
-
|
489 |
-
// Increase or reduce saturation / light
|
490 |
-
if(brightness > 146){
|
491 |
-
L = Math.max( L-25, 0);
|
492 |
-
S = Math.min( S-15, 100);
|
493 |
-
}else{
|
494 |
-
L = Math.min( L+25, 100);
|
495 |
-
S = Math.min( S+15, 100);
|
496 |
-
}
|
497 |
-
|
498 |
-
for(var i=0; i < num; i=i+2) {
|
499 |
-
|
500 |
-
// First create background color
|
501 |
-
H += 45;
|
502 |
-
if (H > 360) {
|
503 |
-
H -= 180;
|
504 |
-
}
|
505 |
-
|
506 |
-
colors.push({h: H, s: S, l: L});
|
507 |
-
|
508 |
-
// Now, create foreground color if needed
|
509 |
-
if (i+1 < num) {
|
510 |
-
var fg = {};
|
511 |
-
if(L > 50){
|
512 |
-
fg = {h: H, s: 20, l: 20 };
|
513 |
-
}else{
|
514 |
-
colors.push({h: H, s: 20, l: 90 });
|
515 |
-
}
|
516 |
-
colors.push(fg);
|
517 |
-
}
|
518 |
-
}
|
519 |
-
|
520 |
-
if (colors.length > 0) {
|
521 |
-
return (num == 1) ? colors[0] : colors.slice(0, num);
|
522 |
-
}
|
523 |
-
return null;
|
524 |
-
}
|
525 |
-
|
526 |
-
if (typeof Object.create != 'function') {
|
527 |
-
(function () {
|
528 |
-
var F = function () {};
|
529 |
-
Object.create = function (o) {
|
530 |
-
if (arguments.length > 1) {
|
531 |
-
throw Error('Second argument not supported');
|
532 |
-
}
|
533 |
-
if (o === null) {
|
534 |
-
throw Error('Cannot set a null [[Prototype]]');
|
535 |
-
}
|
536 |
-
if (typeof o != 'object') {
|
537 |
-
throw TypeError('Argument must be an object');
|
538 |
-
}
|
539 |
-
F.prototype = o;
|
540 |
-
return new F();
|
541 |
-
};
|
542 |
-
})();
|
543 |
-
}
|
544 |
-
// jQuery Cookies
|
545 |
-
(function(e){if(typeof define==="function"&&define.amd){define(["jquery"],e)}else if(typeof exports==="object"){e(require("jquery"))}else{e(jQuery)}})(function(e){function n(e){return u.raw?e:encodeURIComponent(e)}function r(e){return u.raw?e:decodeURIComponent(e)}function i(e){return n(u.json?JSON.stringify(e):String(e))}function s(e){if(e.indexOf('"')===0){e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")}try{e=decodeURIComponent(e.replace(t," "));return u.json?JSON.parse(e):e}catch(n){}}function o(t,n){var r=u.raw?t:s(t);return e.isFunction(n)?n(r):r}var t=/\+/g;var u=e.cookie=function(t,s,a){if(s!==undefined&&!e.isFunction(s)){a=e.extend({},u.defaults,a);if(typeof a.expires==="number"){var f=a.expires,l=a.expires=new Date;l.setTime(+l+f*864e5)}return document.cookie=[n(t),"=",i(s),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}var c=t?undefined:{};var h=document.cookie?document.cookie.split("; "):[];for(var p=0,d=h.length;p<d;p++){var v=h[p].split("=");var m=r(v.shift());var g=v.join("=");if(t&&t===m){c=o(g,s);break}if(!t&&(g=o(g))!==undefined){c[m]=g}}return c};u.defaults={};e.removeCookie=function(t,n){if(e.cookie(t)===undefined){return false}e.cookie(t,"",e.extend({},n,{expires:-1}));return!e.cookie(t)}});
|
546 |
-
|
547 |
-
// This is called onReady
|
548 |
-
jQuery(function() {
|
549 |
-
// FINALLY: Create object in window for later usage
|
550 |
-
window.icegram = new Icegram();
|
551 |
-
window.icegram.init( icegram_data );
|
552 |
-
});
|
1 |
+
/**
|
2 |
+
* Icegram JS class
|
3 |
+
* Initialize, run and manage all messages
|
4 |
+
* Public interface
|
5 |
+
**/
|
6 |
+
function Icegram(){}function Icegram_Message_Type(e){var e
|
7 |
+
this.root_container="#icegram_messages_container",this.data=e,this.type=e.type,this.data.delay_time=parseInt(this.data.delay_time),"string"!=typeof this.data.link||""==this.data.link||/^tel:/i.test(this.data.link)||/^https?:\/\//i.test(this.data.link)||(this.data.link="http://"+this.data.link),this.set_template(this.get_template_default()),this.init()}Icegram.prototype.init=function(e){if(void 0!=e){jQuery(window).trigger("preinit.icegram",[e]),this.data=e,this.defaults=jQuery.extend({},e.defaults),this.message_data=e.messages,this.messages,this.tracking_data=[],this.message_template_cache={},this.map_id_to_index={},this.map_type_to_index={},this.mode=void 0==window.ig_mode?"local":window.ig_mode,this.powered_by={link:"http://www.icegram.com/?utm_source=inapp&utm_campaign=poweredby&utm_medium="},this.powered_by.text=this.defaults.powered_by_text,this.powered_by.logo=this.defaults.powered_by_logo,jQuery("body").append('<div id="icegram_messages_container"></div>')
|
8 |
+
this.messages=[]
|
9 |
+
var t=this
|
10 |
+
this.message_data.length>0&&jQuery.each(this.message_data,function(e,i){try{if(-1==window.location.href.indexOf("campaign_preview_id")){if("yes"==i.retargeting&&1==jQuery.cookie("icegram_messages_shown_"+i.id))return
|
11 |
+
if("yes"==i.retargeting_clicked&&1==jQuery.cookie("icegram_messages_clicked_"+i.id))return}var a=null,r=i.type.split("-").join(" ").ucwords().split(" ").join("_")
|
12 |
+
a="function"==typeof window["Icegram_Message_Type_"+r]?new window["Icegram_Message_Type_"+r](i):new Icegram_Message_Type(i),t.messages.push(a),t.map_id_to_index["_"+i.id]=e,t.map_type_to_index[i.type]=jQuery.isArray(t.map_type_to_index[i.type])?t.map_type_to_index[i.type]:new Array,t.map_type_to_index[i.type].push(e)}catch(s){}}),jQuery(window).unload(function(){"function"==typeof window.icegram.submit_tracking_data&&window.icegram.submit_tracking_data(!1)}),setInterval(function(){"function"==typeof window.icegram.submit_tracking_data&&window.icegram.submit_tracking_data(!0)},5e3),jQuery(window).trigger("init.icegram",[this])}},Icegram.prototype.timer_tick=function(){},Icegram.prototype.get_template_fn=function(e){return this.message_template_cache[e]},Icegram.prototype.set_template_fn=function(e,t){this.message_template_cache[e]=t},Icegram.prototype.get_message=function(e){return this.messages.length>e?this.messages[e]:void 0},Icegram.prototype.get_message_by_id=function(e){if(this.map_id_to_index.hasOwnProperty("_"+e)){var t=this.map_id_to_index["_"+e]
|
13 |
+
return this.get_message(t)}return void 0},Icegram.prototype.get_messages_by_type=function(e){if(this.map_type_to_index.hasOwnProperty(e)){var t=this.map_type_to_index[e],i=[]
|
14 |
+
if(jQuery.isArray(t)){var a=this
|
15 |
+
jQuery.each(t,function(e,t){i.push(a.get_message(t))})}return i}return void 0},Icegram.prototype.get_powered_by=function(e){var t=jQuery.extend({},this.powered_by)
|
16 |
+
return t.link=t.link+(e||""),t},Icegram.prototype.track=function(e,t){"object"==typeof t&&t.hasOwnProperty("message_id")&&t.hasOwnProperty("campaign_id")&&(jQuery(window).trigger("track.icegram",[e,t]),this.tracking_data.push({type:e,params:t}))},Icegram.prototype.submit_tracking_data=function(e){if(this.tracking_data.length>0&&-1==window.location.href.indexOf("campaign_preview_id")){var t={type:"POST",url:this.data.ajax_url,async:e||!1,data:{action:"icegram_event_track",event_data:JSON.parse(JSON.stringify(this.tracking_data)),ig_remote_url:"remote"==this.mode?window.location.href:void 0},success:function(e,t,i){},error:function(e,t,i){}}
|
17 |
+
"remote"==this.mode&&(t.xhrFields={withCredentials:!0},t.crossDomain=!0,t.async=!0),jQuery.ajax(t),this.tracking_data=[]}},Icegram_Message_Type.prototype.init=function(){this.render(),this.add_event_handlers()},Icegram_Message_Type.prototype.add_event_handlers=function(){this.el.on("click",{self:this},this.on_click),jQuery(window).on("resize",{self:this},this.on_resize)},Icegram_Message_Type.prototype.render=function(){this.pre_render()
|
18 |
+
var e=this.render_template()
|
19 |
+
try{jQuery(this.root_container).append(e)}catch(t){}this.dom_id="icegram_message_"+this.data.id,this.el=jQuery("#"+this.dom_id),this.set_position()
|
20 |
+
var i=window.icegram.get_powered_by(this.type)
|
21 |
+
if(i.hasOwnProperty("link")&&i.hasOwnProperty("text")&&""!=i.text&&this.add_powered_by(i),(void 0==this.data.headline||""==this.data.headline)&&this.el.find(".ig_headline").hide(),(void 0==this.data.icon||""==this.data.icon)&&this.el.find(".ig_icon").remove(),void 0==this.data.message||""==this.data.message)this.el.find(".ig_message").hide()
|
22 |
+
else{var a=this.el.find(".ig_embed_form").get(0)
|
23 |
+
if(a){jQuery(window).width()<644&&jQuery(a).removeClass("ig_horizontal ig_full ig_half ig_quarter").addClass("ig_vertical ig_full").find(".ig_form_el_group").css("width","96%")
|
24 |
+
var r=jQuery(a).html()
|
25 |
+
a=jQuery(a).empty(),jQuery(a).replaceWith(r),this.el.find(".ig_message").html(a.append(this.el.find(".ig_message").html()))
|
26 |
+
var s=this.el.find(".ig_embed_form_container").prev(),o=this.el.find(".ig_embed_form_container").next()
|
27 |
+
a.hasClass("ig_inline")&&s.get(0)&&(this.el.find(".ig_embed_form_container").appendTo(s),o.get(0)&&o.get(0).tagName==s.get(0).tagName&&(s.append(o.html()),o.remove()))}}if((void 0==this.data.label||""==this.data.label)&&this.el.find(".ig_button").hide(),void 0==this.data.use_theme_defaults||"yes"!=this.data.use_theme_defaults){if(void 0!=this.data.text_color&&""!=this.data.text_color&&(this.el.css("color",this.data.text_color),this.el.find(".ig_container").css("color",this.data.text_color)),void 0!=this.data.bg_color&&""!=this.data.bg_color&&(this.el.css("background-color",this.data.bg_color),this.el.find(".ig_container").css("background-color",this.data.bg_color)),void 0!=this.data.cta_bg_color&&""!=this.data.cta_bg_color){this.el.find('.ig_button, form input[type="submit"]').css("background-color",this.data.cta_bg_color)
|
28 |
+
var n=window.icegram.hexToHsl(this.data.cta_bg_color)
|
29 |
+
this.el.find('.ig_button, form input[type="submit"]').css("border-color","hsl("+n.h+","+(n.s-5)+"%,"+(n.l-8)+"%)")}void 0!=this.data.cta_text_color&&""!=this.data.cta_text_color&&this.el.find('.ig_button, form input[type="submit"]').css("color",this.data.cta_text_color)}(void 0==this.data.label||""==this.data.label)&&this.el.find(".ig_button").hide(),"string"==typeof this.data.link&&""!=this.data.link&&this.el.parent().find(".ig_cta, .ig_button").css("cursor","pointer"),this.post_render(),this.hide({},!0),this.set_up_show_trigger()},Icegram_Message_Type.prototype.render_template=function(){return"function"!=typeof window.icegram.get_template_fn(this.type)&&window.icegram.set_template_fn(this.type,new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+this.template.replace(/[\r\t\n]/g," ").split("{{").join(" ").replace(/((^|\}\})[^\t]*)'/g,"$1\r").replace(/\t=(.*?)\}\}/g,"',$1,'").split(" ").join("');").split("}}").join("p.push('").split("\r").join("\\'")+"');}return p.join('');")),window.icegram.get_template_fn(this.type)(this.data)},Icegram_Message_Type.prototype.pre_render=function(){},Icegram_Message_Type.prototype.post_render=function(){},Icegram_Message_Type.prototype.set_up_show_trigger=function(){if(isNaN(this.data.delay_time))this.show()
|
30 |
+
else if(this.data.delay_time>=0){var e=this
|
31 |
+
this.timer=setTimeout(function(){e.show()},1e3*this.data.delay_time)}},Icegram_Message_Type.prototype.set_template=function(e){this.template=e},Icegram_Message_Type.prototype.get_template_default=function(){return'<div id="icegram_message_{{=id}}" class="icegram"><div class="ig_headline">{{=headline}}</div></div>'},Icegram_Message_Type.prototype.show=function(e,t){this.is_visible()||(this.el.show(e),t!==!0&&this.track("shown"))},Icegram_Message_Type.prototype.hide=function(e,t){this.is_visible()&&(this.el.hide(e),t!==!0&&this.track("closed"))},Icegram_Message_Type.prototype.set_position=function(){},Icegram_Message_Type.prototype.add_powered_by=function(e){},Icegram_Message_Type.prototype.track=function(e,t){"function"==typeof window.icegram.track&&(t=t||{},jQuery.extend(t,{message_id:this.data.id,campaign_id:this.data.campaign_id,expiry_time:this.data.expiry_time,expiry_time_clicked:this.data.expiry_time_clicked}),window.icegram.track(e,t))},Icegram_Message_Type.prototype.is_visible=function(){return this.el.is(":visible")},Icegram_Message_Type.prototype.toggle=function(e){this.is_visible()?this.hide(e):this.show(e)},Icegram_Message_Type.prototype.on_click=function(e){if(e.data=e.data||{self:this},jQuery(e.target).filter(".ig_close").length)return void e.data.self.hide()
|
32 |
+
var t=jQuery(e.target).closest(".icegram").find("form").first();(jQuery(e.target).filter(".ig_button, .ig_cta ,:submit").length||jQuery(e.target).parents(".ig_button, .ig_cta ").length&&!(t.find("ig_button").length>0||t.find("input[type=button]").length>0||t.find("input[type=submit]").length>0))&&e.data.self.on_cta_click(e)},Icegram_Message_Type.prototype.on_resize=function(e){},Icegram_Message_Type.prototype.on_cta_click=function(e){if(e.data=e.data||{self:this},e.data.self.track("clicked"),jQuery(e.target).closest(".icegram").find("form").length){var t=jQuery(e.target).closest(".icegram").find("form").first()
|
33 |
+
jQuery(t).submit()}else"string"==typeof e.data.self.data.link&&""!=e.data.self.data.link?window.location.href=e.data.self.data.link:e.data.self.data.hide!==!1&&e.data.self.hide()},String.prototype.ucwords=function(){return this.toLowerCase().replace(/\b[a-z]/g,function(e){return e.toUpperCase()})},Icegram.prototype.hexToRgb=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e)
|
34 |
+
return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},Icegram.prototype.rgbToHsl=function(e,t,i){e/=255,t/=255,i/=255
|
35 |
+
var a,r,s=Math.max(e,t,i),o=Math.min(e,t,i),n=(s+o)/2
|
36 |
+
if(s==o)a=r=0
|
37 |
+
else{var d=s-o
|
38 |
+
switch(r=n>.5?d/(2-s-o):d/(s+o),s){case e:a=(t-i)/d
|
39 |
+
break
|
40 |
+
case t:a=(i-e)/d+2
|
41 |
+
break
|
42 |
+
case i:a=(e-t)/d+4}n=Math.floor(100*n),r=Math.floor(100*r),a=Math.floor(60*a),0>a&&(a+=360)}return{h:a,s:r,l:n}},Icegram.prototype.hexToHsl=function(e){var t=window.icegram.hexToRgb(e)
|
43 |
+
return window.icegram.rgbToHsl(t.r,t.g,t.b)},"function"!=typeof Object.create&&!function(){var e=function(){}
|
44 |
+
Object.create=function(t){if(arguments.length>1)throw Error("Second argument not supported")
|
45 |
+
if(null===t)throw Error("Cannot set a null [[Prototype]]")
|
46 |
+
if("object"!=typeof t)throw TypeError("Argument must be an object")
|
47 |
+
return e.prototype=t,new e}}(),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){function t(e){return n.raw?e:encodeURIComponent(e)}function i(e){return n.raw?e:decodeURIComponent(e)}function a(e){return t(n.json?JSON.stringify(e):String(e))}function r(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"))
|
48 |
+
try{return e=decodeURIComponent(e.replace(o," ")),n.json?JSON.parse(e):e}catch(t){}}function s(t,i){var a=n.raw?t:r(t)
|
49 |
+
return e.isFunction(i)?i(a):a}var o=/\+/g,n=e.cookie=function(r,o,d){if(void 0!==o&&!e.isFunction(o)){if(d=e.extend({},n.defaults,d),"number"==typeof d.expires){var c=d.expires,_=d.expires=new Date
|
50 |
+
_.setTime(+_+864e5*c)}return document.cookie=[t(r),"=",a(o),d.expires?"; expires="+d.expires.toUTCString():"",d.path?"; path="+d.path:"",d.domain?"; domain="+d.domain:"",d.secure?"; secure":""].join("")}for(var p=r?void 0:{},g=document.cookie?document.cookie.split("; "):[],h=0,l=g.length;l>h;h++){var m=g[h].split("="),u=i(m.shift()),f=m.join("=")
|
51 |
+
if(r&&r===u){p=s(f,o)
|
52 |
+
break}r||void 0===(f=s(f))||(p[u]=f)}return p}
|
53 |
+
n.defaults={},e.removeCookie=function(t,i){return void 0===e.cookie(t)?!1:(e.cookie(t,"",e.extend({},i,{expires:-1})),!e.cookie(t))}})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/js/jquery.tipTip.min.js
CHANGED
@@ -17,4 +17,19 @@
|
|
17 |
* This TipTip jQuery plug-in is dual licensed under the MIT and GPL licenses:
|
18 |
* http://www.opensource.org/licenses/mit-license.php
|
19 |
* http://www.gnu.org/licenses/gpl.html
|
20 |
-
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
* This TipTip jQuery plug-in is dual licensed under the MIT and GPL licenses:
|
18 |
* http://www.opensource.org/licenses/mit-license.php
|
19 |
* http://www.gnu.org/licenses/gpl.html
|
20 |
+
*/
|
21 |
+
!function(t){t.fn.tipTip=function(e){var o={activation:"hover",keepAlive:!1,maxWidth:"200px",edgeOffset:3,defaultPosition:"bottom",delay:400,fadeIn:200,fadeOut:200,attribute:"title",content:!1,enter:function(){},exit:function(){}},i=t.extend(o,e)
|
22 |
+
if(t("#tiptip_holder").length<=0){var n=t('<div id="tiptip_holder" style="max-width:'+i.maxWidth+';"></div>'),r=t('<div id="tiptip_content"></div>'),a=t('<div id="tiptip_arrow"></div>')
|
23 |
+
t("body").append(n.html(r).prepend(a.html('<div id="tiptip_arrow_inner"></div>')))}else var n=t("#tiptip_holder"),r=t("#tiptip_content"),a=t("#tiptip_arrow")
|
24 |
+
return this.each(function(){function e(){i.enter.call(this),r.html(d),n.hide().removeAttr("class").css("margin","0"),a.removeAttr("style")
|
25 |
+
var e=parseInt(f.offset().top),o=parseInt(f.offset().left),p=parseInt(f.outerWidth()),l=parseInt(f.outerHeight()),h=n.outerWidth(),c=n.outerHeight(),s=Math.round((p-h)/2),_=Math.round((l-c)/2),v=Math.round(o+s),m=Math.round(e+l+i.edgeOffset),g="",b="",M=Math.round(h-12)/2
|
26 |
+
"bottom"==i.defaultPosition?g="_bottom":"top"==i.defaultPosition?g="_top":"left"==i.defaultPosition?g="_left":"right"==i.defaultPosition&&(g="_right")
|
27 |
+
var w=s+o<parseInt(t(window).scrollLeft()),O=h+o>parseInt(t(window).width())
|
28 |
+
w&&0>s||"_right"==g&&!O||"_left"==g&&o<h+i.edgeOffset+5?(g="_right",b=Math.round(c-13)/2,M=-12,v=Math.round(o+p+i.edgeOffset),m=Math.round(e+_)):(O&&0>s||"_left"==g&&!w)&&(g="_left",b=Math.round(c-13)/2,M=Math.round(h),v=Math.round(o-(h+i.edgeOffset+5)),m=Math.round(e+_))
|
29 |
+
var x=e+l+i.edgeOffset+c+8>parseInt(t(window).height()+t(window).scrollTop()),I=e+l-(i.edgeOffset+c+8)<0
|
30 |
+
x||"_bottom"==g&&x||"_top"==g&&!I?("_top"==g||"_bottom"==g?g="_top":g+="_top",b=c,m=Math.round(e-(c+5+i.edgeOffset))):(I|("_top"==g&&I)||"_bottom"==g&&!x)&&("_top"==g||"_bottom"==g?g="_bottom":g+="_bottom",b=-12,m=Math.round(e+l+i.edgeOffset)),"_right_top"==g||"_left_top"==g?m+=5:("_right_bottom"==g||"_left_bottom"==g)&&(m-=5),("_left_top"==g||"_left_bottom"==g)&&(v+=5),a.css({"margin-left":M+"px","margin-top":b+"px"}),n.css({"margin-left":v+"px","margin-top":m+"px"}).attr("class","tip"+g),u&&clearTimeout(u),u=setTimeout(function(){n.stop(!0,!0).fadeIn(i.fadeIn)},i.delay)}function o(){i.exit.call(this),u&&clearTimeout(u),n.fadeOut(i.fadeOut)}var f=t(this)
|
31 |
+
if(i.content)var d=i.content
|
32 |
+
else var d=f.attr(i.attribute)
|
33 |
+
if(""!=d){i.content||f.removeAttr(i.attribute)
|
34 |
+
var u=!1
|
35 |
+
"hover"==i.activation?(f.hover(function(){e()},function(){i.keepAlive||o()}),i.keepAlive&&n.hover(function(){},function(){o()})):"focus"==i.activation?f.focus(function(){e()}).blur(function(){o()}):"click"==i.activation&&(f.click(function(){return e(),!1}).hover(function(){},function(){i.keepAlive||o()}),i.keepAlive&&n.hover(function(){},function(){o()}))}})}}(jQuery)
|
assets/js/magnific-popup.js
CHANGED
@@ -1,3 +1,89 @@
|
|
1 |
// Magnific Popup v1.0.0 by Dmitry Semenov
|
2 |
// http://bit.ly/magnific-popup#build=inline+image+retina
|
3 |
-
(function(a){typeof define=="function"&&define.amd?define(["jquery"],a):typeof exports=="object"?a(require("jquery")):a(window.jQuery||window.Zepto)})(function(a){var b="Close",c="BeforeClose",d="AfterClose",e="BeforeAppend",f="MarkupParse",g="Open",h="Change",i="mfp",j="."+i,k="mfp-ready",l="mfp-removing",m="mfp-prevent-close",n,o=function(){},p=!!window.jQuery,q,r=a(window),s,t,u,v,w=function(a,b){n.ev.on(i+a+j,b)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(b,c){n.ev.triggerHandler(i+b,c),n.st.callbacks&&(b=b.charAt(0).toLowerCase()+b.slice(1),n.st.callbacks[b]&&n.st.callbacks[b].apply(n,a.isArray(c)?c:[c]))},z=function(b){if(b!==v||!n.currTemplate.closeBtn)n.currTemplate.closeBtn=a(n.st.closeMarkup.replace("%title%",n.st.tClose)),v=b;return n.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(n=new o,n.init(),a.magnificPopup.instance=n)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(a.transition!==undefined)return!0;while(b.length)if(b.pop()+"Transition"in a)return!0;return!1};o.prototype={constructor:o,init:function(){var b=navigator.appVersion;n.isIE7=b.indexOf("MSIE 7.")!==-1,n.isIE8=b.indexOf("MSIE 8.")!==-1,n.isLowIE=n.isIE7||n.isIE8,n.isAndroid=/android/gi.test(b),n.isIOS=/iphone|ipad|ipod/gi.test(b),n.supportsTransition=B(),n.probablyMobile=n.isAndroid||n.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),s=a(document),n.popupsCache={}},open:function(b){var c;if(b.isObj===!1){n.items=b.items.toArray(),n.index=0;var d=b.items,e;for(c=0;c<d.length;c++){e=d[c],e.parsed&&(e=e.el[0]);if(e===b.el[0]){n.index=c;break}}}else n.items=a.isArray(b.items)?b.items:[b.items],n.index=b.index||0;if(n.isOpen){n.updateItemHTML();return}n.types=[],u="",b.mainEl&&b.mainEl.length?n.ev=b.mainEl.eq(0):n.ev=s,b.key?(n.popupsCache[b.key]||(n.popupsCache[b.key]={}),n.currTemplate=n.popupsCache[b.key]):n.currTemplate={},n.st=a.extend(!0,{},a.magnificPopup.defaults,b),n.fixedContentPos=n.st.fixedContentPos==="auto"?!n.probablyMobile:n.st.fixedContentPos,n.st.modal&&(n.st.closeOnContentClick=!1,n.st.closeOnBgClick=!1,n.st.showCloseBtn=!1,n.st.enableEscapeKey=!1),n.bgOverlay||(n.bgOverlay=x("bg").on("click"+j,function(){n.close()}),n.wrap=x("wrap").attr("tabindex",-1).on("click"+j,function(a){n._checkIfClose(a.target)&&n.close()}),n.container=x("container",n.wrap)),n.contentContainer=x("content"),n.st.preloader&&(n.preloader=x("preloader",n.container,n.st.tLoading));var h=a.magnificPopup.modules;for(c=0;c<h.length;c++){var i=h[c];i=i.charAt(0).toUpperCase()+i.slice(1),n["init"+i].call(n)}y("BeforeOpen"),n.st.showCloseBtn&&(n.st.closeBtnInside?(w(f,function(a,b,c,d){c.close_replaceWith=z(d.type)}),u+=" mfp-close-btn-in"):n.wrap.append(z())),n.st.alignTop&&(u+=" mfp-align-top"),n.fixedContentPos?n.wrap.css({overflow:n.st.overflowY,overflowX:"hidden",overflowY:n.st.overflowY}):n.wrap.css({top:r.scrollTop(),position:"absolute"}),(n.st.fixedBgPos===!1||n.st.fixedBgPos==="auto"&&!n.fixedContentPos)&&n.bgOverlay.css({height:s.height(),position:"absolute"}),n.st.enableEscapeKey&&s.on("keyup"+j,function(a){a.keyCode===27&&n.close()}),r.on("resize"+j,function(){n.updateSize()}),n.st.closeOnContentClick||(u+=" mfp-auto-cursor"),u&&n.wrap.addClass(u);var l=n.wH=r.height(),m={};if(n.fixedContentPos&&n._hasScrollBar(l)){var o=n._getScrollbarSize();o&&(m.marginRight=o)}n.fixedContentPos&&(n.isIE7?a("body, html").css("overflow","hidden"):m.overflow="hidden");var p=n.st.mainClass;return n.isIE7&&(p+=" mfp-ie7"),p&&n._addClassToMFP(p),n.updateItemHTML(),y("BuildControls"),a("html").css(m),n.bgOverlay.add(n.wrap).prependTo(n.st.prependTo||a(document.body)),n._lastFocusedEl=document.activeElement,setTimeout(function(){n.content?(n._addClassToMFP(k),n._setFocus()):n.bgOverlay.addClass(k),s.on("focusin"+j,n._onFocusIn)},16),n.isOpen=!0,n.updateSize(l),y(g),b},close:function(){if(!n.isOpen)return;y(c),n.isOpen=!1,n.st.removalDelay&&!n.isLowIE&&n.supportsTransition?(n._addClassToMFP(l),setTimeout(function(){n._close()},n.st.removalDelay)):n._close()},_close:function(){y(b);var c=l+" "+k+" ";n.bgOverlay.detach(),n.wrap.detach(),n.container.empty(),n.st.mainClass&&(c+=n.st.mainClass+" "),n._removeClassFromMFP(c);if(n.fixedContentPos){var e={marginRight:""};n.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}s.off("keyup"+j+" focusin"+j),n.ev.off(j),n.wrap.attr("class","mfp-wrap").removeAttr("style"),n.bgOverlay.attr("class","mfp-bg"),n.container.attr("class","mfp-container"),n.st.showCloseBtn&&(!n.st.closeBtnInside||n.currTemplate[n.currItem.type]===!0)&&n.currTemplate.closeBtn&&n.currTemplate.closeBtn.detach(),n._lastFocusedEl&&a(n._lastFocusedEl).focus(),n.currItem=null,n.content=null,n.currTemplate=null,n.prevHeight=0,y(d)},updateSize:function(a){if(n.isIOS){var b=document.documentElement.clientWidth/window.innerWidth,c=window.innerHeight*b;n.wrap.css("height",c),n.wH=c}else n.wH=a||r.height();n.fixedContentPos||n.wrap.css("height",n.wH),y("Resize")},updateItemHTML:function(){var b=n.items[n.index];n.contentContainer.detach(),n.content&&n.content.detach(),b.parsed||(b=n.parseEl(n.index));var c=b.type;y("BeforeChange",[n.currItem?n.currItem.type:"",c]),n.currItem=b;if(!n.currTemplate[c]){var d=n.st[c]?n.st[c].markup:!1;y("FirstMarkupParse",d),d?n.currTemplate[c]=a(d):n.currTemplate[c]=!0}t&&t!==b.type&&n.container.removeClass("mfp-"+t+"-holder");var e=n["get"+c.charAt(0).toUpperCase()+c.slice(1)](b,n.currTemplate[c]);n.appendContent(e,c),b.preloaded=!0,y(h,b),t=b.type,n.container.prepend(n.contentContainer),y("AfterChange")},appendContent:function(a,b){n.content=a,a?n.st.showCloseBtn&&n.st.closeBtnInside&&n.currTemplate[b]===!0?n.content.find(".mfp-close").length||n.content.append(z()):n.content=a:n.content="",y(e),n.container.addClass("mfp-"+b+"-holder"),n.contentContainer.append(n.content)},parseEl:function(b){var c=n.items[b],d;c.tagName?c={el:a(c)}:(d=c.type,c={data:c,src:c.src});if(c.el){var e=n.types;for(var f=0;f<e.length;f++)if(c.el.hasClass("mfp-"+e[f])){d=e[f];break}c.src=c.el.attr("data-mfp-src"),c.src||(c.src=c.el.attr("href"))}return c.type=d||n.st.type||"inline",c.index=b,c.parsed=!0,n.items[b]=c,y("ElementParse",c),n.items[b]},addGroup:function(a,b){var c=function(c){c.mfpEl=this,n._openClick(c,a,b)};b||(b={});var d="click.magnificPopup";b.mainEl=a,b.items?(b.isObj=!0,a.off(d).on(d,c)):(b.isObj=!1,b.delegate?a.off(d).on(d,b.delegate,c):(b.items=a,a.off(d).on(d,c)))},_openClick:function(b,c,d){var e=d.midClick!==undefined?d.midClick:a.magnificPopup.defaults.midClick;if(!e&&(b.which===2||b.ctrlKey||b.metaKey))return;var f=d.disableOn!==undefined?d.disableOn:a.magnificPopup.defaults.disableOn;if(f)if(a.isFunction(f)){if(!f.call(n))return!0}else if(r.width()<f)return!0;b.type&&(b.preventDefault(),n.isOpen&&b.stopPropagation()),d.el=a(b.mfpEl),d.delegate&&(d.items=c.find(d.delegate)),n.open(d)},updateStatus:function(a,b){if(n.preloader){q!==a&&n.container.removeClass("mfp-s-"+q),!b&&a==="loading"&&(b=n.st.tLoading);var c={status:a,text:b};y("UpdateStatus",c),a=c.status,b=c.text,n.preloader.html(b),n.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),n.container.addClass("mfp-s-"+a),q=a}},_checkIfClose:function(b){if(a(b).hasClass(m))return;var c=n.st.closeOnContentClick,d=n.st.closeOnBgClick;if(c&&d)return!0;if(!n.content||a(b).hasClass("mfp-close")||n.preloader&&b===n.preloader[0])return!0;if(b!==n.content[0]&&!a.contains(n.content[0],b)){if(d&&a.contains(document,b))return!0}else if(c)return!0;return!1},_addClassToMFP:function(a){n.bgOverlay.addClass(a),n.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),n.wrap.removeClass(a)},_hasScrollBar:function(a){return(n.isIE7?s.height():document.body.scrollHeight)>(a||r.height())},_setFocus:function(){(n.st.focus?n.content.find(n.st.focus).eq(0):n.wrap).focus()},_onFocusIn:function(b){if(b.target!==n.wrap[0]&&!a.contains(n.wrap[0],b.target))return n._setFocus(),!1},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(f,[b,c,d]),a.each(c,function(a,c){if(c===undefined||c===!1)return!0;e=a.split("_");if(e.length>1){var d=b.find(j+"-"+e[0]);if(d.length>0){var f=e[1];f==="replaceWith"?d[0]!==c[0]&&d.replaceWith(c):f==="img"?d.is("img")?d.attr("src",c):d.replaceWith('<img src="'+c+'" class="'+d.attr("class")+'" />'):d.attr(e[1],c)}}else b.find(j+"-"+a).html(c)})},_getScrollbarSize:function(){if(n.scrollbarSize===undefined){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),n.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return n.scrollbarSize}},a.magnificPopup={instance:null,proto:o.prototype,modules:[],open:function(b,c){return A(),b?b=a.extend(!0,{},b):b={},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(b){A();var c=a(this);if(typeof b=="string")if(b==="open"){var d,e=p?c.data("magnificPopup"):c[0].magnificPopup,f=parseInt(arguments[1],10)||0;e.items?d=e.items[f]:(d=c,e.delegate&&(d=d.find(e.delegate)),d=d.eq(f)),n._openClick({mfpEl:d},c,e)}else n.isOpen&&n[b].apply(n,Array.prototype.slice.call(arguments,1));else b=a.extend(!0,{},b),p?c.data("magnificPopup",b):c[0].magnificPopup=b,n.addGroup(c,b);return c};var C="inline",D,E,F,G=function(){F&&(E.after(F.addClass(D)).detach(),F=null)};a.magnificPopup.registerModule(C,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){n.types.push(C),w(b+"."+C,function(){G()})},getInline:function(b,c){G();if(b.src){var d=n.st.inline,e=a(b.src);if(e.length){var f=e[0].parentNode;f&&f.tagName&&(E||(D=d.hiddenClass,E=x(D),D="mfp-"+D),F=e.after(E).detach().removeClass(D)),n.updateStatus("ready")}else n.updateStatus("error",d.tNotFound),e=a("<div>");return b.inlineElement=e,e}return n.updateStatus("ready"),n._parseMarkup(c,{},b),c}}});var H,I=function(b){if(b.data&&b.data.title!==undefined)return b.data.title;var c=n.st.image.titleSrc;if(c){if(a.isFunction(c))return c.call(n,b);if(b.el)return b.el.attr(c)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=n.st.image,d=".image";n.types.push("image"),w(g+d,function(){n.currItem.type==="image"&&c.cursor&&a(document.body).addClass(c.cursor)}),w(b+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),r.off("resize"+j)}),w("Resize"+d,n.resizeImage),n.isLowIE&&w("AfterChange",n.resizeImage)},resizeImage:function(){var a=n.currItem;if(!a||!a.img)return;if(n.st.image.verticalFit){var b=0;n.isLowIE&&(b=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",n.wH-b)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,H&&clearInterval(H),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(n.content&&n.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var b=0,c=a.img[0],d=function(e){H&&clearInterval(H),H=setInterval(function(){if(c.naturalWidth>0){n._onImageHasSize(a);return}b>200&&clearInterval(H),b++,b===3?d(10):b===40?d(50):b===100&&d(500)},e)};d(1)},getImage:function(b,c){var d=0,e=function(){b&&(b.img[0].complete?(b.img.off(".mfploader"),b===n.currItem&&(n._onImageHasSize(b),n.updateStatus("ready")),b.hasSize=!0,b.loaded=!0,y("ImageLoadComplete")):(d++,d<200?setTimeout(e,100):f()))},f=function(){b&&(b.img.off(".mfploader"),b===n.currItem&&(n._onImageHasSize(b),n.updateStatus("error",g.tError.replace("%url%",b.src))),b.hasSize=!0,b.loaded=!0,b.loadError=!0)},g=n.st.image,h=c.find(".mfp-img");if(h.length){var i=document.createElement("img");i.className="mfp-img",b.el&&b.el.find("img").length&&(i.alt=b.el.find("img").attr("alt")),b.img=a(i).on("load.mfploader",e).on("error.mfploader",f),i.src=b.src,h.is("img")&&(b.img=b.img.clone()),i=b.img[0],i.naturalWidth>0?b.hasSize=!0:i.width||(b.hasSize=!1)}return n._parseMarkup(c,{title:I(b),img_replaceWith:b.img},b),n.resizeImage(),b.hasSize?(H&&clearInterval(H),b.loadError?(c.addClass("mfp-loading"),n.updateStatus("error",g.tError.replace("%url%",b.src))):(c.removeClass("mfp-loading"),n.updateStatus("ready")),c):(n.updateStatus("loading"),b.loading=!0,b.hasSize||(b.imgHidden=!0,c.addClass("mfp-loading"),n.findImageSize(b)),c)}}});var J,K=function(){return J===undefined&&(J=document.createElement("p").style.MozTransform!==undefined),J};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a=n.st.zoom,d=".zoom",e;if(!a.enabled||!n.supportsTransition)return;var f=a.duration,g=function(b){var c=b.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+a.duration/1e3+"s "+a.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,c.css(e),c},h=function(){n.content.css("visibility","visible")},i,j;w("BuildControls"+d,function(){if(n._allowZoom()){clearTimeout(i),n.content.css("visibility","hidden"),e=n._getItemToZoom();if(!e){h();return}j=g(e),j.css(n._getOffset()),n.wrap.append(j),i=setTimeout(function(){j.css(n._getOffset(!0)),i=setTimeout(function(){h(),setTimeout(function(){j.remove(),e=j=null,y("ZoomAnimationEnded")},16)},f)},16)}}),w(c+d,function(){if(n._allowZoom()){clearTimeout(i),n.st.removalDelay=f;if(!e){e=n._getItemToZoom();if(!e)return;j=g(e)}j.css(n._getOffset(!0)),n.wrap.append(j),n.content.css("visibility","hidden"),setTimeout(function(){j.css(n._getOffset())},16)}}),w(b+d,function(){n._allowZoom()&&(h(),j&&j.remove(),e=null)})},_allowZoom:function(){return n.currItem.type==="image"},_getItemToZoom:function(){return n.currItem.hasSize?n.currItem.img:!1},_getOffset:function(b){var c;b?c=n.currItem.img:c=n.st.zoom.opener(n.currItem.el||n.currItem);var d=c.offset(),e=parseInt(c.css("padding-top"),10),f=parseInt(c.css("padding-bottom"),10);d.top-=a(window).scrollTop()-e;var g={width:c.width(),height:(p?c.innerHeight():c[0].offsetHeight)-f-e};return K()?g["-moz-transform"]=g.transform="translate("+d.left+"px,"+d.top+"px)":(g.left=d.left,g.top=d.top),g}}});var L="retina";a.magnificPopup.registerModule(L,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=n.st.retina,b=a.ratio;b=isNaN(b)?b():b,b>1&&(w("ImageHasSize."+L,function(a,c){c.img.css({"max-width":c.img[0].naturalWidth/b,width:"100%"})}),w("ElementParse."+L,function(c,d){d.src=a.replaceSrc(d,b)}))}}}}),A()})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
// Magnific Popup v1.0.0 by Dmitry Semenov
|
2 |
// http://bit.ly/magnific-popup#build=inline+image+retina
|
3 |
+
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(e){var t,n,i,o,a,r,s="Close",l="BeforeClose",c="AfterClose",p="BeforeAppend",d="MarkupParse",u="Open",f="Change",m="mfp",g="."+m,v="mfp-ready",h="mfp-removing",C="mfp-prevent-close",y=function(){},w=!!window.jQuery,I=e(window),b=function(e,n){t.ev.on(m+e+g,n)},k=function(t,n,i,o){var a=document.createElement("div")
|
4 |
+
return a.className="mfp-"+t,i&&(a.innerHTML=i),o?n&&n.appendChild(a):(a=e(a),n&&a.appendTo(n)),a},S=function(n,i){t.ev.triggerHandler(m+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},T=function(n){return n===r&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),r=n),t.currTemplate.closeBtn},_=function(){e.magnificPopup.instance||(t=new y,t.init(),e.magnificPopup.instance=t)},E=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"]
|
5 |
+
if(void 0!==e.transition)return!0
|
6 |
+
for(;t.length;)if(t.pop()+"Transition"in e)return!0
|
7 |
+
return!1}
|
8 |
+
y.prototype={constructor:y,init:function(){var n=navigator.appVersion
|
9 |
+
t.isIE7=-1!==n.indexOf("MSIE 7."),t.isIE8=-1!==n.indexOf("MSIE 8."),t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=E(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o
|
10 |
+
if(n.isObj===!1){t.items=n.items.toArray(),t.index=0
|
11 |
+
var r,s=n.items
|
12 |
+
for(o=0;o<s.length;o++)if(r=s[o],r.parsed&&(r=r.el[0]),r===n.el[0]){t.index=o
|
13 |
+
break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0
|
14 |
+
if(t.isOpen)return void t.updateItemHTML()
|
15 |
+
t.types=[],a="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=k("bg").on("click"+g,function(){t.close()}),t.wrap=k("wrap").attr("tabindex",-1).on("click"+g,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=k("container",t.wrap)),t.contentContainer=k("content"),t.st.preloader&&(t.preloader=k("preloader",t.container,t.st.tLoading))
|
16 |
+
var l=e.magnificPopup.modules
|
17 |
+
for(o=0;o<l.length;o++){var c=l[o]
|
18 |
+
c=c.charAt(0).toUpperCase()+c.slice(1),t["init"+c].call(t)}S("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(b(d,function(e,t,n,i){n.close_replaceWith=T(i.type)}),a+=" mfp-close-btn-in"):t.wrap.append(T())),t.st.alignTop&&(a+=" mfp-align-top"),t.wrap.css(t.fixedContentPos?{overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}:{top:I.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup"+g,function(e){27===e.keyCode&&t.close()}),I.on("resize"+g,function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a)
|
19 |
+
var p=t.wH=I.height(),f={}
|
20 |
+
if(t.fixedContentPos&&t._hasScrollBar(p)){var m=t._getScrollbarSize()
|
21 |
+
m&&(f.marginRight=m)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):f.overflow="hidden")
|
22 |
+
var h=t.st.mainClass
|
23 |
+
return t.isIE7&&(h+=" mfp-ie7"),h&&t._addClassToMFP(h),t.updateItemHTML(),S("BuildControls"),e("html").css(f),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(v),t._setFocus()):t.bgOverlay.addClass(v),i.on("focusin"+g,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(p),S(u),n},close:function(){t.isOpen&&(S(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(h),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){S(s)
|
24 |
+
var n=h+" "+v+" "
|
25 |
+
if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""}
|
26 |
+
t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup"+g+" focusin"+g),t.ev.off(g),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),t.st.showCloseBtn&&(!t.st.closeBtnInside||t.currTemplate[t.currItem.type]===!0)&&t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,S(c)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n
|
27 |
+
t.wrap.css("height",i),t.wH=i}else t.wH=e||I.height()
|
28 |
+
t.fixedContentPos||t.wrap.css("height",t.wH),S("Resize")},updateItemHTML:function(){var n=t.items[t.index]
|
29 |
+
t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index))
|
30 |
+
var i=n.type
|
31 |
+
if(S("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var a=t.st[i]?t.st[i].markup:!1
|
32 |
+
S("FirstMarkupParse",a),a?t.currTemplate[i]=e(a):t.currTemplate[i]=!0}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder")
|
33 |
+
var r=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i])
|
34 |
+
t.appendContent(r,i),n.preloaded=!0,S(f,n),o=n.type,t.container.prepend(t.contentContainer),S("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[n]===!0?t.content.find(".mfp-close").length||t.content.append(T()):t.content=e:t.content="",S(p),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n]
|
35 |
+
if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var a=t.types,r=0;r<a.length;r++)if(o.el.hasClass("mfp-"+a[r])){i=a[r]
|
36 |
+
break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,S("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)}
|
37 |
+
n||(n={})
|
38 |
+
var o="click.magnificPopup"
|
39 |
+
n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){var a=void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick
|
40 |
+
if(a||2!==n.which&&!n.ctrlKey&&!n.metaKey){var r=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn
|
41 |
+
if(r)if(e.isFunction(r)){if(!r.call(t))return!0}else if(I.width()<r)return!0
|
42 |
+
n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),!i&&"loading"===e&&(i=t.st.tLoading)
|
43 |
+
var o={status:e,text:i}
|
44 |
+
S("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(C)){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick
|
45 |
+
if(i&&o)return!0
|
46 |
+
if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0
|
47 |
+
if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0
|
48 |
+
return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||I.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){return n.target===t.wrap[0]||e.contains(t.wrap[0],n.target)?void 0:(t._setFocus(),!1)},_parseMarkup:function(t,n,i){var o
|
49 |
+
i.data&&(n=e.extend(i.data,n)),S(d,[t,n,i]),e.each(n,function(e,n){if(void 0===n||n===!1)return!0
|
50 |
+
if(o=e.split("_"),o.length>1){var i=t.find(g+"-"+o[0])
|
51 |
+
if(i.length>0){var a=o[1]
|
52 |
+
"replaceWith"===a?i[0]!==n[0]&&i.replaceWith(n):"img"===a?i.is("img")?i.attr("src",n):i.replaceWith('<img src="'+n+'" class="'+i.attr("class")+'" />'):i.attr(o[1],n)}}else t.find(g+"-"+e).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div")
|
53 |
+
e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:y.prototype,modules:[],open:function(t,n){return _(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(n){_()
|
54 |
+
var i=e(this)
|
55 |
+
if("string"==typeof n)if("open"===n){var o,a=w?i.data("magnificPopup"):i[0].magnificPopup,r=parseInt(arguments[1],10)||0
|
56 |
+
a.items?o=a.items[r]:(o=i,a.delegate&&(o=o.find(a.delegate)),o=o.eq(r)),t._openClick({mfpEl:o},i,a)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1))
|
57 |
+
else n=e.extend(!0,{},n),w?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n)
|
58 |
+
return i}
|
59 |
+
var P,O,x,z="inline",M=function(){x&&(O.after(x.addClass(P)).detach(),x=null)}
|
60 |
+
e.magnificPopup.registerModule(z,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(z),b(s+"."+z,function(){M()})},getInline:function(n,i){if(M(),n.src){var o=t.st.inline,a=e(n.src)
|
61 |
+
if(a.length){var r=a[0].parentNode
|
62 |
+
r&&r.tagName&&(O||(P=o.hiddenClass,O=k(P),P="mfp-"+P),x=a.after(O).detach().removeClass(P)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),a=e("<div>")
|
63 |
+
return n.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}})
|
64 |
+
var B,H=function(n){if(n.data&&void 0!==n.data.title)return n.data.title
|
65 |
+
var i=t.st.image.titleSrc
|
66 |
+
if(i){if(e.isFunction(i))return i.call(t,n)
|
67 |
+
if(n.el)return n.el.attr(i)||""}return""}
|
68 |
+
e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image"
|
69 |
+
t.types.push("image"),b(u+i,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),b(s+i,function(){n.cursor&&e(document.body).removeClass(n.cursor),I.off("resize"+g)}),b("Resize"+i,t.resizeImage),t.isLowIE&&b("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem
|
70 |
+
if(e&&e.img&&t.st.image.verticalFit){var n=0
|
71 |
+
t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,B&&clearInterval(B),e.isCheckingImgSize=!1,S("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(a){B&&clearInterval(B),B=setInterval(function(){return i.naturalWidth>0?void t._onImageHasSize(e):(n>200&&clearInterval(B),n++,3===n?o(10):40===n?o(50):100===n&&o(500),void 0)},a)}
|
72 |
+
o(1)},getImage:function(n,i){var o=0,a=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,S("ImageLoadComplete")):(o++,200>o?setTimeout(a,100):r()))},r=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img")
|
73 |
+
if(l.length){var c=document.createElement("img")
|
74 |
+
c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",a).on("error.mfploader",r),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),c=n.img[0],c.naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:H(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(B&&clearInterval(B),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}})
|
75 |
+
var F,A=function(){return void 0===F&&(F=void 0!==document.createElement("p").style.MozTransform),F}
|
76 |
+
e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom"
|
77 |
+
if(n.enabled&&t.supportsTransition){var o,a,r=n.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition"
|
78 |
+
return o["-webkit-"+a]=o["-moz-"+a]=o["-o-"+a]=o[a]=i,t.css(o),t},p=function(){t.content.css("visibility","visible")}
|
79 |
+
b("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return void p()
|
80 |
+
a=c(e),a.css(t._getOffset()),t.wrap.append(a),o=setTimeout(function(){a.css(t._getOffset(!0)),o=setTimeout(function(){p(),setTimeout(function(){a.remove(),e=a=null,S("ZoomAnimationEnded")},16)},r)},16)}}),b(l+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=r,!e){if(e=t._getItemToZoom(),!e)return
|
81 |
+
a=c(e)}a.css(t._getOffset(!0)),t.wrap.append(a),t.content.css("visibility","hidden"),setTimeout(function(){a.css(t._getOffset())},16)}}),b(s+i,function(){t._allowZoom()&&(p(),a&&a.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return t.currItem.hasSize?t.currItem.img:!1},_getOffset:function(n){var i
|
82 |
+
i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)
|
83 |
+
var o=i.offset(),a=parseInt(i.css("padding-top"),10),r=parseInt(i.css("padding-bottom"),10)
|
84 |
+
o.top-=e(window).scrollTop()-a
|
85 |
+
var s={width:i.width(),height:(w?i.innerHeight():i[0].offsetHeight)-r-a}
|
86 |
+
return A()?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}})
|
87 |
+
var L="retina"
|
88 |
+
e.magnificPopup.registerModule(L,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio
|
89 |
+
n=isNaN(n)?n():n,n>1&&(b("ImageHasSize."+L,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),b("ElementParse."+L,function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),_()})
|
assets/js/main.js
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function load_scripts_and_css(t){var a={}
|
2 |
+
jQuery.each(t.css,function(t,e){a["ig_css_"+t]=1}),jQuery.each(t.scripts,function(t,e){a["ig_script_"+t]=1})
|
3 |
+
var e=function(e){var r=e.target.id||""
|
4 |
+
""!=r&&a.hasOwnProperty(r)&&delete a[r],jQuery.isEmptyObject(a)&&(jQuery(window).trigger("scripts_loaded.icegram"),jQuery(function(){window.icegram=new Icegram,window.icegram.init(t),icegram_timing.end=Date.now()}))}
|
5 |
+
jQuery.each(t.css,function(t,a){jQuery("<link>").attr("type","text/css").attr("rel","stylesheet").attr("id","ig_css_"+t).attr("media","all").appendTo("head").on("load",e).attr("href",a)})
|
6 |
+
var r=t.scripts.shift()
|
7 |
+
jQuery("<script>").attr("type","text/javascript").attr("id","ig_script_0").appendTo("body").on("load",function(a){e(a),jQuery.each(t.scripts,function(t,a){jQuery("<script>").attr("type","text/javascript").attr("id","ig_script_"+(t+1)).appendTo("body").on("load",e).attr("src",a)})}).attr("src",r)}try{var icegram_data,icegram_timing={}
|
8 |
+
icegram_pre_data.post_obj.referral_url=window.location.href,icegram_timing.start=Date.now(),"yes"===icegram_pre_data.post_obj.cache_compatibility?jQuery.ajax({url:icegram_pre_data.ajax_url,type:"POST",async:!0,cache:!1,data:icegram_pre_data.post_obj,dataType:"json",success:function(t){t?(icegram_data=t,load_scripts_and_css(icegram_data)):jQuery(".ig_inline_container:empty").remove()},error:function(t){}}):"undefined"!=typeof icegram_data&&load_scripts_and_css(icegram_data)}catch(e){console.log(e)}
|
classes/class-icegram-campaign.php
CHANGED
@@ -68,8 +68,7 @@ if ( !class_exists( 'Icegram_Campaign' ) ) {
|
|
68 |
}
|
69 |
|
70 |
function is_valid( $options = array() ) {
|
71 |
-
|
72 |
-
if( !empty( $this->_post->ID ) ) {
|
73 |
return apply_filters( 'icegram_campaign_validation', true, $this, $options );
|
74 |
}
|
75 |
return false;
|
@@ -79,6 +78,7 @@ if ( !class_exists( 'Icegram_Campaign' ) ) {
|
|
79 |
if( !$campaign_valid ) {
|
80 |
return $campaign_valid;
|
81 |
}
|
|
|
82 |
if(in_array( 'not_logged_in', $campaign->rules_summary['users'], true ) && !is_user_logged_in() ){
|
83 |
return true;
|
84 |
}
|
@@ -131,7 +131,7 @@ if ( !class_exists( 'Icegram_Campaign' ) ) {
|
|
131 |
return true;
|
132 |
}
|
133 |
}
|
134 |
-
if ( !empty( $campaign->rules_summary['where']['homepage'] ) && $campaign->rules_summary['where']['homepage'] == 'yes' && ( is_home
|
135 |
return true;
|
136 |
}
|
137 |
if ( !empty( $page_id ) ) {
|
68 |
}
|
69 |
|
70 |
function is_valid( $options = array() ) {
|
71 |
+
if( !empty( $this->_post->ID ) && $this->_post->post_status === 'publish') {
|
|
|
72 |
return apply_filters( 'icegram_campaign_validation', true, $this, $options );
|
73 |
}
|
74 |
return false;
|
78 |
if( !$campaign_valid ) {
|
79 |
return $campaign_valid;
|
80 |
}
|
81 |
+
|
82 |
if(in_array( 'not_logged_in', $campaign->rules_summary['users'], true ) && !is_user_logged_in() ){
|
83 |
return true;
|
84 |
}
|
131 |
return true;
|
132 |
}
|
133 |
}
|
134 |
+
if ( !empty( $campaign->rules_summary['where']['homepage'] ) && $campaign->rules_summary['where']['homepage'] == 'yes' && ( $_REQUEST['is_home'] === 'true') ) {
|
135 |
return true;
|
136 |
}
|
137 |
if ( !empty( $page_id ) ) {
|
classes/class-icegram-message-admin.php
CHANGED
@@ -267,21 +267,35 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
|
|
267 |
</a>
|
268 |
</p>
|
269 |
<?php
|
270 |
-
$
|
271 |
-
$
|
272 |
-
$
|
273 |
-
$
|
|
|
|
|
|
|
274 |
|
275 |
-
$
|
276 |
-
|
277 |
-
|
|
|
|
|
|
|
|
|
278 |
</p>
|
279 |
-
<p class="message_row '.implode( ' ', $settings['
|
280 |
-
<label for="
|
281 |
-
<
|
282 |
-
|
|
|
|
|
|
|
283 |
$color_field = apply_filters('icegram_color_fields' , array( 'html' => $color_field_html ,'message_id' => $message_id ,'message_data' => $message_data) );
|
284 |
-
|
|
|
|
|
|
|
|
|
285 |
|
286 |
?>
|
287 |
<?php
|
@@ -301,7 +315,7 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
|
|
301 |
</p>
|
302 |
<?php
|
303 |
// action add for design studio
|
304 |
-
do_action( 'icegram_after_message_body', $message_id, $message_data );
|
305 |
?>
|
306 |
<p class="message_row position <?php echo implode( ' ', $settings['position'] )?>">
|
307 |
<label for="message_position" class="message_label"><strong><?php _e( 'Position', 'icegram' ); ?></strong></label>
|
267 |
</a>
|
268 |
</p>
|
269 |
<?php
|
270 |
+
$text_color = ( !empty( $message_data['text_color'] ) ) ? $message_data['text_color'] : '';
|
271 |
+
$bg_color = ( !empty( $message_data['bg_color'] ) ) ? $message_data['bg_color'] : '';
|
272 |
+
$cta_bg_color = ( !empty( $message_data['cta_bg_color'] ) ) ? $message_data['cta_bg_color'] : '';
|
273 |
+
$cta_text_color = ( !empty( $message_data['cta_text_color'] ) ) ? $message_data['cta_text_color'] : '';
|
274 |
+
$colors_options_check = ( !empty( $message_data['use_theme_defaults'] ) )
|
275 |
+
? checked( $message_data['use_theme_defaults'], 'yes', 0)
|
276 |
+
: ( (!empty($bg_color) || !empty($text_color) || !empty($cta_bg_color) || !empty($cta_text_color)) ? '' : 'checked="checked"' );
|
277 |
|
278 |
+
$show_color_options = (!empty($colors_options_check)) ? 'style="display: none;"' : '';
|
279 |
+
$color_field_html = '<div class="message_colors_options_container" '.$show_color_options.'>
|
280 |
+
<p class="message_row '.implode( ' ', $settings['bg_color']).'">
|
281 |
+
<label for="message_bg_color" class="message_label"> </label>
|
282 |
+
<span class="message_label" style="width:5em !important"> '.__( 'Body', 'icegram' ).'</span>
|
283 |
+
<input type="text" class="message_field color-field" data-color-label="'.__( 'Background', 'icegram' ).'" name="message_data['.$message_id.'][bg_color]" id="message_bg_color" value="'.$bg_color.'" />
|
284 |
+
<input type="text" class="message_field color-field" data-color-label="'.__( 'Text', 'icegram' ).'" name="message_data['.$message_id.'][text_color]" id="message_text_color" value="'.$text_color.'" />
|
285 |
</p>
|
286 |
+
<p class="message_row '.implode( ' ', $settings['label'] ).'">
|
287 |
+
<label for="message_cta_bg_color" class="message_label"> </label>
|
288 |
+
<span class="message_label" style="width:5em !important">'.__( 'Button', 'icegram' ) .'</span>
|
289 |
+
<input type="text" class="message_field color-field" data-color-label="'.__( 'Background', 'icegram' ).'" name="message_data['.$message_id.'][cta_bg_color]" id="message_cta_bg_color" value="'.$cta_bg_color.'" />
|
290 |
+
<input type="text" class="message_field color-field" data-color-label="'.__( 'Text', 'icegram' ).'" name="message_data['.$message_id.'][cta_text_color]" id="message_cta_text_color" value="'.$cta_text_color.'" />
|
291 |
+
</p>
|
292 |
+
</div>';
|
293 |
$color_field = apply_filters('icegram_color_fields' , array( 'html' => $color_field_html ,'message_id' => $message_id ,'message_data' => $message_data) );
|
294 |
+
$colors_options_html = '<p class="message_row '.implode( ' ', $settings['bg_color']).'">
|
295 |
+
<label for="message_use_theme_defaults" class="message_label"><strong>'. __( 'Colors', 'icegram' ).'</strong></label> <label >
|
296 |
+
<input class="show_color_options" type="checkbox" name="message_data['.$message_id.'][use_theme_defaults]" id="message_use_theme_defaults" value="yes" '. $colors_options_check .'/> '. __( 'Use theme\'s default colors', 'icegram') .'</label> '.$color_field['html'].'
|
297 |
+
</p>';
|
298 |
+
echo $colors_options_html;
|
299 |
|
300 |
?>
|
301 |
<?php
|
315 |
</p>
|
316 |
<?php
|
317 |
// action add for design studio
|
318 |
+
//do_action( 'icegram_after_message_body', $message_id, $message_data );
|
319 |
?>
|
320 |
<p class="message_row position <?php echo implode( ' ', $settings['position'] )?>">
|
321 |
<label for="message_position" class="message_label"><strong><?php _e( 'Position', 'icegram' ); ?></strong></label>
|
classes/class-icegram-message-type.php
CHANGED
@@ -78,8 +78,11 @@ abstract class Icegram_Message_Type {
|
|
78 |
'settings' => $this->settings
|
79 |
);
|
80 |
|
81 |
-
$params = apply_filters( 'icegram_message_type_params_'
|
82 |
-
|
|
|
|
|
|
|
83 |
$message_types[ $this->type ] = $params;
|
84 |
return $message_types;
|
85 |
}
|
78 |
'settings' => $this->settings
|
79 |
);
|
80 |
|
81 |
+
$params = apply_filters( 'icegram_message_type_params_'.$this->type ,$params );
|
82 |
+
|
83 |
+
// add ds setting
|
84 |
+
// $params = apply_filters( 'icegram_message_params', $params , $this->type);
|
85 |
+
|
86 |
$message_types[ $this->type ] = $params;
|
87 |
return $message_types;
|
88 |
}
|
icegram.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Icegram
|
4 |
* Plugin URI: http://www.icegram.com/
|
5 |
* Description: All in one solution to inspire, convert and engage your audiences. Action bars, Popup windows, Messengers, Toast notifications and more. Awesome themes and powerful rules.
|
6 |
-
* Version: 1.8.
|
7 |
* Author: icegram
|
8 |
* Author URI: http://www.icegram.com/
|
9 |
*
|
@@ -29,17 +29,19 @@ class Icegram {
|
|
29 |
var $shortcode_instances;
|
30 |
var $available_headlines;
|
31 |
var $mode;
|
|
|
32 |
|
33 |
public static $current_page_id;
|
34 |
|
35 |
function __construct() {
|
36 |
|
37 |
-
$this->version = "1.8.
|
38 |
$this->shortcode_instances = array();
|
39 |
$this->mode = 'local';
|
40 |
$this->plugin_url = untrailingslashit( plugins_url( '/', __FILE__ ) );
|
41 |
$this->plugin_path = untrailingslashit( plugin_dir_path( __FILE__ ) );
|
42 |
$this->include_classes();
|
|
|
43 |
|
44 |
if( is_admin() && current_user_can( 'manage_options' ) ) {
|
45 |
$ig_campaign_admin = Icegram_Campaign_Admin::getInstance();
|
@@ -57,23 +59,28 @@ class Icegram {
|
|
57 |
add_action( 'icegram_settings_after', array( &$this, 'icegram_houskeeping' ) );
|
58 |
add_action( 'admin_notices', array( &$this,'add_admin_notices'));
|
59 |
} else {
|
60 |
-
add_action( '
|
|
|
|
|
61 |
add_action( 'wp_footer', array( &$this, 'display_messages' ) );
|
62 |
-
//add_action( 'wp_head', array( &$this, 'nofollow_noindex' ) );
|
63 |
-
add_action( 'wp_print_scripts', array( &$this, 'identify_current_page' ) );
|
64 |
-
|
65 |
-
add_shortcode( 'icegram', array( &$this, 'execute_shortcode' ) );
|
66 |
-
add_filter( 'icegram_branding_data', array( &$this , 'branding_data_remove' ), 10 );
|
67 |
-
add_filter( 'icegram_get_valid_campaigns_sql', array( &$this , 'append_to_valid_campaigns_sql' ), 10, 2 );
|
68 |
-
// WPML compatibility
|
69 |
-
add_filter( 'icegram_identify_current_page', array( &$this, 'wpml_get_parent_id' ), 10 );
|
70 |
}
|
71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
// common
|
73 |
add_action( 'init', array( &$this, 'register_campaign_post_type' ) );
|
74 |
add_action( 'init', array( &$this, 'register_message_post_type' ) );
|
75 |
|
76 |
if ( defined( 'DOING_AJAX' ) ) {
|
|
|
|
|
|
|
|
|
77 |
add_action( 'wp_ajax_icegram_event_track', array( &$this, 'icegram_event_track' ) );
|
78 |
add_action( 'wp_ajax_nopriv_icegram_event_track', array( &$this, 'icegram_event_track' ) );
|
79 |
add_action( 'wp_ajax_klawoo_subscribe', array( &$this, 'klawoo_subscribe' ) );
|
@@ -494,25 +501,35 @@ class Icegram {
|
|
494 |
$value = str_replace(",", " ", $value);
|
495 |
$html[] = " data-{$key}=\"".htmlentities($value)."\" ";
|
496 |
}
|
|
|
497 |
$html[] = " >"."</div>";
|
498 |
return implode(" ", $html);
|
499 |
}
|
500 |
|
501 |
// Do not index Icegram campaigns / messages...
|
502 |
// Not using currently - made custom post types non public...
|
503 |
-
function
|
504 |
-
$post
|
505 |
-
|
506 |
-
|
507 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
508 |
}
|
509 |
}
|
510 |
|
511 |
function display_messages() {
|
512 |
-
|
513 |
$skip_others = $preview_mode = false;
|
514 |
$campaign_ids = $message_ids = array();
|
515 |
-
|
|
|
516 |
// Pull in message and campaign IDs from shortcodes - if set
|
517 |
if( !empty( $this->shortcode_instances ) ) {
|
518 |
foreach ($this->shortcode_instances as $i => $value) {
|
@@ -525,14 +542,15 @@ class Icegram {
|
|
525 |
$message_ids = array_merge($message_ids, $mids);
|
526 |
}
|
527 |
}
|
528 |
-
if( !empty( $
|
529 |
-
$campaign_ids = array( $
|
530 |
$preview_mode = true;
|
531 |
}
|
532 |
|
533 |
$messages = $this->get_valid_messages( $message_ids, $campaign_ids, $preview_mode, $skip_others );
|
534 |
-
|
535 |
if( empty( $messages ) ) {
|
|
|
536 |
return;
|
537 |
}
|
538 |
|
@@ -587,7 +605,6 @@ class Icegram {
|
|
587 |
|
588 |
if( empty( $messages ) )
|
589 |
return;
|
590 |
-
|
591 |
$icegram_default = apply_filters( 'icegram_branding_data',
|
592 |
array ( 'icon' => $this->plugin_url . '/assets/images/icegram-logo-branding-64-grey.png',
|
593 |
'powered_by_logo' => $this->plugin_url . '/assets/images/icegram-logo-branding-64-grey.png',
|
@@ -605,57 +622,52 @@ class Icegram {
|
|
605 |
}
|
606 |
|
607 |
do_action('icegram_print_js_css_data', $icegram_data);
|
608 |
-
|
609 |
}
|
610 |
|
611 |
function print_js_css_data( $icegram_data ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
612 |
|
|
|
613 |
$types_shown = array();
|
|
|
|
|
614 |
foreach ($icegram_data['messages'] as $key => $message_data) {
|
615 |
$types_shown[] = $message_data['type'];
|
616 |
}
|
617 |
$types_shown = array_unique($types_shown);
|
618 |
|
619 |
-
|
620 |
-
|
621 |
-
|
|
|
|
|
|
|
|
|
|
|
622 |
// Load theme CSS
|
623 |
foreach ($icegram_data['messages'] as $key => $message) {
|
624 |
-
$ver = ( !empty($this->message_types[$message['type']]['version'])) ? $this->message_types[$message['type']]['version'] : $this->version;
|
625 |
if (!empty( $this->message_types[ $message['type'] ]['themes'][ $message['theme'] ]) ) {
|
626 |
$theme = $this->message_types[ $message['type'] ]['themes'][ $message['theme'] ];
|
627 |
-
|
628 |
}else{
|
629 |
$theme_default = $this->message_types[ $message['type']] ['settings']['theme']['default'];
|
630 |
$theme = $this->message_types[ $message['type'] ]['themes'][ $theme_default];
|
631 |
-
|
632 |
$icegram_data['messages'][$key]['theme'] = $theme_default;
|
633 |
}
|
634 |
}
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
wp_localize_script( 'icegram_js', 'icegram_data', $icegram_data );
|
639 |
-
}
|
640 |
-
|
641 |
-
// Load JS and default CSS
|
642 |
-
if (in_array('popup', $types_shown)) {
|
643 |
-
wp_register_script( 'magnific_popup_js', $this->plugin_url . '/assets/js/magnific-popup.js', array ( 'jquery' ), $this->version, true);
|
644 |
-
if( !wp_script_is( 'magnific_popup_js' ) ) {
|
645 |
-
wp_enqueue_script( 'magnific_popup_js' );
|
646 |
-
}
|
647 |
-
wp_enqueue_style( 'magnific_popup_css', $this->plugin_url . '/assets/css/magnific-popup.css', array(), $this->version );
|
648 |
-
}
|
649 |
-
|
650 |
-
foreach ($types_shown as $message_type) {
|
651 |
-
$ver = ( !empty($this->message_types[$message_type]['version'])) ? $this->message_types[$message_type]['version'] : $this->version;
|
652 |
-
wp_register_script( 'icegram_message_type_'.$message_type, $this->message_types[$message_type]['baseurl'] . "main.js" , array ( 'icegram_js' ), $ver, true );
|
653 |
-
wp_enqueue_script( 'icegram_message_type_'.$message_type );
|
654 |
-
wp_enqueue_style( 'icegram_css_'.$message_type, $this->message_types[$message_type]['baseurl'] . 'default.css', array(), $ver );
|
655 |
-
}
|
656 |
-
|
657 |
}
|
658 |
-
|
659 |
// Process
|
660 |
function process_message_body(&$message_data){
|
661 |
$content = $message_data['message'];
|
@@ -721,7 +733,6 @@ class Icegram {
|
|
721 |
|
722 |
function get_message_data( $message_ids = array(), $preview = false ) {
|
723 |
global $wpdb;
|
724 |
-
|
725 |
$message_data = array();
|
726 |
$original_message_id_map = array();
|
727 |
$meta_key = $preview ? 'icegram_message_preview_data' : 'icegram_message_data';
|
@@ -731,6 +742,7 @@ class Icegram {
|
|
731 |
if ( function_exists('icl_object_id') ) {
|
732 |
$wpml_settings = get_option('icl_sitepress_settings');
|
733 |
$original_if_missing = (is_array($wpml_settings) && array_key_exists('show_untranslated_blog_posts', $wpml_settings) && !empty($wpml_settings['show_untranslated_blog_posts']) ) ? true : false;
|
|
|
734 |
foreach ($message_ids as $i=>$id ) {
|
735 |
$translated = icl_object_id( $id, 'ig_message', $original_if_missing );
|
736 |
$message_ids[ $i ] = $translated;
|
@@ -765,10 +777,10 @@ class Icegram {
|
|
765 |
|
766 |
$campaign_ids = array_filter(array_unique( (array) $campaign_ids));
|
767 |
$message_ids = array_filter(array_unique( (array) $message_ids));
|
768 |
-
|
769 |
if ( !empty( $campaign_ids ) ) {
|
770 |
-
$valid_campaigns = $this->get_valid_campaigns( $campaign_ids, true
|
771 |
}
|
|
|
772 |
// When skip_others is true, we won't load campaigns / messages from db
|
773 |
if (!$skip_others && !$preview_mode) {
|
774 |
$campaigns = $this->get_valid_campaigns();
|
@@ -780,6 +792,7 @@ class Icegram {
|
|
780 |
}
|
781 |
}
|
782 |
}
|
|
|
783 |
// Create a map to look up campaign id for a given message
|
784 |
if( !empty( $valid_campaigns ) ) {
|
785 |
foreach ($valid_campaigns as $id => $campaign) {
|
@@ -804,7 +817,7 @@ class Icegram {
|
|
804 |
return array();
|
805 |
}
|
806 |
$valid_messages = $this->get_message_data( $message_ids, $preview_mode );
|
807 |
-
|
808 |
foreach ($valid_messages as $id => $message_data) {
|
809 |
// Remove message if required fields are missing
|
810 |
if (empty($message_data) || empty($message_data['type'])) {
|
@@ -819,7 +832,7 @@ class Icegram {
|
|
819 |
}
|
820 |
$message_data['delay_time'] = 0;
|
821 |
$message_data['retargeting'] = '';
|
822 |
-
$message_data['campaign_id'] = ($preview_mode) ? $
|
823 |
|
824 |
// Pull display time and retargeting rule from campaign if possible
|
825 |
$message_id = (!empty($message_data['original_message_id'])) ? $message_data['original_message_id'] : $id;
|
@@ -844,12 +857,12 @@ class Icegram {
|
|
844 |
$valid_messages[$id] = $message_data;
|
845 |
}
|
846 |
$valid_messages = apply_filters( 'icegram_valid_messages', $valid_messages );
|
|
|
847 |
return $valid_messages;
|
848 |
}
|
849 |
|
850 |
function get_valid_campaigns( $campaign_ids = array(), $skip_page_check = false ,$preview_mode = false) {
|
851 |
global $wpdb;
|
852 |
-
|
853 |
if ( empty( $campaign_ids ) ) {
|
854 |
$sql = "SELECT pm.post_id
|
855 |
FROM {$wpdb->prefix}posts AS p
|
@@ -870,13 +883,14 @@ class Icegram {
|
|
870 |
// Campgain is invalid!
|
871 |
}
|
872 |
}
|
|
|
873 |
return $valid_campaigns;
|
874 |
}
|
875 |
|
876 |
function append_to_valid_campaigns_sql( $sql_params = array(), $options = array() ) {
|
877 |
// Page check conditions
|
|
|
878 |
$pid = Icegram::get_current_page_id();
|
879 |
-
|
880 |
$sql = " AND (
|
881 |
pm.meta_key = 'icegram_campaign_target_rules' AND (
|
882 |
( pm.meta_value LIKE '%%%s%%' )
|
@@ -889,16 +903,15 @@ class Icegram {
|
|
889 |
//local url
|
890 |
$sql .= " OR ( pm.meta_value LIKE '%%%s%%' )";
|
891 |
$sql_params[] = 's:9:"local_url";s:3:"yes";';
|
892 |
-
|
893 |
-
if (is_home() || is_front_page()) {
|
894 |
$sql .= " OR ( pm.meta_value LIKE '%%%s%%' )";
|
895 |
$sql_params[] = 's:8:"homepage";s:3:"yes";';
|
896 |
}
|
897 |
$sql .=" ) )";
|
898 |
-
|
899 |
-
$sql_params[0] .= $sql;
|
900 |
-
|
901 |
//s:9:"logged_in";s:3:"all";
|
|
|
902 |
return $sql_params;
|
903 |
}
|
904 |
|
@@ -1115,7 +1128,6 @@ class Icegram {
|
|
1115 |
}
|
1116 |
|
1117 |
}
|
1118 |
-
|
1119 |
function get_sample_data() {
|
1120 |
|
1121 |
return array(
|
@@ -1241,7 +1253,7 @@ class Icegram {
|
|
1241 |
|
1242 |
function identify_current_page() {
|
1243 |
global $post, $wpdb;
|
1244 |
-
|
1245 |
$obj = get_queried_object();
|
1246 |
$id = 0;
|
1247 |
if( !empty( $obj->has_archive ) ) {
|
@@ -1254,19 +1266,18 @@ class Icegram {
|
|
1254 |
}
|
1255 |
|
1256 |
static function get_current_page_id() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1257 |
return self::$current_page_id;
|
1258 |
}
|
1259 |
static function get_current_page_url() {
|
1260 |
-
$pageURL = '
|
1261 |
-
if( isset($_SERVER["HTTPS"]) ) {
|
1262 |
-
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
|
1263 |
-
}
|
1264 |
-
$pageURL .= "://";
|
1265 |
-
if ($_SERVER["SERVER_PORT"] != "80") {
|
1266 |
-
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
|
1267 |
-
} else {
|
1268 |
-
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
|
1269 |
-
}
|
1270 |
return $pageURL;
|
1271 |
}
|
1272 |
|
3 |
* Plugin Name: Icegram
|
4 |
* Plugin URI: http://www.icegram.com/
|
5 |
* Description: All in one solution to inspire, convert and engage your audiences. Action bars, Popup windows, Messengers, Toast notifications and more. Awesome themes and powerful rules.
|
6 |
+
* Version: 1.8.9
|
7 |
* Author: icegram
|
8 |
* Author URI: http://www.icegram.com/
|
9 |
*
|
29 |
var $shortcode_instances;
|
30 |
var $available_headlines;
|
31 |
var $mode;
|
32 |
+
var $cache_compatibility;
|
33 |
|
34 |
public static $current_page_id;
|
35 |
|
36 |
function __construct() {
|
37 |
|
38 |
+
$this->version = "1.8.9";
|
39 |
$this->shortcode_instances = array();
|
40 |
$this->mode = 'local';
|
41 |
$this->plugin_url = untrailingslashit( plugins_url( '/', __FILE__ ) );
|
42 |
$this->plugin_path = untrailingslashit( plugin_dir_path( __FILE__ ) );
|
43 |
$this->include_classes();
|
44 |
+
$this->cache_compatibility = get_option('icegram_cache_compatibility', 'no');
|
45 |
|
46 |
if( is_admin() && current_user_can( 'manage_options' ) ) {
|
47 |
$ig_campaign_admin = Icegram_Campaign_Admin::getInstance();
|
59 |
add_action( 'icegram_settings_after', array( &$this, 'icegram_houskeeping' ) );
|
60 |
add_action( 'admin_notices', array( &$this,'add_admin_notices'));
|
61 |
} else {
|
62 |
+
add_action( 'wp_footer', array( &$this, 'icegram_load_data' ));
|
63 |
+
}
|
64 |
+
if($this->cache_compatibility === 'no'){
|
65 |
add_action( 'wp_footer', array( &$this, 'display_messages' ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
}
|
67 |
+
add_shortcode( 'icegram', array( &$this, 'execute_shortcode' ) );
|
68 |
+
// WPML compatibility
|
69 |
+
add_filter( 'icegram_identify_current_page', array( &$this, 'wpml_get_parent_id' ), 10 );
|
70 |
+
|
71 |
+
add_filter( 'icegram_branding_data', array( &$this , 'branding_data_remove' ), 10 );
|
72 |
+
add_action( 'wp_enqueue_scripts', array( &$this, 'identify_current_page' ) );
|
73 |
+
add_filter( 'icegram_get_valid_campaigns_sql', array( &$this , 'append_to_valid_campaigns_sql' ), 10, 2 );
|
74 |
+
add_action( 'icegram_print_js_css_data', array( &$this, 'print_js_css_data' ), 10, 1);
|
75 |
// common
|
76 |
add_action( 'init', array( &$this, 'register_campaign_post_type' ) );
|
77 |
add_action( 'init', array( &$this, 'register_message_post_type' ) );
|
78 |
|
79 |
if ( defined( 'DOING_AJAX' ) ) {
|
80 |
+
if($this->cache_compatibility === 'yes'){
|
81 |
+
add_action( 'wp_ajax_display_messages', array( &$this, 'display_messages' ) );
|
82 |
+
add_action( 'wp_ajax_nopriv_display_messages', array( &$this, 'display_messages' ) );
|
83 |
+
}
|
84 |
add_action( 'wp_ajax_icegram_event_track', array( &$this, 'icegram_event_track' ) );
|
85 |
add_action( 'wp_ajax_nopriv_icegram_event_track', array( &$this, 'icegram_event_track' ) );
|
86 |
add_action( 'wp_ajax_klawoo_subscribe', array( &$this, 'klawoo_subscribe' ) );
|
501 |
$value = str_replace(",", " ", $value);
|
502 |
$html[] = " data-{$key}=\"".htmlentities($value)."\" ";
|
503 |
}
|
504 |
+
|
505 |
$html[] = " >"."</div>";
|
506 |
return implode(" ", $html);
|
507 |
}
|
508 |
|
509 |
// Do not index Icegram campaigns / messages...
|
510 |
// Not using currently - made custom post types non public...
|
511 |
+
function icegram_load_data() {
|
512 |
+
global $post;
|
513 |
+
$icegram_pre_data['ajax_url'] = admin_url( 'admin-ajax.php' );
|
514 |
+
$icegram_pre_data['post_obj'] = $_GET;
|
515 |
+
$icegram_pre_data['post_obj']['is_home'] = (is_home() || is_front_page()) ? true : false;
|
516 |
+
$icegram_pre_data['post_obj']['page_id'] = $post->ID;
|
517 |
+
$icegram_pre_data['post_obj']['action'] = 'display_messages';
|
518 |
+
$icegram_pre_data['post_obj']['shortcodes'] = $this->shortcode_instances;
|
519 |
+
$icegram_pre_data['post_obj']['cache_compatibility'] = $this->cache_compatibility;
|
520 |
+
wp_register_script('icegram_main_js' ,$this->plugin_url . '/assets/js/main.js', array ( 'jquery' ), $this->version,true);
|
521 |
+
if( !wp_script_is( 'icegram_main_js' ) ) {
|
522 |
+
wp_enqueue_script( 'icegram_main_js' );
|
523 |
+
wp_localize_script( 'icegram_main_js', 'icegram_pre_data' , $icegram_pre_data);
|
524 |
}
|
525 |
}
|
526 |
|
527 |
function display_messages() {
|
528 |
+
|
529 |
$skip_others = $preview_mode = false;
|
530 |
$campaign_ids = $message_ids = array();
|
531 |
+
|
532 |
+
$this->shortcode_instances = ($this->cache_compatibility == 'yes') ? $_REQUEST['shortcodes'] : $this->shortcode_instances;
|
533 |
// Pull in message and campaign IDs from shortcodes - if set
|
534 |
if( !empty( $this->shortcode_instances ) ) {
|
535 |
foreach ($this->shortcode_instances as $i => $value) {
|
542 |
$message_ids = array_merge($message_ids, $mids);
|
543 |
}
|
544 |
}
|
545 |
+
if( !empty( $_REQUEST['campaign_preview_id'] ) && current_user_can( 'manage_options' ) ) {
|
546 |
+
$campaign_ids = array( $_REQUEST['campaign_preview_id'] );
|
547 |
$preview_mode = true;
|
548 |
}
|
549 |
|
550 |
$messages = $this->get_valid_messages( $message_ids, $campaign_ids, $preview_mode, $skip_others );
|
551 |
+
|
552 |
if( empty( $messages ) ) {
|
553 |
+
//wp_die(0);
|
554 |
return;
|
555 |
}
|
556 |
|
605 |
|
606 |
if( empty( $messages ) )
|
607 |
return;
|
|
|
608 |
$icegram_default = apply_filters( 'icegram_branding_data',
|
609 |
array ( 'icon' => $this->plugin_url . '/assets/images/icegram-logo-branding-64-grey.png',
|
610 |
'powered_by_logo' => $this->plugin_url . '/assets/images/icegram-logo-branding-64-grey.png',
|
622 |
}
|
623 |
|
624 |
do_action('icegram_print_js_css_data', $icegram_data);
|
|
|
625 |
}
|
626 |
|
627 |
function print_js_css_data( $icegram_data ) {
|
628 |
+
$this->collect_js_and_css($icegram_data);
|
629 |
+
if($this->cache_compatibility === 'yes'){
|
630 |
+
echo json_encode($icegram_data);
|
631 |
+
wp_die();
|
632 |
+
}else{
|
633 |
+
wp_localize_script('icegram_main_js' , 'icegram_data' ,$icegram_data);
|
634 |
+
}
|
635 |
+
}
|
636 |
|
637 |
+
function collect_js_and_css(&$icegram_data){
|
638 |
$types_shown = array();
|
639 |
+
$scripts = array();
|
640 |
+
$css = array();
|
641 |
foreach ($icegram_data['messages'] as $key => $message_data) {
|
642 |
$types_shown[] = $message_data['type'];
|
643 |
}
|
644 |
$types_shown = array_unique($types_shown);
|
645 |
|
646 |
+
$scripts[] = $this->plugin_url ."/assets/js/icegram.js";
|
647 |
+
$css[] = $this->plugin_url ."/assets/css/frontend.css";
|
648 |
+
|
649 |
+
// Load JS and default CSS
|
650 |
+
foreach ($types_shown as $message_type) {
|
651 |
+
$scripts[] = $this->message_types[$message_type]['baseurl'] ."main.js";
|
652 |
+
$css[] = $this->message_types[$message_type]['baseurl'] . "default.css";
|
653 |
+
}
|
654 |
// Load theme CSS
|
655 |
foreach ($icegram_data['messages'] as $key => $message) {
|
|
|
656 |
if (!empty( $this->message_types[ $message['type'] ]['themes'][ $message['theme'] ]) ) {
|
657 |
$theme = $this->message_types[ $message['type'] ]['themes'][ $message['theme'] ];
|
658 |
+
$css [] = $theme['baseurl'] . $message['theme'].'.css';
|
659 |
}else{
|
660 |
$theme_default = $this->message_types[ $message['type']] ['settings']['theme']['default'];
|
661 |
$theme = $this->message_types[ $message['type'] ]['themes'][ $theme_default];
|
662 |
+
$css [] = $theme['baseurl'] . $theme_default.'.css';
|
663 |
$icegram_data['messages'][$key]['theme'] = $theme_default;
|
664 |
}
|
665 |
}
|
666 |
+
$icegram_data['scripts'] = apply_filters('add_icegram_script' , $scripts);
|
667 |
+
$icegram_data['css'] = apply_filters('add_icegram_css' , $css);
|
668 |
+
return $icegram_data;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
669 |
}
|
670 |
+
|
671 |
// Process
|
672 |
function process_message_body(&$message_data){
|
673 |
$content = $message_data['message'];
|
733 |
|
734 |
function get_message_data( $message_ids = array(), $preview = false ) {
|
735 |
global $wpdb;
|
|
|
736 |
$message_data = array();
|
737 |
$original_message_id_map = array();
|
738 |
$meta_key = $preview ? 'icegram_message_preview_data' : 'icegram_message_data';
|
742 |
if ( function_exists('icl_object_id') ) {
|
743 |
$wpml_settings = get_option('icl_sitepress_settings');
|
744 |
$original_if_missing = (is_array($wpml_settings) && array_key_exists('show_untranslated_blog_posts', $wpml_settings) && !empty($wpml_settings['show_untranslated_blog_posts']) ) ? true : false;
|
745 |
+
|
746 |
foreach ($message_ids as $i=>$id ) {
|
747 |
$translated = icl_object_id( $id, 'ig_message', $original_if_missing );
|
748 |
$message_ids[ $i ] = $translated;
|
777 |
|
778 |
$campaign_ids = array_filter(array_unique( (array) $campaign_ids));
|
779 |
$message_ids = array_filter(array_unique( (array) $message_ids));
|
|
|
780 |
if ( !empty( $campaign_ids ) ) {
|
781 |
+
$valid_campaigns = $this->get_valid_campaigns( $campaign_ids, true ,$preview_mode);
|
782 |
}
|
783 |
+
|
784 |
// When skip_others is true, we won't load campaigns / messages from db
|
785 |
if (!$skip_others && !$preview_mode) {
|
786 |
$campaigns = $this->get_valid_campaigns();
|
792 |
}
|
793 |
}
|
794 |
}
|
795 |
+
|
796 |
// Create a map to look up campaign id for a given message
|
797 |
if( !empty( $valid_campaigns ) ) {
|
798 |
foreach ($valid_campaigns as $id => $campaign) {
|
817 |
return array();
|
818 |
}
|
819 |
$valid_messages = $this->get_message_data( $message_ids, $preview_mode );
|
820 |
+
|
821 |
foreach ($valid_messages as $id => $message_data) {
|
822 |
// Remove message if required fields are missing
|
823 |
if (empty($message_data) || empty($message_data['type'])) {
|
832 |
}
|
833 |
$message_data['delay_time'] = 0;
|
834 |
$message_data['retargeting'] = '';
|
835 |
+
$message_data['campaign_id'] = ($preview_mode) ? $_REQUEST['campaign_preview_id'] : '';
|
836 |
|
837 |
// Pull display time and retargeting rule from campaign if possible
|
838 |
$message_id = (!empty($message_data['original_message_id'])) ? $message_data['original_message_id'] : $id;
|
857 |
$valid_messages[$id] = $message_data;
|
858 |
}
|
859 |
$valid_messages = apply_filters( 'icegram_valid_messages', $valid_messages );
|
860 |
+
|
861 |
return $valid_messages;
|
862 |
}
|
863 |
|
864 |
function get_valid_campaigns( $campaign_ids = array(), $skip_page_check = false ,$preview_mode = false) {
|
865 |
global $wpdb;
|
|
|
866 |
if ( empty( $campaign_ids ) ) {
|
867 |
$sql = "SELECT pm.post_id
|
868 |
FROM {$wpdb->prefix}posts AS p
|
883 |
// Campgain is invalid!
|
884 |
}
|
885 |
}
|
886 |
+
|
887 |
return $valid_campaigns;
|
888 |
}
|
889 |
|
890 |
function append_to_valid_campaigns_sql( $sql_params = array(), $options = array() ) {
|
891 |
// Page check conditions
|
892 |
+
//$pid = $_GET['page_id'];
|
893 |
$pid = Icegram::get_current_page_id();
|
|
|
894 |
$sql = " AND (
|
895 |
pm.meta_key = 'icegram_campaign_target_rules' AND (
|
896 |
( pm.meta_value LIKE '%%%s%%' )
|
903 |
//local url
|
904 |
$sql .= " OR ( pm.meta_value LIKE '%%%s%%' )";
|
905 |
$sql_params[] = 's:9:"local_url";s:3:"yes";';
|
906 |
+
if (!empty($_REQUEST['is_home']) && $_REQUEST['is_home'] === 'true' ) {
|
|
|
907 |
$sql .= " OR ( pm.meta_value LIKE '%%%s%%' )";
|
908 |
$sql_params[] = 's:8:"homepage";s:3:"yes";';
|
909 |
}
|
910 |
$sql .=" ) )";
|
911 |
+
|
912 |
+
$sql_params[0] .= $sql;
|
|
|
913 |
//s:9:"logged_in";s:3:"all";
|
914 |
+
|
915 |
return $sql_params;
|
916 |
}
|
917 |
|
1128 |
}
|
1129 |
|
1130 |
}
|
|
|
1131 |
function get_sample_data() {
|
1132 |
|
1133 |
return array(
|
1253 |
|
1254 |
function identify_current_page() {
|
1255 |
global $post, $wpdb;
|
1256 |
+
|
1257 |
$obj = get_queried_object();
|
1258 |
$id = 0;
|
1259 |
if( !empty( $obj->has_archive ) ) {
|
1266 |
}
|
1267 |
|
1268 |
static function get_current_page_id() {
|
1269 |
+
global $post;
|
1270 |
+
if (!empty($_REQUEST['page_id']) && is_numeric($_REQUEST['page_id'])) {
|
1271 |
+
$post = get_post($_REQUEST['page_id']);
|
1272 |
+
setup_postdata( $post );
|
1273 |
+
// WPML check
|
1274 |
+
$id = apply_filters('icegram_identify_current_page', $post->ID );
|
1275 |
+
self::$current_page_id = $id;
|
1276 |
+
}
|
1277 |
return self::$current_page_id;
|
1278 |
}
|
1279 |
static function get_current_page_url() {
|
1280 |
+
$pageURL = (!empty($_REQUEST['referral_url'])) ? $_REQUEST['referral_url'] : '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1281 |
return $pageURL;
|
1282 |
}
|
1283 |
|
message-types/action-bar/default.css
CHANGED
@@ -1,135 +1 @@
|
|
1 |
-
.action_bar.ig_container {
|
2 |
-
z-index: 100000;
|
3 |
-
width: 100%;
|
4 |
-
padding: 0;
|
5 |
-
margin: 0;
|
6 |
-
display: none;
|
7 |
-
left: 0;
|
8 |
-
}
|
9 |
-
.action_bar.ig_container.top.ig_show{
|
10 |
-
position: fixed;
|
11 |
-
z-index: 9999999;
|
12 |
-
}
|
13 |
-
|
14 |
-
.action_bar.ig_container.top {
|
15 |
-
top: 0;
|
16 |
-
}
|
17 |
-
|
18 |
-
.action_bar.ig_container.bottom {
|
19 |
-
bottom: 0;
|
20 |
-
}
|
21 |
-
|
22 |
-
.action_bar .ig_content {
|
23 |
-
/*color: #FFF;*/
|
24 |
-
}
|
25 |
-
|
26 |
-
.action_bar.hello .ig_headline {
|
27 |
-
}
|
28 |
-
|
29 |
-
.action_bar .ig_message {
|
30 |
-
line-height: 1.3em;
|
31 |
-
}
|
32 |
-
|
33 |
-
.action_bar img.icon {
|
34 |
-
width: 50px;
|
35 |
-
}
|
36 |
-
|
37 |
-
.action_bar .ig_data {
|
38 |
-
}
|
39 |
-
|
40 |
-
.action_bar .ig_button,
|
41 |
-
.action_bar input[type="submit"],
|
42 |
-
.action_bar input[type="button"] {
|
43 |
-
border-bottom : none;
|
44 |
-
cursor: pointer;
|
45 |
-
}
|
46 |
-
.action_bar .ig_button:active,
|
47 |
-
.action_bar input[type="submit"]:active,
|
48 |
-
.action_bar input[type="button"]:active {
|
49 |
-
border-top : none;
|
50 |
-
}
|
51 |
-
|
52 |
-
.action_bar .ig_close {
|
53 |
-
cursor: pointer;
|
54 |
-
}
|
55 |
-
|
56 |
-
.action_bar .powered_by {
|
57 |
-
vertical-align: top;
|
58 |
-
opacity: .5;
|
59 |
-
display: inline-block;
|
60 |
-
float: left;
|
61 |
-
}
|
62 |
-
|
63 |
-
.action_bar .powered_by img {
|
64 |
-
width: 2em;
|
65 |
-
margin-left: 1em;
|
66 |
-
margin-top: 1em;
|
67 |
-
}
|
68 |
-
|
69 |
-
.action_bar .ig_arrow_block {
|
70 |
-
font-weight: 700;
|
71 |
-
z-index: 1000000;
|
72 |
-
right: 10px;
|
73 |
-
text-align: right;
|
74 |
-
font-size: 20px;
|
75 |
-
cursor: pointer;
|
76 |
-
line-height: 0;
|
77 |
-
padding: 4px !important;
|
78 |
-
float: right;
|
79 |
-
}
|
80 |
-
|
81 |
-
.action_bar .ig_arrow_block span {
|
82 |
-
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
|
83 |
-
filter: alpha(opacity=60);
|
84 |
-
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
|
85 |
-
filter: alpha(opacity=60);
|
86 |
-
opacity: 0.6;
|
87 |
-
}
|
88 |
-
|
89 |
-
.action_bar .ig_arrow_block span:hover {
|
90 |
-
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
|
91 |
-
filter: alpha(opacity=90);
|
92 |
-
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
|
93 |
-
filter: alpha(opacity=90);
|
94 |
-
opacity: 0.9;
|
95 |
-
}
|
96 |
-
.action_bar .rotate {
|
97 |
-
transform:rotate(180deg);
|
98 |
-
-ms-transform:rotate(180deg);
|
99 |
-
-webkit-transform:rotate(180deg);
|
100 |
-
}
|
101 |
-
.action_bar .ig_arrow_block span{
|
102 |
-
cursor: pointer;
|
103 |
-
display: inline-block;
|
104 |
-
padding: 2px;
|
105 |
-
overflow: hidden;
|
106 |
-
}
|
107 |
-
.action_bar.top .ig_arrow_block span , .action_bar.bottom .ig_arrow_block span {
|
108 |
-
background-image: url(../../assets/images/arrows-sprite.png);
|
109 |
-
background-repeat: no-repeat;
|
110 |
-
width: 28px;
|
111 |
-
height: 28px;
|
112 |
-
}
|
113 |
-
|
114 |
-
.action_bar.top .ig_arrow_block span {
|
115 |
-
background-position: -2px -5px;
|
116 |
-
}
|
117 |
-
.action_bar.bottom .ig_arrow_block span {
|
118 |
-
background-position: -4px -5px;
|
119 |
-
}
|
120 |
-
|
121 |
-
div.icegram .action_bar form {
|
122 |
-
margin: 0;
|
123 |
-
padding: 0;
|
124 |
-
}
|
125 |
-
div.icegram .action_bar input, div.icegram .action_bar label {
|
126 |
-
display: inline-block;
|
127 |
-
}
|
128 |
-
/* iPhone 4 ----------- */
|
129 |
-
@media
|
130 |
-
only screen and (-webkit-min-device-pixel-ratio : 1.5),
|
131 |
-
only screen and (min-device-pixel-ratio : 1.5) {
|
132 |
-
.icegram .action_bar .ig_button{
|
133 |
-
margin: .4em !important;
|
134 |
-
}
|
135 |
-
}
|
1 |
+
.action_bar.ig_container{z-index:100000;width:100%;padding:0;margin:0;display:none;left:0}.action_bar.ig_container.top.ig_show{position:fixed;z-index:9999999}.action_bar.ig_container.top{top:0}.action_bar.ig_container.bottom{bottom:0}.action_bar .ig_content{}.action_bar.hello .ig_headline{}.action_bar .ig_message{line-height:1.3em}.action_bar img.icon{width:50px}.action_bar .ig_data{}.action_bar .ig_button,.action_bar input[type="submit"],.action_bar input[type="button"]{border-bottom:none;cursor:pointer}.action_bar .ig_button:active,.action_bar input[type="submit"]:active,.action_bar input[type="button"]:active{border-top:none}.action_bar .ig_close{cursor:pointer}.action_bar .powered_by{vertical-align:top;opacity:.5;display:inline-block;float:left}.action_bar .powered_by img{width:2em;margin-left:1em;margin-top:1em}.action_bar .ig_arrow_block{font-weight:700;z-index:1000000;right:10px;text-align:right;font-size:20px;cursor:pointer;line-height:0;padding:4px!important;float:right}.action_bar .ig_arrow_block span{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";filter:alpha(opacity=60);-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";filter:alpha(opacity=60);opacity:0.6}.action_bar .ig_arrow_block span:hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";filter:alpha(opacity=90);-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";filter:alpha(opacity=90);opacity:0.9}.action_bar .rotate{transform:rotate(180deg);-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg)}.action_bar .ig_arrow_block span{cursor:pointer;display:inline-block;padding:2px;overflow:hidden}.action_bar.top .ig_arrow_block span,.action_bar.bottom .ig_arrow_block span{background-image:url(../../assets/images/arrows-sprite.png);background-repeat:no-repeat;width:28px;height:28px}.action_bar.top .ig_arrow_block span{background-position:-2px -5px}.action_bar.bottom .ig_arrow_block span{background-position:-4px -5px}div.icegram .action_bar form{margin:0;padding:0}div.icegram .action_bar input,div.icegram .action_bar label{display:inline-block}@mediaonly screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.icegram .action_bar .ig_button{margin:.4em!important}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/action-bar/main.js
CHANGED
@@ -1,168 +1,16 @@
|
|
1 |
/**
|
2 |
* Icegram Message Type - Action_Bar
|
3 |
**/
|
4 |
-
function Icegram_Message_Type_Action_Bar( data )
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
'</div>'+
|
18 |
-
'<div>'+
|
19 |
-
'<div class="ig_close"></div>'+
|
20 |
-
'</div>'+
|
21 |
-
'<div class="ig_data">'+
|
22 |
-
'<div class="ig_headline">{{=headline}}</div>'+
|
23 |
-
'<div class="ig_message">{{=message}}</div>'+
|
24 |
-
'</div>'+
|
25 |
-
'<div class="ig_button">{{=label}}</div>'+
|
26 |
-
'</div>'+
|
27 |
-
'</div>'+
|
28 |
-
'</div>';
|
29 |
-
};
|
30 |
-
|
31 |
-
Icegram_Message_Type_Action_Bar.prototype.post_render = function ( ) {
|
32 |
-
this.el.find('.ig_arrow_block').css('background-color', this.data.bg_color);
|
33 |
-
if( this.data.theme == 'hello' ) {
|
34 |
-
var message_button = this.el.find('.ig_button');
|
35 |
-
this.el.find('.ig_data').append(message_button);
|
36 |
-
// Temp Fix for verticle alignment of element in Hello Theme
|
37 |
-
if(this.el.find('.ig_embed_form').get(0)){
|
38 |
-
this.el.find('.ig_data').addClass('ig_valign_form_fix');
|
39 |
-
}
|
40 |
-
}
|
41 |
-
};
|
42 |
-
|
43 |
-
Icegram_Message_Type_Action_Bar.prototype.set_position = function ( ) {
|
44 |
-
switch(this.data.position) {
|
45 |
-
case "21":
|
46 |
-
this.el.addClass('bottom');
|
47 |
-
this.el.css('position', 'fixed');
|
48 |
-
break;
|
49 |
-
case "01":
|
50 |
-
default:
|
51 |
-
this.el.addClass('top');
|
52 |
-
break;
|
53 |
-
}
|
54 |
-
|
55 |
-
};
|
56 |
-
|
57 |
-
Icegram_Message_Type_Action_Bar.prototype.is_visible = function ( ) {
|
58 |
-
return this.el.find('.ig_arrow_block').hasClass('open');
|
59 |
-
};
|
60 |
-
|
61 |
-
Icegram_Message_Type_Action_Bar.prototype.show = function ( options, silent ) {
|
62 |
-
if ( this.is_visible() ) return; //TODO:: we are not hiding action bar we are sliding up with css need to check
|
63 |
-
var anim_delay = silent !== true ? 1000 : 0;
|
64 |
-
switch(this.data.position) {
|
65 |
-
case "21":
|
66 |
-
var self = this;
|
67 |
-
this.el.delay(this.data.delay_time).animate({
|
68 |
-
bottom: 0,
|
69 |
-
marginBottom: -this.el.outerHeight()
|
70 |
-
|
71 |
-
}, 0, "linear", function() {
|
72 |
-
self.el.show();
|
73 |
-
self.el.addClass('ig_show').removeClass('ig_hide');
|
74 |
-
self.el.find('.ig_arrow').show();
|
75 |
-
self.el.find('.ig_arrow_block').addClass('open').removeClass('rotate').removeClass('border').css('position', 'initial');
|
76 |
-
});
|
77 |
-
this.el.animate({
|
78 |
-
marginBottom: 0
|
79 |
-
}, 300);
|
80 |
-
break;
|
81 |
-
case "01":
|
82 |
-
default:
|
83 |
-
var close_block = this.el.parent().find('.ig_arrow_block');
|
84 |
-
var message_template = this.el.parent();
|
85 |
-
this.el.parent().find('.ig_arrow_block').remove();
|
86 |
-
this.el.parent().find('.ig_content').prepend(close_block);
|
87 |
-
jQuery('body').prepend(message_template);
|
88 |
-
|
89 |
-
this.el.find('.ig_arrow').hide();
|
90 |
-
this.el.find('.ig_arrow_block').addClass('open').removeClass('border').css('position', 'initial');
|
91 |
-
|
92 |
-
var self = this;
|
93 |
-
this.el.delay(this.data.delay_time).animate({
|
94 |
-
marginTop: -this.el.outerHeight()
|
95 |
-
}, 0, "linear", function() {
|
96 |
-
self.el.show();
|
97 |
-
self.el.addClass('ig_show').removeClass('ig_hide');
|
98 |
-
self.el.find('.ig_arrow').show();
|
99 |
-
self.el.find('.ig_arrow_block').addClass('open').addClass('rotate').removeClass('border').css('position', 'initial');
|
100 |
-
self.el.find('.ig_arrow_block').css('background-color', '');
|
101 |
-
});
|
102 |
-
this.el.animate({
|
103 |
-
marginTop: 0
|
104 |
-
}, 300);
|
105 |
-
//action bar
|
106 |
-
break;
|
107 |
-
}
|
108 |
-
silent !== true && this.track( 'shown' );
|
109 |
-
};
|
110 |
-
|
111 |
-
Icegram_Message_Type_Action_Bar.prototype.add_powered_by = function ( pb ) {
|
112 |
-
if( this.data.theme != 'air-mail' ) {
|
113 |
-
this.el.find('.ig_content').before('<div class="powered_by" ><a href="'+pb.link+'" target="_blank"><img src="'+pb.logo+'" title="'+pb.text+'"/></a></div>');
|
114 |
-
} else {
|
115 |
-
this.el.find('.ig_content').prepend('<div class="powered_by" ><a href="'+pb.link+'" target="_blank"><img src="'+pb.logo+'" title="'+pb.text+'"/></a></div>');
|
116 |
-
}
|
117 |
-
};
|
118 |
-
|
119 |
-
Icegram_Message_Type_Action_Bar.prototype.hide = function ( options, silent ) {
|
120 |
-
if ( !this.is_visible() ) return; //TODO:: need to check this this is not workig for action bar
|
121 |
-
var self = this;
|
122 |
-
var anim_delay = silent !== true ? 1000 : 0;
|
123 |
-
switch(this.data.position) {
|
124 |
-
case "21":
|
125 |
-
this.el.animate({
|
126 |
-
marginBottom: -this.el.outerHeight()
|
127 |
-
}, 300, "linear", function() {
|
128 |
-
self.el.find('.ig_arrow').show();
|
129 |
-
self.el.addClass('ig_hide').removeClass('ig_show');
|
130 |
-
self.el.find('.ig_arrow_block').removeClass('open').addClass('border').addClass('rotate').css({
|
131 |
-
'position': 'fixed',
|
132 |
-
'bottom': '0'
|
133 |
-
});
|
134 |
-
});
|
135 |
-
break;
|
136 |
-
case "01":
|
137 |
-
default:
|
138 |
-
this.el.animate({
|
139 |
-
marginTop: -this.el.outerHeight()
|
140 |
-
}, 300, "linear", function() {
|
141 |
-
self.el.find('.ig_arrow_block').css('background-color', self.data.bg_color);
|
142 |
-
self.el.find('.ig_arrow_block').css('margin-top', '0' );
|
143 |
-
self.el.find('.ig_arrow').show();
|
144 |
-
self.el.addClass('ig_hide').removeClass('ig_show');
|
145 |
-
self.el.find('.ig_arrow_block').removeClass('open').removeClass('rotate').addClass('border').css({
|
146 |
-
'position': 'fixed',
|
147 |
-
'top': '0'
|
148 |
-
});
|
149 |
-
});
|
150 |
-
break;
|
151 |
-
}
|
152 |
-
silent !== true && this.track( 'closed' );
|
153 |
-
};
|
154 |
-
|
155 |
-
|
156 |
-
Icegram_Message_Type_Action_Bar.prototype.on_click = function ( e ) {
|
157 |
-
e.data = e.data || { self: this };
|
158 |
-
// Clicked on close button
|
159 |
-
if (jQuery(e.target).filter('.open,.open span.ig_arrow,.ig_close').length) {
|
160 |
-
e.data.self.hide();
|
161 |
-
return;
|
162 |
-
}else if(jQuery(e.target).filter('.border,.border span.ig_arrow').length){
|
163 |
-
e.data.self.show();
|
164 |
-
return;
|
165 |
-
}
|
166 |
-
// Now let the parent handle the rest...
|
167 |
-
Icegram_Message_Type.prototype.on_click.apply(this, arguments);
|
168 |
-
};
|
1 |
/**
|
2 |
* Icegram Message Type - Action_Bar
|
3 |
**/
|
4 |
+
function Icegram_Message_Type_Action_Bar(e){Icegram_Message_Type.apply(this,arguments)}Icegram_Message_Type_Action_Bar.prototype=Object.create(Icegram_Message_Type.prototype),Icegram_Message_Type_Action_Bar.prototype.constructor=Icegram_Message_Type_Action_Bar,Icegram_Message_Type_Action_Bar.prototype.get_template_default=function(){return'<div class="icegram action_bar_{{=id}}" ><div class="action_bar ig_container {{=theme}}" id="icegram_message_{{=id}}"><div class="ig_content ig_clear"><div class="ig_arrow_block" id="action_bar_close_{{=id}}"><span class="ig_arrow"></span></div><div><div class="ig_close"></div></div><div class="ig_data"><div class="ig_headline">{{=headline}}</div><div class="ig_message">{{=message}}</div></div><div class="ig_button">{{=label}}</div></div></div></div>'},Icegram_Message_Type_Action_Bar.prototype.post_render=function(){if((void 0==this.data.use_theme_defaults||"yes"!=this.data.use_theme_defaults)&&void 0!=this.data.bg_color&&""!=this.data.bg_color&&this.el.find(".ig_arrow_block").css("background-color",this.data.bg_color),"hello"==this.data.theme){var e=this.el.find(".ig_button")
|
5 |
+
this.el.find(".ig_data").append(e),this.el.find(".ig_embed_form").get(0)&&this.el.find(".ig_data").addClass("ig_valign_form_fix")}},Icegram_Message_Type_Action_Bar.prototype.set_position=function(){switch(this.data.position){case"21":this.el.addClass("bottom"),this.el.css("position","fixed")
|
6 |
+
break
|
7 |
+
case"01":default:this.el.addClass("top")}},Icegram_Message_Type_Action_Bar.prototype.is_visible=function(){return this.el.find(".ig_arrow_block").hasClass("open")},Icegram_Message_Type_Action_Bar.prototype.show=function(e,i){if(!this.is_visible()){switch(this.data.position){case"21":var a=this
|
8 |
+
this.el.delay(this.data.delay_time).animate({bottom:0,marginBottom:-this.el.outerHeight()},0,"linear",function(){a.el.show(),a.el.addClass("ig_show").removeClass("ig_hide"),a.el.find(".ig_arrow").show(),a.el.find(".ig_arrow_block").addClass("open").removeClass("rotate").removeClass("border").css("position","initial")}),this.el.animate({marginBottom:0},300)
|
9 |
+
break
|
10 |
+
case"01":default:var t=this.el.parent().find(".ig_arrow_block"),s=this.el.parent()
|
11 |
+
this.el.parent().find(".ig_arrow_block").remove(),this.el.parent().find(".ig_content").prepend(t),jQuery("body").prepend(s),this.el.find(".ig_arrow").hide(),this.el.find(".ig_arrow_block").addClass("open").removeClass("border").css("position","initial")
|
12 |
+
var a=this
|
13 |
+
this.el.delay(this.data.delay_time).animate({marginTop:-this.el.outerHeight()},0,"linear",function(){a.el.show(),a.el.addClass("ig_show").removeClass("ig_hide"),a.el.find(".ig_arrow").show(),a.el.find(".ig_arrow_block").addClass("open").addClass("rotate").removeClass("border").css("position","initial"),a.el.find(".ig_arrow_block").css("background-color","")}),this.el.animate({marginTop:0},300)}i!==!0&&this.track("shown")}},Icegram_Message_Type_Action_Bar.prototype.add_powered_by=function(e){"air-mail"!=this.data.theme?this.el.find(".ig_content").before('<div class="powered_by" ><a href="'+e.link+'" target="_blank"><img src="'+e.logo+'" title="'+e.text+'"/></a></div>'):this.el.find(".ig_content").prepend('<div class="powered_by" ><a href="'+e.link+'" target="_blank"><img src="'+e.logo+'" title="'+e.text+'"/></a></div>')},Icegram_Message_Type_Action_Bar.prototype.hide=function(e,i){if(this.is_visible()){var a=this
|
14 |
+
switch(this.data.position){case"21":this.el.animate({marginBottom:-this.el.outerHeight()},300,"linear",function(){a.el.find(".ig_arrow").show(),a.el.addClass("ig_hide").removeClass("ig_show"),a.el.find(".ig_arrow_block").removeClass("open").addClass("border").addClass("rotate").css({position:"fixed",bottom:"0"})})
|
15 |
+
break
|
16 |
+
case"01":default:this.el.animate({marginTop:-this.el.outerHeight()},300,"linear",function(){(void 0==a.data.use_theme_defaults||"yes"!=a.data.use_theme_defaults)&&void 0!=a.data.bg_color&&""!=a.data.bg_color&&a.el.find(".ig_arrow_block").css("background-color",a.data.bg_color),a.el.find(".ig_arrow_block").css("margin-top","0"),a.el.find(".ig_arrow").show(),a.el.addClass("ig_hide").removeClass("ig_show"),a.el.find(".ig_arrow_block").removeClass("open").removeClass("rotate").addClass("border").css({position:"fixed",top:"0"})})}i!==!0&&this.track("closed")}},Icegram_Message_Type_Action_Bar.prototype.on_click=function(e){return e.data=e.data||{self:this},jQuery(e.target).filter(".open,.open span.ig_arrow,.ig_close").length?void e.data.self.hide():jQuery(e.target).filter(".border,.border span.ig_arrow").length?void e.data.self.show():void Icegram_Message_Type.prototype.on_click.apply(this,arguments)}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/action-bar/main.php
CHANGED
@@ -17,8 +17,8 @@ class Icegram_Message_Type_Action_Bar extends Icegram_Message_Type {
|
|
17 |
$this->settings['position']['values'] = array( '01', '21' );
|
18 |
$this->settings['position']['default'] = '01';
|
19 |
$this->settings['theme']['default'] = 'hello';
|
20 |
-
$this->settings['bg_color']['default'] = '
|
21 |
-
$this->settings['text_color']['default'] = '
|
22 |
unset ( $this->settings['animation'],
|
23 |
$this->settings['icon']
|
24 |
);
|
17 |
$this->settings['position']['values'] = array( '01', '21' );
|
18 |
$this->settings['position']['default'] = '01';
|
19 |
$this->settings['theme']['default'] = 'hello';
|
20 |
+
$this->settings['bg_color']['default'] = ''; //#eb593c
|
21 |
+
$this->settings['text_color']['default'] = ''; //#ffffff
|
22 |
unset ( $this->settings['animation'],
|
23 |
$this->settings['icon']
|
24 |
);
|
message-types/action-bar/themes/air-mail.css
CHANGED
@@ -1,104 +1 @@
|
|
1 |
-
.action_bar.air-mail.ig_container {
|
2 |
-
background-color: #F2F2F2;
|
3 |
-
color: hsl(0, 0%, 44%);
|
4 |
-
/*-webkit-background-clip: padding-box;*/
|
5 |
-
-moz-border-image: -moz-repeating-linear-gradient(45deg, #b37b7a, #b37b7a 10px, #F2F2F2 10px, #F2F2F2 20px, #7897ba 20px, #7897ba 30px, #F2F2F2 30px, #F2F2F2 40px) 8 round;
|
6 |
-
-webkit-border-image: -webkit-repeating-linear-gradient(45deg, #b37b7a, #b37b7a 10px, #F2F2F2 10px, #F2F2F2 20px, #7897ba 20px, #7897ba 30px, #F2F2F2 30px, #F2F2F2 40px) 8 round;
|
7 |
-
-o-border-image: -o-repeating-linear-gradient(45deg, #b37b7a, #b37b7a 10px, #F2F2F2 10px, #F2F2F2 20px, #7897ba 20px, #7897ba 30px, #F2F2F2 30px, #F2F2F2 40px) 8 round;
|
8 |
-
border-image: repeating-linear-gradient(45deg, #b37b7a, #b37b7a 10px, #F2F2F2 10px, #F2F2F2 20px, #7897ba 20px, #7897ba 30px, #F2F2F2 30px, #F2F2F2 40px) 8 round;
|
9 |
-
}
|
10 |
-
|
11 |
-
.action_bar.air-mail.ig_container.top {
|
12 |
-
border-width: 0 0 8px 0;
|
13 |
-
}
|
14 |
-
|
15 |
-
.action_bar.air-mail.ig_container.bottom {
|
16 |
-
border-width: 8px 0 0 0;
|
17 |
-
}
|
18 |
-
|
19 |
-
.action_bar.air-mail .ig_content {
|
20 |
-
position: relative;
|
21 |
-
/*background: #F2F2F2;*/
|
22 |
-
padding: 1em 1em .25em 1em;
|
23 |
-
}
|
24 |
-
|
25 |
-
.action_bar.air-mail .ig_headline {
|
26 |
-
font-size: 1.3em;
|
27 |
-
font-weight: 700;
|
28 |
-
line-height: 1.2em;
|
29 |
-
padding: 0 10px;
|
30 |
-
}
|
31 |
-
|
32 |
-
.action_bar.air-mail .ig_message {
|
33 |
-
line-height: 1.2em;
|
34 |
-
padding: 5px 10px;
|
35 |
-
}
|
36 |
-
|
37 |
-
.action_bar.air-mail img.icon {
|
38 |
-
width: 50px;
|
39 |
-
}
|
40 |
-
|
41 |
-
.action_bar.air-mail .ig_button{
|
42 |
-
float: right;
|
43 |
-
margin-right: 1em !important;
|
44 |
-
}
|
45 |
-
|
46 |
-
.action_bar.air-mail input[type="submit"],
|
47 |
-
.action_bar.air-mail input[type="button"],
|
48 |
-
.action_bar.air-mail .ig_button{
|
49 |
-
background: hsl(6, 78%, 57%);
|
50 |
-
color: hsl(0, 0%, 100%);
|
51 |
-
-moz-border-radius: 5px;
|
52 |
-
-webkit-border-radius: 5px;
|
53 |
-
border-radius: 5px;
|
54 |
-
border-bottom: 3px solid hsl(6, 63%, 46%);
|
55 |
-
text-transform: uppercase;
|
56 |
-
font-family: "Open Sans", sans-serif;
|
57 |
-
font-weight: 600;
|
58 |
-
text-align: center;
|
59 |
-
margin: 0 auto;
|
60 |
-
display: inline-block;
|
61 |
-
padding: .5em 2em;
|
62 |
-
|
63 |
-
}
|
64 |
-
|
65 |
-
.action_bar.air-mail input[type="submit"]:hover,
|
66 |
-
.action_bar.air-mail input[type="button"]:hover,
|
67 |
-
.action_bar.air-mail .ig_button:hover{
|
68 |
-
margin-top: -3px;
|
69 |
-
border-bottom: 6px solid #c0392b;
|
70 |
-
}
|
71 |
-
|
72 |
-
.action_bar.air-mail input[type="submit"]:active,
|
73 |
-
.action_bar.air-mail input[type="button"]:active,
|
74 |
-
.action_bar.air-mail .ig_button:active{
|
75 |
-
}
|
76 |
-
|
77 |
-
.action_bar.air-mail .ig_data {
|
78 |
-
max-width: 75%;
|
79 |
-
display: inline-block;
|
80 |
-
float: left;
|
81 |
-
}
|
82 |
-
|
83 |
-
.action_bar.air-mail .ig_close {
|
84 |
-
background: url(../images/chosen-sprite.png) no-repeat -43px 0;
|
85 |
-
height: 10px;
|
86 |
-
width: 10px;
|
87 |
-
-moz-box-sizing: content-box;
|
88 |
-
box-sizing: content-box;
|
89 |
-
position: absolute !important;
|
90 |
-
top: 7px;
|
91 |
-
right: 7px;
|
92 |
-
zoom: 1.3;
|
93 |
-
}
|
94 |
-
|
95 |
-
.action_bar.air-mail .ig_close:hover {
|
96 |
-
background: url(../images/chosen-sprite.png) no-repeat -43px -11px;
|
97 |
-
}
|
98 |
-
|
99 |
-
.action_bar.air-mail .ig_arrow_block {
|
100 |
-
display: none;
|
101 |
-
}
|
102 |
-
.action_bar.air-mail .powered_by img {
|
103 |
-
margin: 0 !important;
|
104 |
-
}
|
1 |
+
.action_bar.air-mail.ig_container{background-color:#F2F2F2;color:hsl(0,0%,44%);-moz-border-image:-moz-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;-webkit-border-image:-webkit-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;-o-border-image:-o-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;border-image:repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round}.action_bar.air-mail.ig_container.top{border-width:0 0 8px 0}.action_bar.air-mail.ig_container.bottom{border-width:8px 0 0 0}.action_bar.air-mail .ig_content{position:relative;padding:1em 1em .25em 1em}.action_bar.air-mail .ig_headline{font-size:1.3em;font-weight:700;line-height:1.2em;padding:0 10px}.action_bar.air-mail .ig_message{line-height:1.2em;padding:5px 10px}.action_bar.air-mail img.icon{width:50px}.action_bar.air-mail .ig_button{float:right;margin-right:1em!important}.action_bar.air-mail input[type="submit"],.action_bar.air-mail input[type="button"],.action_bar.air-mail .ig_button{background:hsl(6,78%,57%);color:hsl(0,0%,100%);-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;border-bottom:3px solid hsl(6,63%,46%);text-transform:uppercase;font-family:"Open Sans",sans-serif;font-weight:600;text-align:center;margin:0 auto;display:inline-block;padding:.5em 2em}.action_bar.air-mail input[type="submit"]:hover,.action_bar.air-mail input[type="button"]:hover,.action_bar.air-mail .ig_button:hover{margin-top:-3px;border-bottom:6px solid #c0392b}.action_bar.air-mail input[type="submit"]:active,.action_bar.air-mail input[type="button"]:active,.action_bar.air-mail .ig_button:active{}.action_bar.air-mail .ig_data{max-width:75%;display:inline-block;float:left}.action_bar.air-mail .ig_close{background:url(../images/chosen-sprite.png) no-repeat -43px 0;height:10px;width:10px;-moz-box-sizing:content-box;box-sizing:content-box;position:absolute!important;top:7px;right:7px;zoom:1.3}.action_bar.air-mail .ig_close:hover{background:url(../images/chosen-sprite.png) no-repeat -43px -11px}.action_bar.air-mail .ig_arrow_block{display:none}.action_bar.air-mail .powered_by img{margin:0!important}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/action-bar/themes/bold.css
CHANGED
@@ -1,88 +1 @@
|
|
1 |
-
.action_bar.bold.ig_container {
|
2 |
-
}
|
3 |
-
|
4 |
-
.action_bar.bold.ig_container.top {
|
5 |
-
border-bottom: solid 3px #f3eeee;
|
6 |
-
-moz-box-shadow: 0 -6px 16px 7px #000;
|
7 |
-
-webkit-box-shadow: 0 -6px 16px 7px #000;
|
8 |
-
box-shadow: 0 -6px 16px 7px #000;
|
9 |
-
}
|
10 |
-
|
11 |
-
.action_bar.bold.ig_container.bottom {
|
12 |
-
border-top: solid 3px #f3eeee;
|
13 |
-
-moz-box-shadow: 0 8px 23px 7px #000;
|
14 |
-
-webkit-box-shadow: 0 8px 23px 7px #000;
|
15 |
-
box-shadow: 0 8px 23px 7px #000;
|
16 |
-
}
|
17 |
-
|
18 |
-
.action_bar.bold .ig_content {
|
19 |
-
padding: 1em 0 0 1em;
|
20 |
-
}
|
21 |
-
|
22 |
-
.action_bar.bold .ig_headline {
|
23 |
-
font-size: 1.3em;
|
24 |
-
font-weight: 700;
|
25 |
-
line-height: 1.2em;
|
26 |
-
padding: 0 10px;
|
27 |
-
}
|
28 |
-
|
29 |
-
.action_bar.bold .ig_message {
|
30 |
-
line-height: 1.2em;
|
31 |
-
padding: 5px 10px;
|
32 |
-
}
|
33 |
-
|
34 |
-
.action_bar.bold img.icon {
|
35 |
-
width: 50px;
|
36 |
-
}
|
37 |
-
|
38 |
-
.action_bar.bold .ig_data {
|
39 |
-
max-width: 75%;
|
40 |
-
display: inline-block;
|
41 |
-
float: left;
|
42 |
-
}
|
43 |
-
|
44 |
-
.action_bar.bold input[type="submit"],
|
45 |
-
.action_bar.bold input[type="button"],
|
46 |
-
.action_bar.bold .ig_button {
|
47 |
-
display: inline-block;
|
48 |
-
font-size: 1em;
|
49 |
-
letter-spacing: 1px;
|
50 |
-
vertical-align: text-bottom;
|
51 |
-
font-weight: 700;
|
52 |
-
text-align: center;
|
53 |
-
-moz-box-shadow: inset 0 -3px 1px rgba(0, 0, 0, 0.35), 0 2px 2px rgba(0, 0, 0, 0.25);
|
54 |
-
-webkit-box-shadow: inset 0 -3px 1px rgba(0, 0, 0, 0.35), 0 2px 2px rgba(0, 0, 0, 0.25);
|
55 |
-
box-shadow: inset 0 -3px 1px rgba(0, 0, 0, 0.35), 0 2px 2px rgba(0, 0, 0, 0.25);
|
56 |
-
-moz-border-radius: 3px;
|
57 |
-
-webkit-border-radius: 3px;
|
58 |
-
border-radius: 3px;
|
59 |
-
text-shadow: 0px 0px 1px rgba(0, 0, 0, 0.1);
|
60 |
-
padding: .7em 2em;
|
61 |
-
}
|
62 |
-
|
63 |
-
.action_bar.bold input[type="submit"]:active,
|
64 |
-
.action_bar.bold input[type="button"]:active,
|
65 |
-
.action_bar.bold .ig_button:active{
|
66 |
-
position: relative;
|
67 |
-
top: 3px;
|
68 |
-
-moz-box-shadow: none;
|
69 |
-
-webkit-box-shadow: none;
|
70 |
-
box-shadow: none;
|
71 |
-
}
|
72 |
-
|
73 |
-
.action_bar.bold .ig_button{
|
74 |
-
float: right;
|
75 |
-
margin-right: 1em !important;
|
76 |
-
margin-bottom: .5em;
|
77 |
-
}
|
78 |
-
|
79 |
-
.action_bar.bold .ig_arrow_block.border {
|
80 |
-
border: 3px solid #fff;
|
81 |
-
border-top-width: 0;
|
82 |
-
-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);
|
83 |
-
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);
|
84 |
-
box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);
|
85 |
-
-moz-border-radius: 0 0 5px 5px;
|
86 |
-
-webkit-border-radius: 0 0 5px 5px;
|
87 |
-
border-radius: 0 0 5px 5px;
|
88 |
-
}
|
1 |
+
.action_bar.bold.ig_container{background-color:#BC0933;color:hsl(0,100%,100%)}.action_bar.bold.ig_container.top{border-bottom:solid 3px #f3eeee;-moz-box-shadow:0 -6px 16px 7px #000;-webkit-box-shadow:0 -6px 16px 7px #000;box-shadow:0 -6px 16px 7px #000}.action_bar.bold.ig_container.bottom{border-top:solid 3px #f3eeee;-moz-box-shadow:0 8px 23px 7px #000;-webkit-box-shadow:0 8px 23px 7px #000;box-shadow:0 8px 23px 7px #000}.action_bar.bold .ig_content{padding:1em 0 0 1em}.action_bar.bold .ig_headline{font-size:1.3em;font-weight:700;line-height:1.2em;padding:0 10px}.action_bar.bold .ig_message{line-height:1.2em;padding:5px 10px}.action_bar.bold img.icon{width:50px}.action_bar.bold .ig_data{max-width:75%;display:inline-block;float:left}.action_bar.bold input[type="submit"],.action_bar.bold input[type="button"],.action_bar.bold .ig_button{background:#00BB58;color:#FFF;display:inline-block;font-size:1em;letter-spacing:1px;vertical-align:text-bottom;font-weight:700;text-align:center;-moz-box-shadow:inset 0 -3px 1px rgba(0,0,0,0.35),0 2px 2px rgba(0,0,0,0.25);-webkit-box-shadow:inset 0 -3px 1px rgba(0,0,0,0.35),0 2px 2px rgba(0,0,0,0.25);box-shadow:inset 0 -3px 1px rgba(0,0,0,0.35),0 2px 2px rgba(0,0,0,0.25);-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;text-shadow:0 0 1px rgba(0,0,0,0.1);padding:.7em 2em}.action_bar.bold input[type="submit"]:active,.action_bar.bold input[type="button"]:active,.action_bar.bold .ig_button:active{position:relative;top:3px;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.action_bar.bold .ig_button{float:right;margin-right:1em!important;margin-bottom:.5em}.action_bar.bold .ig_arrow_block.border{border:3px solid #fff;background-color:#BC0933;border-top-width:0;-moz-box-shadow:0 0 5px rgba(0,0,0,0.35);-webkit-box-shadow:0 0 5px rgba(0,0,0,0.35);box-shadow:0 0 5px rgba(0,0,0,0.35);-moz-border-radius:0 0 5px 5px;-webkit-border-radius:0 0 5px 5px;border-radius:0 0 5px 5px}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/action-bar/themes/hello.css
CHANGED
@@ -1,137 +1 @@
|
|
1 |
-
.action_bar.hello.ig_container {
|
2 |
-
line-height: 1.5em;
|
3 |
-
/*TODO : check why this is needed */
|
4 |
-
/*overflow: visible;*/
|
5 |
-
/*bottom: 0;*/
|
6 |
-
}
|
7 |
-
|
8 |
-
.action_bar.hello.ig_container.top {
|
9 |
-
border-bottom: 3px solid #fff;
|
10 |
-
-moz-box-shadow: 0 -6px 16px 7px #000;
|
11 |
-
-webkit-box-shadow: 0 -6px 16px 7px #000;
|
12 |
-
box-shadow: 0 -6px 16px 7px #000;
|
13 |
-
}
|
14 |
-
|
15 |
-
.action_bar.hello.ig_container.bottom {
|
16 |
-
border-top: 3px solid #fff;
|
17 |
-
-moz-box-shadow: 0 8px 23px 7px #000;
|
18 |
-
-webkit-box-shadow: 0 8px 23px 7px #000;
|
19 |
-
box-shadow: 0 8px 23px 7px #000;
|
20 |
-
}
|
21 |
-
|
22 |
-
.action_bar.hello .ig_content {
|
23 |
-
padding: .5em;
|
24 |
-
}
|
25 |
-
|
26 |
-
.action_bar.hello .ig_content p {
|
27 |
-
margin: 0;
|
28 |
-
line-height: 1.2em;
|
29 |
-
}
|
30 |
-
|
31 |
-
.action_bar.hello .ig_headline {
|
32 |
-
display: inline-block;
|
33 |
-
font-weight: bold;
|
34 |
-
margin-right: 1.5em;
|
35 |
-
}
|
36 |
-
|
37 |
-
.action_bar.hello .ig_message {
|
38 |
-
display: inline-block;
|
39 |
-
margin-right: 1.5em;
|
40 |
-
}
|
41 |
-
|
42 |
-
.action_bar.hello .ig_icon {
|
43 |
-
width: 32px;
|
44 |
-
height: 32px;
|
45 |
-
}
|
46 |
-
|
47 |
-
.action_bar.hello .ig_data {
|
48 |
-
text-align: center;
|
49 |
-
}
|
50 |
-
|
51 |
-
.action_bar.hello .ig_embed_form input[type="submit"],
|
52 |
-
.action_bar.hello .ig_embed_form input[type="button"]{
|
53 |
-
line-height: 1.5em;
|
54 |
-
}
|
55 |
-
|
56 |
-
.action_bar.hello .ig_button,
|
57 |
-
.action_bar.hello input[type="submit"],
|
58 |
-
.action_bar.hello input[type="button"] {
|
59 |
-
display: inline-block;
|
60 |
-
background: #4A4844;
|
61 |
-
background-image: -moz-linear-gradient(top, transparent 0%, rgba(51, 51, 51, 0.4) 100%);
|
62 |
-
background-image: -o-linear-gradient(top, transparent 0%, rgba(51, 51, 51, 0.4) 100%);
|
63 |
-
background-image: -webkit-linear-gradient(top, transparent 0%, rgba(51, 51, 51, 0.4) 100%);
|
64 |
-
background-image: linear-gradient(top, transparent 0%, rgba(51, 51, 51, 0.4) 100%);
|
65 |
-
/*background-image: linear-gradient(top, #4A4844 0%, #2D2C29 100%);*/
|
66 |
-
|
67 |
-
/*background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #4A4844 0%), color-stop(1, #2D2C29 100%)) !important;*/
|
68 |
-
/*filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr=#4A4844 0%, EndColorStr=#2D2C29 100%)";*/
|
69 |
-
-moz-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.28);
|
70 |
-
-webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.28);
|
71 |
-
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.28);
|
72 |
-
color: #FFF;
|
73 |
-
font-weight: 400;
|
74 |
-
text-align: center;
|
75 |
-
-moz-border-radius: 4px;
|
76 |
-
-webkit-border-radius: 4px;
|
77 |
-
border-radius: 4px;
|
78 |
-
text-decoration: none;
|
79 |
-
font-size: 1em;
|
80 |
-
margin: 4px 0 0 10px;
|
81 |
-
padding: .25em 1em;
|
82 |
-
/*vertical-align: text-bottom;*/
|
83 |
-
}
|
84 |
-
|
85 |
-
.action_bar.hello .ig_button:hover,
|
86 |
-
.action_bar.hello input[type="submit"]:hover,
|
87 |
-
.action_bar.hello input[type="button"]:hover {
|
88 |
-
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
|
89 |
-
filter: alpha(opacity=80);
|
90 |
-
opacity: 0.8;
|
91 |
-
}
|
92 |
-
|
93 |
-
/***** Temp Fix for verticle alignment: start ****/
|
94 |
-
.action_bar.hello .ig_embed_form{
|
95 |
-
position: relative;
|
96 |
-
bottom: -1.2em;
|
97 |
-
}
|
98 |
-
|
99 |
-
.action_bar.hello .ig_valign_form_fix{
|
100 |
-
position: relative;
|
101 |
-
bottom: .5em;
|
102 |
-
margin-right: 4%;
|
103 |
-
}
|
104 |
-
.action_bar.hello .ig_valign_form_fix .ig_button{
|
105 |
-
margin: 10px 0 0 10px;
|
106 |
-
}
|
107 |
-
|
108 |
-
/***** End ****/
|
109 |
-
|
110 |
-
.action_bar.hello .ig_arrow_block.border {
|
111 |
-
border: 3px solid #fff;
|
112 |
-
-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);
|
113 |
-
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);
|
114 |
-
box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);
|
115 |
-
}
|
116 |
-
|
117 |
-
.action_bar.hello .ig_arrow_block.border {
|
118 |
-
border: 3px solid #fff;
|
119 |
-
border-top-width: 0;
|
120 |
-
-moz-box-shadow: 0 0 7px rgba(0, 0, 0, 0.35);
|
121 |
-
-webkit-box-shadow: 0 0 7px rgba(0, 0, 0, 0.35);
|
122 |
-
box-shadow: 0 0 7px rgba(0, 0, 0, 0.35);
|
123 |
-
-moz-border-radius: 0 0 7px 7px;
|
124 |
-
-webkit-border-radius: 0 0 7px 7px;
|
125 |
-
border-radius: 0 0 7px 7px;
|
126 |
-
}
|
127 |
-
|
128 |
-
.action_bar.hello .powered_by {
|
129 |
-
margin-top: 0;
|
130 |
-
height: 32px;
|
131 |
-
}
|
132 |
-
.action_bar.hello .powered_by img {
|
133 |
-
width: 24px;
|
134 |
-
width: 1.5em !important;
|
135 |
-
margin-left: 1em !important;
|
136 |
-
margin-top: .4em !important;
|
137 |
-
}
|
1 |
+
.action_bar.hello.ig_container{background-color:#EB5B31;color:hsl(0,100%,100%);line-height:1.5em}.action_bar.hello.ig_container.top{border-bottom:3px solid #fff;-moz-box-shadow:0 -6px 16px 7px #000;-webkit-box-shadow:0 -6px 16px 7px #000;box-shadow:0 -6px 16px 7px #000}.action_bar.hello.ig_container.bottom{border-top:3px solid #fff;-moz-box-shadow:0 8px 23px 7px #000;-webkit-box-shadow:0 8px 23px 7px #000;box-shadow:0 8px 23px 7px #000}.action_bar.hello .ig_content{padding:.5em}.action_bar.hello .ig_content p{margin:0;line-height:1.2em}.action_bar.hello .ig_headline{display:inline-block;font-weight:bold;margin-right:1.5em}.action_bar.hello .ig_message{display:inline-block;margin-right:1.5em}.action_bar.hello .ig_icon{width:32px;height:32px}.action_bar.hello .ig_data{text-align:center}.action_bar.hello .ig_embed_form input[type="submit"],.action_bar.hello .ig_embed_form input[type="button"]{line-height:1.5em}.action_bar.hello .ig_button,.action_bar.hello input[type="submit"],.action_bar.hello input[type="button"]{display:inline-block;background-color:#4A4844;background-image:-moz-linear-gradient(top,transparent 0%,rgba(51,51,51,0.4) 100%);background-image:-o-linear-gradient(top,transparent 0%,rgba(51,51,51,0.4) 100%);background-image:-webkit-linear-gradient(top,transparent 0%,rgba(51,51,51,0.4) 100%);background-image:linear-gradient(top,transparent 0%,rgba(51,51,51,0.4) 100%);-moz-box-shadow:1px 1px 3px rgba(0,0,0,0.28);-webkit-box-shadow:1px 1px 3px rgba(0,0,0,0.28);box-shadow:1px 1px 3px rgba(0,0,0,0.28);color:#FFF;font-weight:400;text-align:center;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;text-decoration:none;font-size:1em;margin:4px 0 0 10px;padding:.25em 1em}.action_bar.hello .ig_button:hover,.action_bar.hello input[type="submit"]:hover,.action_bar.hello input[type="button"]:hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";filter:alpha(opacity=80);opacity:0.8}.action_bar.hello .ig_embed_form{position:relative;bottom:-1.2em}.action_bar.hello .ig_valign_form_fix{position:relative;bottom:.5em;margin-right:4%}.action_bar.hello .ig_valign_form_fix .ig_button{margin:10px 0 0 10px}.action_bar.hello .ig_arrow_block.border{background-color:#EB5B31;border:3px solid #fff;border-top-width:0;-moz-box-shadow:0 0 7px rgba(0,0,0,0.35);-webkit-box-shadow:0 0 7px rgba(0,0,0,0.35);box-shadow:0 0 7px rgba(0,0,0,0.35);-moz-border-radius:0 0 7px 7px;-webkit-border-radius:0 0 7px 7px;border-radius:0 0 7px 7px}.action_bar.hello .powered_by{margin-top:0;height:32px}.action_bar.hello .powered_by img{width:24px;width:1.5em!important;margin-left:1em!important;margin-top:.4em!important}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/action-bar/themes/solid.css
CHANGED
@@ -1,52 +1 @@
|
|
1 |
-
.action_bar.solid .ig_content {
|
2 |
-
padding: 1em 0 1em 1em;
|
3 |
-
}
|
4 |
-
|
5 |
-
.action_bar.solid .ig_headline {
|
6 |
-
font-size: 1.2em;
|
7 |
-
line-height: 1em;
|
8 |
-
padding: 0 10px;
|
9 |
-
}
|
10 |
-
|
11 |
-
.action_bar.solid .ig_message {
|
12 |
-
line-height: 1em;
|
13 |
-
padding: 5px 10px;
|
14 |
-
}
|
15 |
-
|
16 |
-
.action_bar.solid img.icon {
|
17 |
-
width: 50px;
|
18 |
-
}
|
19 |
-
|
20 |
-
.action_bar.solid .ig_data {
|
21 |
-
max-width: 75%;
|
22 |
-
display: inline-block;
|
23 |
-
float: left;
|
24 |
-
}
|
25 |
-
|
26 |
-
.action_bar.solid .ig_button,
|
27 |
-
.action_bar.solid input[type="submit"],
|
28 |
-
.action_bar.solid input[type="button"] {
|
29 |
-
display: inline-block;
|
30 |
-
font-size: 1em;
|
31 |
-
letter-spacing: .1em;
|
32 |
-
-moz-border-radius: 0.1em;
|
33 |
-
-webkit-border-radius: 0.1em;
|
34 |
-
border-radius: 0.1em;
|
35 |
-
vertical-align: text-bottom;
|
36 |
-
font-weight: 700;
|
37 |
-
padding: .6em 2em;
|
38 |
-
}
|
39 |
-
|
40 |
-
.action_bar.solid .ig_button{
|
41 |
-
float: right;
|
42 |
-
margin-right: 1em !important;
|
43 |
-
}
|
44 |
-
.action_bar.solid .ig_button:hover, .action_bar.solid input[type="submit"]:hover, .action_bar.solid input[type="button"]:hover {
|
45 |
-
-moz-box-shadow: inset 0 -4em 0 rgba(255, 255, 255, 0.15);
|
46 |
-
-webkit-box-shadow: inset 0 -4em 0 rgba(255, 255, 255, 0.15);
|
47 |
-
box-shadow: inset 0 -4em 0 rgba(255, 255, 255, 0.15);
|
48 |
-
}
|
49 |
-
|
50 |
-
.action_bar.solid .ig_arrow_block.border {
|
51 |
-
border: none;
|
52 |
-
}
|
1 |
+
.action_bar.solid.ig_container{background-color:#4E3363;color:hsl(0,100%,100%)}.action_bar.solid .ig_content{padding:1em 0 1em 1em}.action_bar.solid .ig_headline{font-size:1.2em;line-height:1em;padding:0 10px}.action_bar.solid .ig_message{line-height:1em;padding:5px 10px}.action_bar.solid img.icon{width:50px}.action_bar.solid .ig_data{max-width:75%;display:inline-block;float:left}.action_bar.solid .ig_button,.action_bar.solid input[type="submit"],.action_bar.solid input[type="button"]{background:#008010;color:#FFF;display:inline-block;font-size:1em;letter-spacing:.1em;-moz-border-radius:0.1em;-webkit-border-radius:0.1em;border-radius:0.1em;vertical-align:text-bottom;font-weight:700;padding:.6em 2em}.action_bar.solid .ig_button{float:right;margin-right:1em!important}.action_bar.solid .ig_button:hover,.action_bar.solid input[type="submit"]:hover,.action_bar.solid input[type="button"]:hover{-moz-box-shadow:inset 0 -4em 0 rgba(255,255,255,0.15);-webkit-box-shadow:inset 0 -4em 0 rgba(255,255,255,0.15);box-shadow:inset 0 -4em 0 rgba(255,255,255,0.15)}.action_bar.solid .ig_arrow_block.border{background-color:#4E3363;border:none}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/messenger/default.css
CHANGED
@@ -1,137 +1 @@
|
|
1 |
-
.ig_messenger.ig_container {
|
2 |
-
display: block;
|
3 |
-
position: fixed;
|
4 |
-
cursor: pointer;
|
5 |
-
z-index: 100000;
|
6 |
-
margin: 0;
|
7 |
-
padding: 0;
|
8 |
-
font-family: "Lucida Grande", Arial, sans-serif;
|
9 |
-
overflow: hidden;
|
10 |
-
text-align: left;
|
11 |
-
background-color: transparent !important;
|
12 |
-
}
|
13 |
-
|
14 |
-
.ig_messenger .ig_header {
|
15 |
-
position: relative;
|
16 |
-
overflow: hidden;
|
17 |
-
display: block;
|
18 |
-
white-space: nowrap;
|
19 |
-
}
|
20 |
-
|
21 |
-
.ig_messenger .ig_header_image {
|
22 |
-
display: inline-block;
|
23 |
-
}
|
24 |
-
|
25 |
-
.ig_messenger .ig_header_text {
|
26 |
-
text-decoration: none;
|
27 |
-
font-weight: 700;
|
28 |
-
overflow: hidden;
|
29 |
-
}
|
30 |
-
|
31 |
-
.ig_messenger .ig_headline {
|
32 |
-
overflow: hidden;
|
33 |
-
display: inline-block;
|
34 |
-
text-decoration: none;
|
35 |
-
white-space: nowrap;
|
36 |
-
}
|
37 |
-
|
38 |
-
.ig_messenger .ig_header2_image {
|
39 |
-
height: 30px;
|
40 |
-
position: relative;
|
41 |
-
display: block;
|
42 |
-
border: 1px solid #BFBFBF;
|
43 |
-
border-bottom: none;
|
44 |
-
border-top: none;
|
45 |
-
}
|
46 |
-
|
47 |
-
.ig_messenger .ig_body {
|
48 |
-
overflow-x: hidden;
|
49 |
-
display: block;
|
50 |
-
border-bottom: none;
|
51 |
-
}
|
52 |
-
|
53 |
-
.ig_messenger .ig_message {
|
54 |
-
text-align: left;
|
55 |
-
word-wrap: break-word;
|
56 |
-
display: inline-block;
|
57 |
-
}
|
58 |
-
|
59 |
-
.ig_messenger .ig_message p {
|
60 |
-
margin-bottom: 0.25em;
|
61 |
-
}
|
62 |
-
|
63 |
-
.ig_messenger .ig_no_icon.ig_message {
|
64 |
-
width: 91%;
|
65 |
-
}
|
66 |
-
|
67 |
-
.ig_messenger .ig_separator {
|
68 |
-
color: transparent;
|
69 |
-
background: transparent;
|
70 |
-
border: none;
|
71 |
-
display: block;
|
72 |
-
font-size: 13px;
|
73 |
-
line-height: 15px;
|
74 |
-
margin: 1px 0 2px;
|
75 |
-
}
|
76 |
-
|
77 |
-
.ig_messenger .ig_footer {
|
78 |
-
position: relative;
|
79 |
-
display: block;
|
80 |
-
background-repeat: no-repeat;
|
81 |
-
}
|
82 |
-
|
83 |
-
.ig_messenger .ig_footer_image {
|
84 |
-
background-repeat: no-repeat;
|
85 |
-
position: relative;
|
86 |
-
display: block;
|
87 |
-
}
|
88 |
-
|
89 |
-
.ig_messenger .ig_close {
|
90 |
-
position: absolute;
|
91 |
-
display: inline-block;
|
92 |
-
background-repeat: no-repeat;
|
93 |
-
}
|
94 |
-
|
95 |
-
.ig_messenger .ig_icon {
|
96 |
-
height: 28px;
|
97 |
-
width: 28px;
|
98 |
-
vertical-align: top;
|
99 |
-
display: inline-block;
|
100 |
-
}
|
101 |
-
|
102 |
-
.ig_messenger .powered_by {
|
103 |
-
font-size: 10px;
|
104 |
-
position: relative;
|
105 |
-
}
|
106 |
-
.ig_messenger .ig_embed_form.ig_vertical.ig_quarter .ig_embed_form_container,
|
107 |
-
.ig_messenger .ig_embed_form.ig_horizontal.ig_quarter .ig_embed_form_container{
|
108 |
-
width: 50%!important;
|
109 |
-
}
|
110 |
-
|
111 |
-
.ig_messenger .ig_embed_form.ig_vertical.ig_half li,
|
112 |
-
.ig_messenger .ig_embed_form.ig_vertical.ig_quarter li,
|
113 |
-
.ig_messenger .ig_embed_form.ig_horizontal.ig_half li,
|
114 |
-
.ig_messenger .ig_embed_form.ig_horizontal.ig_quarter li{
|
115 |
-
min-width: 96% !important;
|
116 |
-
}
|
117 |
-
|
118 |
-
.ig_messenger .ig_button,
|
119 |
-
.ig_messenger input[type="submit"],
|
120 |
-
.ig_messenger input[type="button"] {
|
121 |
-
border-bottom : none;
|
122 |
-
cursor: pointer;
|
123 |
-
}
|
124 |
-
.ig_messenger .ig_button:active,
|
125 |
-
.ig_messenger input[type="submit"]:active,
|
126 |
-
.ig_messenger input[type="button"]:active {
|
127 |
-
border-top : none;
|
128 |
-
}
|
129 |
-
|
130 |
-
.ig_messenger .ig_close {
|
131 |
-
background: no-repeat url(../messenger/images/clear-header.png) 0 -195px;
|
132 |
-
right: 10px;
|
133 |
-
top: 20px;
|
134 |
-
width: 21px;
|
135 |
-
height: 13px;
|
136 |
-
}
|
137 |
-
|
1 |
+
.ig_messenger.ig_container{display:block;position:fixed;cursor:pointer;z-index:100000;margin:0;padding:0;font-family:"Lucida Grande",Arial,sans-serif;overflow:hidden;text-align:left;background-color:transparent!important}.ig_messenger .ig_header{position:relative;overflow:hidden;display:block;white-space:nowrap}.ig_messenger .ig_header_image{display:inline-block}.ig_messenger .ig_header_text{text-decoration:none;font-weight:700;overflow:hidden}.ig_messenger .ig_headline{overflow:hidden;display:inline-block;text-decoration:none;white-space:nowrap}.ig_messenger .ig_header2_image{height:30px;position:relative;display:block;border:1px solid #BFBFBF;border-bottom:none;border-top:none}.ig_messenger .ig_body{overflow-x:hidden;display:block;border-bottom:none}.ig_messenger .ig_message{text-align:left;word-wrap:break-word;display:inline-block}.ig_messenger .ig_message p{margin-bottom:0.25em}.ig_messenger .ig_no_icon.ig_message{width:91%}.ig_messenger .ig_separator{color:transparent;background:transparent;border:none;display:block;font-size:13px;line-height:15px;margin:1px 0 2px}.ig_messenger .ig_footer{position:relative;display:block;background-repeat:no-repeat}.ig_messenger .ig_footer_image{background-repeat:no-repeat;position:relative;display:block}.ig_messenger .ig_close{position:absolute;display:inline-block;background-repeat:no-repeat}.ig_messenger .ig_icon{height:28px;width:28px;vertical-align:top;display:inline-block}.ig_messenger .powered_by{font-size:10px;position:relative}.ig_messenger .ig_embed_form.ig_vertical.ig_quarter .ig_embed_form_container,.ig_messenger .ig_embed_form.ig_horizontal.ig_quarter .ig_embed_form_container{width:50%!important}.ig_messenger .ig_embed_form.ig_vertical.ig_half li,.ig_messenger .ig_embed_form.ig_vertical.ig_quarter li,.ig_messenger .ig_embed_form.ig_horizontal.ig_half li,.ig_messenger .ig_embed_form.ig_horizontal.ig_quarter li{min-width:96%!important}.ig_messenger .ig_button,.ig_messenger input[type="submit"],.ig_messenger input[type="button"]{border-bottom:none;cursor:pointer}.ig_messenger .ig_button:active,.ig_messenger input[type="submit"]:active,.ig_messenger input[type="button"]:active{border-top:none}.ig_messenger .ig_close{background:no-repeat url(../messenger/images/clear-header.png) 0 -195px;right:10px;top:20px;width:21px;height:13px}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/messenger/main.js
CHANGED
@@ -1,96 +1,12 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
'<div class="ig_content">' +
|
14 |
-
'<div class="ig_header">' +
|
15 |
-
'<div class="ig_header_image"></div>' +
|
16 |
-
'<div class="ig_header_text">' +
|
17 |
-
'<div class="ig_headline">{{=headline}}</div>' +
|
18 |
-
'</div>' +
|
19 |
-
'</div>' +
|
20 |
-
'<div class="ig_header2_image"></div>' +
|
21 |
-
'<div class="ig_body">' +
|
22 |
-
'<img class="ig_icon" src="{{=icon}}"/>' +
|
23 |
-
'<div class="ig_message">{{=message}}</div>' +
|
24 |
-
'<div class="ig_separator"></div>' +
|
25 |
-
'</div>' +
|
26 |
-
'<div class="ig_footer">' +
|
27 |
-
'<div class="ig_footer_image"></div>' +
|
28 |
-
'</div>' +
|
29 |
-
'</div>' +
|
30 |
-
'<div class="ig_close" id="ig_close_{{=id}}"></div>' +
|
31 |
-
'</div>';
|
32 |
-
};
|
33 |
-
|
34 |
-
|
35 |
-
Icegram_Message_Type_Messenger.prototype.post_render = function ( ) {
|
36 |
-
// No avatar...
|
37 |
-
if (this.data.icon == '') {
|
38 |
-
this.el.find('.ig_icon').remove();
|
39 |
-
this.el.find('.ig_message').addClass('ig_no_icon');
|
40 |
-
}
|
41 |
-
};
|
42 |
-
|
43 |
-
Icegram_Message_Type_Messenger.prototype.set_position = function ( ) {
|
44 |
-
switch(this.data.position) {
|
45 |
-
case "20":
|
46 |
-
this.el.css( { 'left': 5, 'bottom': 0} );
|
47 |
-
this.el.addClass('left');
|
48 |
-
break;
|
49 |
-
case "22":
|
50 |
-
default:
|
51 |
-
this.el.css( {'left': jQuery(window).width() - this.el.outerWidth() - 5, 'bottom': 0} );
|
52 |
-
this.el.addClass('right');
|
53 |
-
break;
|
54 |
-
}
|
55 |
-
|
56 |
-
};
|
57 |
-
|
58 |
-
Icegram_Message_Type_Messenger.prototype.show = function ( options, silent ) {
|
59 |
-
|
60 |
-
if ( this.is_visible() ) return;
|
61 |
-
|
62 |
-
var anim_delay = silent !== true ? 1000 : 0;
|
63 |
-
switch(this.data.animation) {
|
64 |
-
case "appear":
|
65 |
-
this.el.fadeIn(anim_delay);
|
66 |
-
break;
|
67 |
-
case "slide":
|
68 |
-
this.el.slideDown(anim_delay);
|
69 |
-
break;
|
70 |
-
default:
|
71 |
-
break;
|
72 |
-
}
|
73 |
-
silent !== true && this.track( 'shown' );
|
74 |
-
};
|
75 |
-
|
76 |
-
Icegram_Message_Type_Messenger.prototype.add_powered_by = function ( pb ) {
|
77 |
-
this.el.find('.ig_content').after('<div class="powered_by"><a href="'+pb.link+'" target="_blank">'+pb.text+'</a></div>');
|
78 |
-
};
|
79 |
-
|
80 |
-
Icegram_Message_Type_Messenger.prototype.hide = function ( options, silent ) {
|
81 |
-
|
82 |
-
if ( !this.is_visible() ) return;
|
83 |
-
|
84 |
-
var anim_delay = silent !== true ? 1000 : 0;
|
85 |
-
switch(this.data.animation) {
|
86 |
-
case "appear":
|
87 |
-
this.el.fadeOut(anim_delay);
|
88 |
-
break;
|
89 |
-
case "slide":
|
90 |
-
this.el.slideUp(anim_delay);
|
91 |
-
break;
|
92 |
-
default:
|
93 |
-
break;
|
94 |
-
}
|
95 |
-
silent !== true && this.track( 'closed' );
|
96 |
-
};
|
1 |
+
/**
|
2 |
+
* Icegram Message Type - Messenger
|
3 |
+
**/
|
4 |
+
function Icegram_Message_Type_Messenger(e){Icegram_Message_Type.apply(this,arguments)}Icegram_Message_Type_Messenger.prototype=Object.create(Icegram_Message_Type.prototype),Icegram_Message_Type_Messenger.prototype.constructor=Icegram_Message_Type_Messenger,Icegram_Message_Type_Messenger.prototype.get_template_default=function(){return'<div class="icegram ig_messenger {{=theme}} {{=animation}} ig_container ig_cta" data="{{=id}}" id="icegram_message_{{=id}}"><div class="ig_content"><div class="ig_header"><div class="ig_header_image"></div><div class="ig_header_text"><div class="ig_headline">{{=headline}}</div></div></div><div class="ig_header2_image"></div><div class="ig_body"><img class="ig_icon" src="{{=icon}}"/><div class="ig_message">{{=message}}</div><div class="ig_separator"></div></div><div class="ig_footer"><div class="ig_footer_image"></div></div></div><div class="ig_close" id="ig_close_{{=id}}"></div></div>'},Icegram_Message_Type_Messenger.prototype.post_render=function(){""==this.data.icon&&(this.el.find(".ig_icon").remove(),this.el.find(".ig_message").addClass("ig_no_icon"))},Icegram_Message_Type_Messenger.prototype.set_position=function(){switch(this.data.position){case"20":this.el.css({left:5,bottom:0}),this.el.addClass("left")
|
5 |
+
break
|
6 |
+
case"22":default:this.el.css({left:jQuery(window).width()-this.el.outerWidth()-5,bottom:0}),this.el.addClass("right")}},Icegram_Message_Type_Messenger.prototype.show=function(e,s){if(!this.is_visible()){var i=s!==!0?1e3:0
|
7 |
+
switch(this.data.animation){case"appear":this.el.fadeIn(i)
|
8 |
+
break
|
9 |
+
case"slide":this.el.slideDown(i)}s!==!0&&this.track("shown")}},Icegram_Message_Type_Messenger.prototype.add_powered_by=function(e){this.el.find(".ig_content").after('<div class="powered_by"><a href="'+e.link+'" target="_blank">'+e.text+"</a></div>")},Icegram_Message_Type_Messenger.prototype.hide=function(e,s){if(this.is_visible()){var i=s!==!0?1e3:0
|
10 |
+
switch(this.data.animation){case"appear":this.el.fadeOut(i)
|
11 |
+
break
|
12 |
+
case"slide":this.el.slideUp(i)}s!==!0&&this.track("closed")}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/messenger/main.php
CHANGED
@@ -9,9 +9,10 @@ class Icegram_Message_Type_Messenger extends Icegram_Message_Type {
|
|
9 |
|
10 |
function __construct() {
|
11 |
parent::__construct( dirname( __FILE__ ), plugins_url( '/', __FILE__ ) );
|
12 |
-
add_filter( 'icegram_message_type_params_messenger', array( $this, 'set_admin_style' ) );
|
13 |
-
}
|
14 |
|
|
|
|
|
15 |
function define_settings() {
|
16 |
parent::define_settings();
|
17 |
$this->settings['position']['values'] = array( '20', '22' );
|
9 |
|
10 |
function __construct() {
|
11 |
parent::__construct( dirname( __FILE__ ), plugins_url( '/', __FILE__ ) );
|
12 |
+
add_filter( 'icegram_message_type_params_messenger', array( $this, 'set_admin_style' ) );
|
|
|
13 |
|
14 |
+
}
|
15 |
+
|
16 |
function define_settings() {
|
17 |
parent::define_settings();
|
18 |
$this->settings['position']['values'] = array( '20', '22' );
|
message-types/messenger/themes/canvas.css
CHANGED
@@ -1,90 +1 @@
|
|
1 |
-
.ig_messenger.canvas.ig_container {
|
2 |
-
max-height: 80%;
|
3 |
-
max-width: 400px;
|
4 |
-
font-family: inherit;
|
5 |
-
}
|
6 |
-
|
7 |
-
.ig_messenger.canvas .ig_content {
|
8 |
-
border: 1px solid #BFBFBF;
|
9 |
-
margin: 10px;
|
10 |
-
padding: 10px;
|
11 |
-
overflow: hidden;
|
12 |
-
-webkit-box-shadow: 0 0.15em 0.35em 0 rgba(0, 0, 0, 0.135);
|
13 |
-
box-shadow: 0 0.15em 0.35em 0 rgba(0, 0, 0, 0.13);
|
14 |
-
background-color: #FFF !important;
|
15 |
-
}
|
16 |
-
|
17 |
-
.ig_messenger.canvas .ig_header {
|
18 |
-
|
19 |
-
}
|
20 |
-
|
21 |
-
.ig_messenger.canvas .ig_header_image {
|
22 |
-
display: none;
|
23 |
-
}
|
24 |
-
|
25 |
-
.ig_messenger.canvas .ig_header_text {
|
26 |
-
line-height: 1.2em;
|
27 |
-
}
|
28 |
-
|
29 |
-
.ig_messenger.canvas .ig_headline {
|
30 |
-
margin: -.35em 35px inherit inherit;
|
31 |
-
display: inline-block;
|
32 |
-
font-size: 1.5em;
|
33 |
-
font-weight: bold;
|
34 |
-
color: #111;
|
35 |
-
line-height: 1.5em;
|
36 |
-
max-width: 350px;
|
37 |
-
-ms-text-overflow: ellipsis;
|
38 |
-
-o-text-overflow: ellipsis;
|
39 |
-
text-overflow: ellipsis;
|
40 |
-
}
|
41 |
-
|
42 |
-
.ig_messenger.canvas .ig_header2_image {
|
43 |
-
display: none;
|
44 |
-
}
|
45 |
-
|
46 |
-
.ig_messenger.canvas .ig_body {
|
47 |
-
|
48 |
-
}
|
49 |
-
|
50 |
-
.ig_messenger.canvas .ig_message {
|
51 |
-
color: #444;
|
52 |
-
line-height: 1.2em;
|
53 |
-
display: inline;
|
54 |
-
}
|
55 |
-
|
56 |
-
.ig_messenger.canvas .ig_no_icon.ig_message {
|
57 |
-
width: 98%;
|
58 |
-
}
|
59 |
-
|
60 |
-
.ig_messenger.canvas .ig_separator {
|
61 |
-
display: none;
|
62 |
-
}
|
63 |
-
|
64 |
-
.ig_messenger.canvas .ig_footer {
|
65 |
-
|
66 |
-
}
|
67 |
-
|
68 |
-
.ig_messenger.canvas .ig_footer_image {
|
69 |
-
display: none;
|
70 |
-
}
|
71 |
-
|
72 |
-
.ig_messenger.canvas .ig_close {
|
73 |
-
background: no-repeat url(../images/clear-header.png) 0 -195px;
|
74 |
-
right: 10px;
|
75 |
-
top: 20px;
|
76 |
-
width: 21px;
|
77 |
-
height: 13px;
|
78 |
-
}
|
79 |
-
|
80 |
-
.ig_messenger.canvas .powered_by {
|
81 |
-
margin: -0.5em 10px 0.5em 10px;
|
82 |
-
}
|
83 |
-
|
84 |
-
.ig_messenger.canvas .ig_icon {
|
85 |
-
float: right;
|
86 |
-
border-radius: 5%;
|
87 |
-
max-width: 400px;
|
88 |
-
height: auto !important;
|
89 |
-
width: auto !important;
|
90 |
-
}
|
1 |
+
.ig_messenger.canvas.ig_container{max-height:80%;max-width:400px;font-family:inherit}.ig_messenger.canvas .ig_content{border:1px solid #BFBFBF;margin:10px;padding:10px;overflow:hidden;-webkit-box-shadow:0 0.15em 0.35em 0 rgba(0,0,0,0.135);box-shadow:0 0.15em 0.35em 0 rgba(0,0,0,0.13);background-color:#FFF!important}.ig_messenger.canvas .ig_header{}.ig_messenger.canvas .ig_header_image{display:none}.ig_messenger.canvas .ig_header_text{line-height:1.2em}.ig_messenger.canvas .ig_headline{margin:-.35em 35px inherit inherit;display:inline-block;font-size:1.5em;font-weight:bold;color:#111;line-height:1.5em;max-width:350px;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.ig_messenger.canvas .ig_header2_image{display:none}.ig_messenger.canvas .ig_body{}.ig_messenger.canvas .ig_message{color:#444;line-height:1.2em;display:inline}.ig_messenger.canvas .ig_no_icon.ig_message{width:98%}.ig_messenger.canvas .ig_separator{display:none}.ig_messenger.canvas .ig_footer{}.ig_messenger.canvas .ig_footer_image{display:none}.ig_messenger.canvas .ig_close{background:no-repeat url(../images/clear-header.png) 0 -195px;right:10px;top:20px;width:21px;height:13px}.ig_messenger.canvas .powered_by{margin:-0.5em 10px 0.5em 10px}.ig_messenger.canvas .ig_icon{float:right;border-radius:5%;max-width:400px;height:auto!important;width:auto!important}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/messenger/themes/clear.css
CHANGED
@@ -1,138 +1 @@
|
|
1 |
-
.ig_messenger.clear.ig_container {
|
2 |
-
width: 250px;
|
3 |
-
height: 260px;
|
4 |
-
}
|
5 |
-
|
6 |
-
.ig_messenger.clear .ig_content {
|
7 |
-
|
8 |
-
}
|
9 |
-
|
10 |
-
.ig_messenger.clear .ig_header {
|
11 |
-
height: 31px;
|
12 |
-
-moz-box-shadow: inset 0 0 3px 0 #FFF;
|
13 |
-
-webkit-box-shadow: inset 0 0 3px 0 #FFF;
|
14 |
-
box-shadow: inset 0 0 3px 0 #FFF;
|
15 |
-
background: #F9F9F9;
|
16 |
-
border: 1px solid #BFBFBF;
|
17 |
-
-moz-border-radius: 3px 3px 0 0;
|
18 |
-
-webkit-border-radius: 3px 3px 0 0;
|
19 |
-
border-radius: 3px 3px 0 0;
|
20 |
-
color: #333;
|
21 |
-
line-height: 20px !important;
|
22 |
-
padding: 0 4px 0 5px;
|
23 |
-
}
|
24 |
-
|
25 |
-
.ig_messenger.clear .ig_header_image {
|
26 |
-
background: no-repeat url(../images/clear-header.png) 0 -181px;
|
27 |
-
position: relative;
|
28 |
-
height: 13px;
|
29 |
-
width: 35px;
|
30 |
-
margin-left: 206px;
|
31 |
-
margin-top: 9px;
|
32 |
-
line-height: 20px !important;
|
33 |
-
padding: 0;
|
34 |
-
}
|
35 |
-
|
36 |
-
.ig_messenger.clear .ig_header_text {
|
37 |
-
background: no-repeat url(../images/clear-header.png) 0 0;
|
38 |
-
font-size: 13px;
|
39 |
-
height: 15px;
|
40 |
-
/* -ms-text-overflow: ellipsis;
|
41 |
-
-o-text-overflow: ellipsis;
|
42 |
-
text-overflow: ellipsis;*/
|
43 |
-
white-space: nowrap;
|
44 |
-
position: relative;
|
45 |
-
display: block;
|
46 |
-
margin-top: -19px;
|
47 |
-
margin-left: 3px;
|
48 |
-
line-height: 16px;
|
49 |
-
}
|
50 |
-
|
51 |
-
.ig_messenger.clear .ig_headline {
|
52 |
-
margin-left: 20px;
|
53 |
-
margin-right: 55px;
|
54 |
-
width: 161px;
|
55 |
-
font-size: 13px;
|
56 |
-
height: 16px;
|
57 |
-
-ms-text-overflow: ellipsis;
|
58 |
-
-o-text-overflow: ellipsis;
|
59 |
-
text-overflow: ellipsis;
|
60 |
-
}
|
61 |
-
|
62 |
-
.ig_messenger.clear .ig_header2_image {
|
63 |
-
background-image: url(../images/clear-option.png);
|
64 |
-
}
|
65 |
-
|
66 |
-
.ig_messenger.clear .ig_body {
|
67 |
-
background: #fff;
|
68 |
-
height: 152px;
|
69 |
-
-moz-box-shadow: inset 0 0 3px 0 #FFF;
|
70 |
-
-webkit-box-shadow: inset 0 0 3px 0 #FFF;
|
71 |
-
box-shadow: inset 0 0 3px 0 #FFF;
|
72 |
-
border: 1px solid #BFBFBF;
|
73 |
-
font-family: Arial, Helvetica, sans-serif;
|
74 |
-
color: #222;
|
75 |
-
font-size: 13px;
|
76 |
-
line-height: 15px;
|
77 |
-
padding: 6px 6px 0;
|
78 |
-
}
|
79 |
-
|
80 |
-
.ig_messenger.clear .ig_message {
|
81 |
-
color: #3E454C;
|
82 |
-
line-height: 1.28em;
|
83 |
-
width: 180px;
|
84 |
-
margin-left: .5em;
|
85 |
-
}
|
86 |
-
|
87 |
-
.ig_messenger.clear .ig_no_icon.ig_message {
|
88 |
-
width: 97%;
|
89 |
-
}
|
90 |
-
|
91 |
-
.ig_messenger.clear .ig_separator {
|
92 |
-
border-bottom: 1px solid hsl(0, 0%, 98%);
|
93 |
-
border-top: 1px solid #DFDFDF;
|
94 |
-
-webkit-margin-before: 0.5em;
|
95 |
-
-webkit-margin-after: 0.5em;
|
96 |
-
-moz-margin-start: auto;
|
97 |
-
-webkit-margin-start: auto;
|
98 |
-
margin-start: auto;
|
99 |
-
-moz-margin-end: auto;
|
100 |
-
-webkit-margin-end: auto;
|
101 |
-
margin-end: auto;
|
102 |
-
-moz-margin-before: 0.5em;
|
103 |
-
-moz-margin-after: 0.5em;
|
104 |
-
}
|
105 |
-
|
106 |
-
.ig_messenger.clear .ig_footer {
|
107 |
-
background-image: url(../images/clear-footer.png);
|
108 |
-
height: 36px;
|
109 |
-
border: 1px solid #BFBFBF;
|
110 |
-
border-top: none;
|
111 |
-
padding: 0 12px;
|
112 |
-
-webkit-background-size: 96%;
|
113 |
-
background-size: 96%;
|
114 |
-
background-color: #F5F5F5;
|
115 |
-
background-position: 5px 5px;
|
116 |
-
}
|
117 |
-
|
118 |
-
.ig_messenger.clear .ig_footer_image {
|
119 |
-
}
|
120 |
-
|
121 |
-
.ig_messenger.clear .ig_close {
|
122 |
-
background: no-repeat url(../images/clear-header.png) 0 -195px;
|
123 |
-
right: 5px;
|
124 |
-
top: 10px;
|
125 |
-
margin-right: -5px;
|
126 |
-
width: 21px;
|
127 |
-
height: 13px;
|
128 |
-
vertical-align: top;
|
129 |
-
}
|
130 |
-
|
131 |
-
.ig_messenger.clear .powered_by {
|
132 |
-
top: -20px;
|
133 |
-
left: 120px;
|
134 |
-
}
|
135 |
-
|
136 |
-
.ig_messenger.clear .ig_icon {
|
137 |
-
border-radius: 2px;
|
138 |
-
}
|
1 |
+
.ig_messenger.clear.ig_container{width:250px;height:260px}.ig_messenger.clear .ig_content{}.ig_messenger.clear .ig_header{height:31px;-moz-box-shadow:inset 0 0 3px 0 #FFF;-webkit-box-shadow:inset 0 0 3px 0 #FFF;box-shadow:inset 0 0 3px 0 #FFF;background:#F9F9F9;border:1px solid #BFBFBF;-moz-border-radius:3px 3px 0 0;-webkit-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0;color:#333;line-height:20px!important;padding:0 4px 0 5px}.ig_messenger.clear .ig_header_image{background:no-repeat url(../images/clear-header.png) 0 -181px;position:relative;height:13px;width:35px;margin-left:206px;margin-top:9px;line-height:20px!important;padding:0}.ig_messenger.clear .ig_header_text{background:no-repeat url(../images/clear-header.png) 0 0;font-size:13px;height:15px;white-space:nowrap;position:relative;display:block;margin-top:-19px;margin-left:3px;line-height:16px}.ig_messenger.clear .ig_headline{margin-left:20px;margin-right:55px;width:161px;font-size:13px;height:16px;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.ig_messenger.clear .ig_header2_image{background-image:url(../images/clear-option.png)}.ig_messenger.clear .ig_body{background:#fff;height:152px;-moz-box-shadow:inset 0 0 3px 0 #FFF;-webkit-box-shadow:inset 0 0 3px 0 #FFF;box-shadow:inset 0 0 3px 0 #FFF;border:1px solid #BFBFBF;font-family:Arial,Helvetica,sans-serif;color:#222;font-size:13px;line-height:15px;padding:6px 6px 0}.ig_messenger.clear .ig_message{color:#3E454C;line-height:1.28em;width:180px;margin-left:.5em}.ig_messenger.clear .ig_no_icon.ig_message{width:97%}.ig_messenger.clear .ig_separator{border-bottom:1px solid hsl(0,0%,98%);border-top:1px solid #DFDFDF;-webkit-margin-before:0.5em;-webkit-margin-after:0.5em;-moz-margin-start:auto;-webkit-margin-start:auto;margin-start:auto;-moz-margin-end:auto;-webkit-margin-end:auto;margin-end:auto;-moz-margin-before:0.5em;-moz-margin-after:0.5em}.ig_messenger.clear .ig_footer{background-image:url(../images/clear-footer.png);height:36px;border:1px solid #BFBFBF;border-top:none;padding:0 12px;-webkit-background-size:96%;background-size:96%;background-color:#F5F5F5;background-position:5px 5px}.ig_messenger.clear .ig_footer_image{}.ig_messenger.clear .ig_close{background:no-repeat url(../images/clear-header.png) 0 -195px;right:5px;top:10px;margin-right:-5px;width:21px;height:13px;vertical-align:top}.ig_messenger.clear .powered_by{top:-20px;left:120px}.ig_messenger.clear .ig_icon{border-radius:2px}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/messenger/themes/social.css
CHANGED
@@ -1,185 +1 @@
|
|
1 |
-
.ig_messenger.social.ig_container {
|
2 |
-
width: 250px;
|
3 |
-
height: 260px;
|
4 |
-
-webkit-background-clip: padding-box;
|
5 |
-
background-clip: padding-box;
|
6 |
-
}
|
7 |
-
|
8 |
-
.ig_messenger.social .ig_content {
|
9 |
-
|
10 |
-
}
|
11 |
-
|
12 |
-
.ig_messenger.social .ig_header {
|
13 |
-
background-color: #627BAE;
|
14 |
-
-webkit-background-clip: padding-box;
|
15 |
-
background-clip: padding-box;
|
16 |
-
border: 1px solid rgba(0, 39, 121, 0.76);
|
17 |
-
border-bottom: none;
|
18 |
-
-webkit-border-top-left-radius: 1px 1px;
|
19 |
-
-moz-border-radius-topleft: 1px 1px;
|
20 |
-
border-top-left-radius: 1px 1px;
|
21 |
-
-webkit-border-top-right-radius: 1px 1px;
|
22 |
-
-moz-border-radius-topright: 1px 1px;
|
23 |
-
border-top-right-radius: 1px 1px;
|
24 |
-
height: 26px;
|
25 |
-
-ms-text-overflow: ellipsis;
|
26 |
-
-o-text-overflow: ellipsis;
|
27 |
-
text-overflow: ellipsis;
|
28 |
-
color: #FFF;
|
29 |
-
font-weight: 400;
|
30 |
-
line-height: 18px;
|
31 |
-
}
|
32 |
-
|
33 |
-
.ig_messenger.social .ig_header_image {
|
34 |
-
position: absolute;
|
35 |
-
height: 25px;
|
36 |
-
vertical-align: top;
|
37 |
-
background-image: url(../images/social-img.png);
|
38 |
-
background-repeat: no-repeat;
|
39 |
-
background-position: -92px -332px;
|
40 |
-
border: 0;
|
41 |
-
right: 20px;
|
42 |
-
top: 2px;
|
43 |
-
margin-right: 3px;
|
44 |
-
width: 21px;
|
45 |
-
}
|
46 |
-
|
47 |
-
.ig_messenger.social .ig_header_text {
|
48 |
-
font-size: 11px;
|
49 |
-
vertical-align: top;
|
50 |
-
zoom: 1;
|
51 |
-
margin: 3px 7px 4px;
|
52 |
-
}
|
53 |
-
|
54 |
-
.ig_messenger.social .ig_headline {
|
55 |
-
margin-left: 5px;
|
56 |
-
margin-right: 40px;
|
57 |
-
line-height: 20px;
|
58 |
-
width:195px;
|
59 |
-
text-overflow:ellipsis;
|
60 |
-
}
|
61 |
-
|
62 |
-
.ig_messenger.social .ig_header2_image {
|
63 |
-
display: none;
|
64 |
-
}
|
65 |
-
|
66 |
-
.ig_messenger.social .ig_body {
|
67 |
-
right: 0;
|
68 |
-
bottom: 0;
|
69 |
-
padding-left: 5px;
|
70 |
-
padding-top: 5px;
|
71 |
-
padding-right: 5px;
|
72 |
-
height: 194px;
|
73 |
-
overflow-y: auto;
|
74 |
-
-webkit-background-clip: padding-box;
|
75 |
-
background-clip: padding-box;
|
76 |
-
background-color: #FFF;
|
77 |
-
border: 1px solid rgba(0, 0, 0, 0.3);
|
78 |
-
font-size: 12px;
|
79 |
-
font-family: "lucida grande", tahoma, verdana, arial, sans-serif;
|
80 |
-
color: #3e454c;
|
81 |
-
line-height: 1.28;
|
82 |
-
text-align: left;
|
83 |
-
position: relative;
|
84 |
-
border-width: 0 1px;
|
85 |
-
background-color: #edeff4;
|
86 |
-
}
|
87 |
-
|
88 |
-
.ig_messenger.social .ig_message {
|
89 |
-
background-color: #F7F7F7;
|
90 |
-
background-image: -webkit-gradient(linear, center bottom, center top, from(#F2F2F2), to(#FFF));
|
91 |
-
background-image: -webkit-linear-gradient(bottom, #F2F2F2, #FFF);
|
92 |
-
margin-left: 10px;
|
93 |
-
padding: 4px 6px 3px 5px;
|
94 |
-
border: 1px solid rgba(0, 0, 0, .18);
|
95 |
-
border-bottom-color: rgba(0, 0, 0, .29);
|
96 |
-
-webkit-border-radius: 4px;
|
97 |
-
-webkit-box-shadow: 0 1px 0 #DCE0E6;
|
98 |
-
color: #3E454C;
|
99 |
-
line-height: 1.28;
|
100 |
-
min-height: 14px;
|
101 |
-
position: relative;
|
102 |
-
text-shadow: rgba(255, 255, 255, .5) 0 1px 0;
|
103 |
-
width: 170px;
|
104 |
-
}
|
105 |
-
|
106 |
-
.ig_messenger.social .ig_message:after {
|
107 |
-
content: "";
|
108 |
-
display: block;
|
109 |
-
position: absolute;
|
110 |
-
top: 11px;
|
111 |
-
left: 0;
|
112 |
-
margin: 0 0 0 -12px;
|
113 |
-
border: 6px solid #FAFAFA;
|
114 |
-
border-color: rgba(0, 0, 0, 0) #FAFAFA rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
|
115 |
-
}
|
116 |
-
|
117 |
-
.ig_messenger.social .ig_message:before {
|
118 |
-
content: "";
|
119 |
-
display: block;
|
120 |
-
position: absolute;
|
121 |
-
top: 9px;
|
122 |
-
left: 0;
|
123 |
-
margin: 0 0 0 -16px;
|
124 |
-
border: 8px solid #DFDFDF;
|
125 |
-
border-color: rgba(0, 0, 0, 0) #DFDFDF rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
|
126 |
-
}
|
127 |
-
|
128 |
-
.ig_messenger.social .ig_no_icon.ig_message {
|
129 |
-
width: 91%;
|
130 |
-
}
|
131 |
-
|
132 |
-
.ig_messenger.social .ig_no_icon.ig_message:after,
|
133 |
-
.ig_messenger.social .ig_no_icon.ig_message:before {
|
134 |
-
content: none;
|
135 |
-
}
|
136 |
-
|
137 |
-
.ig_messenger.social .ig_separator {
|
138 |
-
display: none;
|
139 |
-
}
|
140 |
-
|
141 |
-
.ig_messenger.social .ig_footer {
|
142 |
-
right: 0;
|
143 |
-
bottom: 0;
|
144 |
-
-webkit-background-clip: padding-box;
|
145 |
-
background-clip: padding-box;
|
146 |
-
background-color: #FFF;
|
147 |
-
border: 1px solid rgba(0, 0, 0, 0.3);
|
148 |
-
border-top: 1px solid #C9D0DA;
|
149 |
-
max-height: 77px;
|
150 |
-
overflow-x: hidden;
|
151 |
-
overflow-y: auto;
|
152 |
-
font-size: 11px;
|
153 |
-
color: #333;
|
154 |
-
line-height: 1.28;
|
155 |
-
padding: 5px 23px 3px 5px;
|
156 |
-
}
|
157 |
-
|
158 |
-
.ig_messenger.social .ig_footer_image {
|
159 |
-
background-image: url(../images/social-img.png);
|
160 |
-
background-position: -269px -137px;
|
161 |
-
width: 24px;
|
162 |
-
height: 24px;
|
163 |
-
left: 221px;
|
164 |
-
}
|
165 |
-
|
166 |
-
.ig_messenger.social .ig_close {
|
167 |
-
background-image: url(../images/social-img.png);
|
168 |
-
background-position: -137px -332px;
|
169 |
-
right: 0;
|
170 |
-
top: 2px;
|
171 |
-
margin-right: 3px;
|
172 |
-
width: 21px;
|
173 |
-
height: 25px;
|
174 |
-
vertical-align: top;
|
175 |
-
}
|
176 |
-
|
177 |
-
|
178 |
-
.ig_messenger.social .powered_by {
|
179 |
-
top: -16px;
|
180 |
-
left: 130px;
|
181 |
-
}
|
182 |
-
|
183 |
-
.ig_messenger.social .ig_icon {
|
184 |
-
border-radius: 2px;
|
185 |
-
}
|
1 |
+
.ig_messenger.social.ig_container{width:250px;height:260px;-webkit-background-clip:padding-box;background-clip:padding-box}.ig_messenger.social .ig_content{}.ig_messenger.social .ig_header{background-color:#627BAE;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid rgba(0,39,121,0.76);border-bottom:none;-webkit-border-top-left-radius:1px 1px;-moz-border-radius-topleft:1px 1px;border-top-left-radius:1px 1px;-webkit-border-top-right-radius:1px 1px;-moz-border-radius-topright:1px 1px;border-top-right-radius:1px 1px;height:26px;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis;color:#FFF;font-weight:400;line-height:18px}.ig_messenger.social .ig_header_image{position:absolute;height:25px;vertical-align:top;background-image:url(../images/social-img.png);background-repeat:no-repeat;background-position:-92px -332px;border:0;right:20px;top:2px;margin-right:3px;width:21px}.ig_messenger.social .ig_header_text{font-size:11px;vertical-align:top;zoom:1;margin:3px 7px 4px}.ig_messenger.social .ig_headline{margin-left:5px;margin-right:40px;line-height:20px;width:195px;text-overflow:ellipsis}.ig_messenger.social .ig_header2_image{display:none}.ig_messenger.social .ig_body{right:0;bottom:0;padding-left:5px;padding-top:5px;padding-right:5px;height:194px;overflow-y:auto;-webkit-background-clip:padding-box;background-clip:padding-box;background-color:#FFF;border:1px solid rgba(0,0,0,0.3);font-size:12px;font-family:"lucida grande",tahoma,verdana,arial,sans-serif;color:#3e454c;line-height:1.28;text-align:left;position:relative;border-width:0 1px;background-color:#edeff4}.ig_messenger.social .ig_message{background-color:#F7F7F7;background-image:-webkit-gradient(linear,center bottom,center top,from(#F2F2F2),to(#FFF));background-image:-webkit-linear-gradient(bottom,#F2F2F2,#FFF);margin-left:10px;padding:4px 6px 3px 5px;border:1px solid rgba(0,0,0,.18);border-bottom-color:rgba(0,0,0,.29);-webkit-border-radius:4px;-webkit-box-shadow:0 1px 0 #DCE0E6;color:#3E454C;line-height:1.28;min-height:14px;position:relative;text-shadow:rgba(255,255,255,.5) 0 1px 0;width:170px}.ig_messenger.social .ig_message:after{content:"";display:block;position:absolute;top:11px;left:0;margin:0 0 0 -12px;border:6px solid #FAFAFA;border-color:rgba(0,0,0,0) #FAFAFA rgba(0,0,0,0) rgba(0,0,0,0)}.ig_messenger.social .ig_message:before{content:"";display:block;position:absolute;top:9px;left:0;margin:0 0 0 -16px;border:8px solid #DFDFDF;border-color:rgba(0,0,0,0) #DFDFDF rgba(0,0,0,0) rgba(0,0,0,0)}.ig_messenger.social .ig_no_icon.ig_message{width:91%}.ig_messenger.social .ig_no_icon.ig_message:after,.ig_messenger.social .ig_no_icon.ig_message:before{content:none}.ig_messenger.social .ig_separator{display:none}.ig_messenger.social .ig_footer{right:0;bottom:0;-webkit-background-clip:padding-box;background-clip:padding-box;background-color:#FFF;border:1px solid rgba(0,0,0,0.3);border-top:1px solid #C9D0DA;max-height:77px;overflow-x:hidden;overflow-y:auto;font-size:11px;color:#333;line-height:1.28;padding:5px 23px 3px 5px}.ig_messenger.social .ig_footer_image{background-image:url(../images/social-img.png);background-position:-269px -137px;width:24px;height:24px;left:221px}.ig_messenger.social .ig_close{background-image:url(../images/social-img.png);background-position:-137px -332px;right:0;top:2px;margin-right:3px;width:21px;height:25px;vertical-align:top}.ig_messenger.social .powered_by{top:-16px;left:130px}.ig_messenger.social .ig_icon{border-radius:2px}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/messenger/themes/talk.css
CHANGED
@@ -1,139 +1 @@
|
|
1 |
-
.ig_messenger.talk.ig_container {
|
2 |
-
width: 210px;
|
3 |
-
height: 260px;
|
4 |
-
|
5 |
-
}
|
6 |
-
.ig_messenger.talk .ig_content {
|
7 |
-
background: transparent !important;
|
8 |
-
|
9 |
-
}
|
10 |
-
|
11 |
-
.ig_messenger.talk .ig_header {
|
12 |
-
height: 25px;
|
13 |
-
-moz-box-shadow: inset 0 0 3px 0 #FFF;
|
14 |
-
-webkit-box-shadow: inset 0 0 3px 0 #FFF;
|
15 |
-
box-shadow: inset 0 0 3px 0 #FFF;
|
16 |
-
background: #F5FAFF;
|
17 |
-
border: 1px solid #BFBFBF;
|
18 |
-
-moz-border-radius: 7px 7px 0 0;
|
19 |
-
-webkit-border-radius: 7px 7px 0 0;
|
20 |
-
border-radius: 7px 7px 0 0;
|
21 |
-
color: #00008B;
|
22 |
-
font-weight: 700 !important;
|
23 |
-
line-height: 20px !important;
|
24 |
-
padding: 0;
|
25 |
-
}
|
26 |
-
|
27 |
-
.ig_messenger.talk .ig_header_image {
|
28 |
-
background-image: url(../images/talk-header-1.png);
|
29 |
-
margin-top: 4px;
|
30 |
-
position: relative;
|
31 |
-
height: 15px;
|
32 |
-
width: 15px;
|
33 |
-
margin-left: 173px;
|
34 |
-
line-height: 20px !important;
|
35 |
-
padding: 0;
|
36 |
-
}
|
37 |
-
|
38 |
-
.ig_messenger.talk .ig_header_text {
|
39 |
-
background: no-repeat url(../images/clear-header.png) 0 0;
|
40 |
-
background-repeat: no-repeat;
|
41 |
-
font-size: 12px;
|
42 |
-
height: 18px;
|
43 |
-
/*-ms-text-overflow: ellipsis;
|
44 |
-
-o-text-overflow: ellipsis;
|
45 |
-
text-overflow: ellipsis;*/
|
46 |
-
white-space: nowrap;
|
47 |
-
position: relative;
|
48 |
-
display: block;
|
49 |
-
margin-top: -19px;
|
50 |
-
line-height: 16px;
|
51 |
-
margin-left: 10px;
|
52 |
-
}
|
53 |
-
|
54 |
-
.ig_messenger.talk .ig_headline {
|
55 |
-
margin-left: 17px;
|
56 |
-
margin-right: 40px;
|
57 |
-
line-height: 16px;
|
58 |
-
width: 141px;
|
59 |
-
-ms-text-overflow: ellipsis;
|
60 |
-
-o-text-overflow: ellipsis;
|
61 |
-
text-overflow: ellipsis;
|
62 |
-
}
|
63 |
-
|
64 |
-
.ig_messenger.talk .ig_header2_image {
|
65 |
-
background-image: url(../images/talk-header-2.png);
|
66 |
-
}
|
67 |
-
|
68 |
-
.ig_messenger.talk .ig_body {
|
69 |
-
background: #fff;
|
70 |
-
height: 160px;
|
71 |
-
-moz-box-shadow: inset 0 0 3px 0 #FFF;
|
72 |
-
-webkit-box-shadow: inset 0 0 3px 0 #FFF;
|
73 |
-
box-shadow: inset 0 0 3px 0 #FFF;
|
74 |
-
border: 1px solid #BFBFBF;
|
75 |
-
font-family: Arial, Helvetica, sans-serif;
|
76 |
-
color: #222;
|
77 |
-
font-size: 12px;
|
78 |
-
top: 0;
|
79 |
-
left: 0;
|
80 |
-
right: 0;
|
81 |
-
line-height: 15px;
|
82 |
-
padding: 6px 6px 0;
|
83 |
-
}
|
84 |
-
|
85 |
-
.ig_messenger.talk .ig_message {
|
86 |
-
color: #3E454C;
|
87 |
-
width: 142px;
|
88 |
-
margin-left: 7px;
|
89 |
-
}
|
90 |
-
|
91 |
-
.ig_messenger.talk .ig_no_icon.ig_message {
|
92 |
-
width: 98%;
|
93 |
-
}
|
94 |
-
|
95 |
-
.ig_messenger.talk .ig_separator {
|
96 |
-
border-bottom: 1px solid hsl(0, 0%, 98%);
|
97 |
-
border-top: 1px solid #DFDFDF;
|
98 |
-
-webkit-margin-before: 0.5em;
|
99 |
-
-webkit-margin-after: 0.5em;
|
100 |
-
-moz-margin-start: auto;
|
101 |
-
-webkit-margin-start: auto;
|
102 |
-
margin-start: auto;
|
103 |
-
-moz-margin-end: auto;
|
104 |
-
-webkit-margin-end: auto;
|
105 |
-
margin-end: auto;
|
106 |
-
-moz-margin-before: 0.5em;
|
107 |
-
-moz-margin-after: 0.5em;
|
108 |
-
}
|
109 |
-
|
110 |
-
.ig_messenger.talk .ig_footer {
|
111 |
-
background-image: url(../images/talk-footer-1.png);
|
112 |
-
height: 33px;
|
113 |
-
border: 1px solid #BFBFBF;
|
114 |
-
border-bottom: none;
|
115 |
-
}
|
116 |
-
|
117 |
-
.ig_messenger.talk .ig_footer_image {
|
118 |
-
margin-top: .8px;
|
119 |
-
}
|
120 |
-
|
121 |
-
.ig_messenger.talk .ig_close {
|
122 |
-
background-image: url(../images/talk-close.png) !important;
|
123 |
-
background-repeat: no-repeat;
|
124 |
-
background-position: 0 0;
|
125 |
-
top: 4.5px;
|
126 |
-
right: -1px;
|
127 |
-
width: 21px;
|
128 |
-
height: 25px;
|
129 |
-
}
|
130 |
-
|
131 |
-
|
132 |
-
.ig_messenger.talk .powered_by {
|
133 |
-
top: -24px;
|
134 |
-
left: 93px;
|
135 |
-
}
|
136 |
-
|
137 |
-
.ig_messenger.talk .ig_icon {
|
138 |
-
|
139 |
-
}
|
1 |
+
.ig_messenger.talk.ig_container{width:210px;height:260px}.ig_messenger.talk .ig_content{background:transparent!important}.ig_messenger.talk .ig_header{height:25px;-moz-box-shadow:inset 0 0 3px 0 #FFF;-webkit-box-shadow:inset 0 0 3px 0 #FFF;box-shadow:inset 0 0 3px 0 #FFF;background:#F5FAFF;border:1px solid #BFBFBF;-moz-border-radius:7px 7px 0 0;-webkit-border-radius:7px 7px 0 0;border-radius:7px 7px 0 0;color:#00008B;font-weight:700!important;line-height:20px!important;padding:0}.ig_messenger.talk .ig_header_image{background-image:url(../images/talk-header-1.png);margin-top:4px;position:relative;height:15px;width:15px;margin-left:173px;line-height:20px!important;padding:0}.ig_messenger.talk .ig_header_text{background:no-repeat url(../images/clear-header.png) 0 0;background-repeat:no-repeat;font-size:12px;height:18px;white-space:nowrap;position:relative;display:block;margin-top:-19px;line-height:16px;margin-left:10px}.ig_messenger.talk .ig_headline{margin-left:17px;margin-right:40px;line-height:16px;width:141px;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.ig_messenger.talk .ig_header2_image{background-image:url(../images/talk-header-2.png)}.ig_messenger.talk .ig_body{background:#fff;height:160px;-moz-box-shadow:inset 0 0 3px 0 #FFF;-webkit-box-shadow:inset 0 0 3px 0 #FFF;box-shadow:inset 0 0 3px 0 #FFF;border:1px solid #BFBFBF;font-family:Arial,Helvetica,sans-serif;color:#222;font-size:12px;top:0;left:0;right:0;line-height:15px;padding:6px 6px 0}.ig_messenger.talk .ig_message{color:#3E454C;width:142px;margin-left:7px}.ig_messenger.talk .ig_no_icon.ig_message{width:98%}.ig_messenger.talk .ig_separator{border-bottom:1px solid hsl(0,0%,98%);border-top:1px solid #DFDFDF;-webkit-margin-before:0.5em;-webkit-margin-after:0.5em;-moz-margin-start:auto;-webkit-margin-start:auto;margin-start:auto;-moz-margin-end:auto;-webkit-margin-end:auto;margin-end:auto;-moz-margin-before:0.5em;-moz-margin-after:0.5em}.ig_messenger.talk .ig_footer{background-image:url(../images/talk-footer-1.png);height:33px;border:1px solid #BFBFBF;border-bottom:none}.ig_messenger.talk .ig_footer_image{margin-top:.8px}.ig_messenger.talk .ig_close{background-image:url(../images/talk-close.png)!important;background-repeat:no-repeat;background-position:0 0;top:4.5px;right:-1px;width:21px;height:25px}.ig_messenger.talk .powered_by{top:-24px;left:93px}.ig_messenger.talk .ig_icon{}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/popup/default.css
CHANGED
@@ -1,191 +1,2 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
display: block;
|
4 |
-
z-index: 100000;
|
5 |
-
background-color: transparent !important;
|
6 |
-
color: transparent !important;
|
7 |
-
width: 60%;
|
8 |
-
margin: 32px auto 20px auto !important;
|
9 |
-
}
|
10 |
-
|
11 |
-
.ig_popup .ig_container{
|
12 |
-
position: relative;
|
13 |
-
}
|
14 |
-
|
15 |
-
.ig_popup .ig_container,
|
16 |
-
.ig_popup .ig_container .ig_content {
|
17 |
-
background-color: transparent;
|
18 |
-
}
|
19 |
-
.ig_popup .ig_container .ig_bg_overlay{
|
20 |
-
background-color: transparent;
|
21 |
-
width: 100%;
|
22 |
-
height: 100%;
|
23 |
-
top: 0;
|
24 |
-
left: 0;
|
25 |
-
margin: 0;
|
26 |
-
padding: 0;
|
27 |
-
position: absolute;
|
28 |
-
display: none;
|
29 |
-
}
|
30 |
-
|
31 |
-
.ig_popup .ig_headline {
|
32 |
-
text-decoration: none;
|
33 |
-
font-weight: 800;
|
34 |
-
font-size: 2em;
|
35 |
-
line-height: 1.2em;
|
36 |
-
}
|
37 |
-
|
38 |
-
.ig_popup .ig_data {
|
39 |
-
/*overflow: hidden;*/
|
40 |
-
position: relative;
|
41 |
-
}
|
42 |
-
|
43 |
-
.ig_popup .ig_image {
|
44 |
-
margin: 0 1em;
|
45 |
-
}
|
46 |
-
|
47 |
-
.ig_popup .ig_message {
|
48 |
-
line-height: 1.2em;
|
49 |
-
font-size: 1.2em;
|
50 |
-
}
|
51 |
-
|
52 |
-
.ig_popup .ig_message p{
|
53 |
-
margin-bottom: .9em;
|
54 |
-
}
|
55 |
-
.ig_popup .ig_close {
|
56 |
-
background-image: url(../popup/images/popup-close.png);
|
57 |
-
background-repeat: no-repeat;
|
58 |
-
background-position: left bottom;
|
59 |
-
height: 32px;
|
60 |
-
width: 30px;
|
61 |
-
cursor: pointer;
|
62 |
-
-webkit-background-size: 100%;
|
63 |
-
background-size: 100%;
|
64 |
-
float: right;
|
65 |
-
margin: -2em -1em 0 0;
|
66 |
-
top: 1em;
|
67 |
-
position: relative;
|
68 |
-
z-index: 10;
|
69 |
-
}
|
70 |
-
|
71 |
-
.ig_popup .ig_close:hover {
|
72 |
-
height: 32px;
|
73 |
-
width: 30px;
|
74 |
-
background-position: left top;
|
75 |
-
}
|
76 |
-
|
77 |
-
.ig_popup .ig_button,
|
78 |
-
.ig_popup input[type="submit"],
|
79 |
-
.ig_popup input[type="button"] {
|
80 |
-
cursor: pointer;
|
81 |
-
display: block;
|
82 |
-
border-bottom : none;
|
83 |
-
background-image: none;
|
84 |
-
position: relative;
|
85 |
-
}
|
86 |
-
|
87 |
-
.ig_popup .ig_button:hover,
|
88 |
-
.ig_popup input[type="submit"]:hover,
|
89 |
-
.ig_popup input[type="button"]:hover {
|
90 |
-
|
91 |
-
}
|
92 |
-
.ig_popup .ig_button:active,
|
93 |
-
.ig_popup input[type="submit"]:active,
|
94 |
-
.ig_popup input[type="button"]:active{
|
95 |
-
}
|
96 |
-
|
97 |
-
.mfp-wrap .powered_by {
|
98 |
-
position: fixed;
|
99 |
-
bottom: 1em;
|
100 |
-
left: 1em;
|
101 |
-
font-size: 14px;
|
102 |
-
padding: 0.1em;
|
103 |
-
}
|
104 |
-
|
105 |
-
div.icegram .ig_popup input[type="submit"],
|
106 |
-
div.icegram .ig_popup input[type="button"] {
|
107 |
-
font-size: 100%;
|
108 |
-
}
|
109 |
-
|
110 |
-
@media only screen and (max-device-width: 319px) {
|
111 |
-
.ig_popup {
|
112 |
-
width: 90%;
|
113 |
-
top: 3% !important;
|
114 |
-
margin: 5px auto !important;
|
115 |
-
font-size: 8px;
|
116 |
-
}
|
117 |
-
.ig_popup .ig_button,
|
118 |
-
div.ig_popup input[type="submit"],
|
119 |
-
div.ig_popup input[type="button"] {
|
120 |
-
width: 90% !important;
|
121 |
-
}
|
122 |
-
}
|
123 |
-
|
124 |
-
@media only screen and (min-device-width: 320px) and (max-device-width: 359px) {
|
125 |
-
.ig_popup {
|
126 |
-
width: 85%;
|
127 |
-
top: 5% !important;
|
128 |
-
margin: 10px auto !important;
|
129 |
-
font-size: 10px;
|
130 |
-
|
131 |
-
}
|
132 |
-
.ig_popup .ig_button,
|
133 |
-
div.ig_popup input[type="submit"],
|
134 |
-
div.ig_popup input[type="button"] {
|
135 |
-
width: 90% !important;
|
136 |
-
}
|
137 |
-
}
|
138 |
-
|
139 |
-
@media only screen and (min-device-width: 360px) and (max-device-width: 413px) {
|
140 |
-
.ig_popup {
|
141 |
-
width: 85%;
|
142 |
-
top: 5% !important;
|
143 |
-
margin: 10px auto !important;
|
144 |
-
font-size: 12px;
|
145 |
-
}
|
146 |
-
.ig_popup .ig_button,
|
147 |
-
div.ig_popup input[type="submit"],
|
148 |
-
div.ig_popup input[type="button"] {
|
149 |
-
width: 90% !important;
|
150 |
-
}
|
151 |
-
}
|
152 |
-
|
153 |
-
@media only screen and (min-device-width: 414px) and (max-device-width: 643px) {
|
154 |
-
.ig_popup {
|
155 |
-
width: 85%;
|
156 |
-
top: 5% !important;
|
157 |
-
margin: 10px auto !important;
|
158 |
-
font-size: 13px;
|
159 |
-
}
|
160 |
-
.ig_popup .ig_button,
|
161 |
-
div.ig_popup input[type="submit"],
|
162 |
-
div.ig_popup input[type="button"] {
|
163 |
-
width: 90% !important;
|
164 |
-
}
|
165 |
-
}
|
166 |
-
|
167 |
-
|
168 |
-
@media only screen and (min-device-width: 644px) and (max-device-width: 767px) and (orientation : portrait) {
|
169 |
-
.ig_popup {
|
170 |
-
top: 5% !important;
|
171 |
-
margin: 10px auto !important;
|
172 |
-
font-size: 14px;
|
173 |
-
}
|
174 |
-
}
|
175 |
-
|
176 |
-
@media only screen and (min-device-width: 644px) and (max-device-width: 767px) and (orientation : landscape) {
|
177 |
-
.ig_popup {
|
178 |
-
top: 5% !important;
|
179 |
-
margin: 10px auto !important;
|
180 |
-
font-size: 11px;
|
181 |
-
}
|
182 |
-
}
|
183 |
-
|
184 |
-
/* Small devices (tablets, 768px and up) */
|
185 |
-
@media only screen and (min-width: 768px) and (max-device-width: 992px){
|
186 |
-
.ig_popup {
|
187 |
-
top: 5% !important;
|
188 |
-
margin: 10px auto !important;
|
189 |
-
font-size: 14px;
|
190 |
-
}
|
191 |
-
}
|
1 |
+
/* Magnific popup css */
|
2 |
+
.mfp-bg{top:0;left:0;width:100%;height:100%;z-index:1042;overflow:hidden;position:fixed;background:#0b0b0b;opacity:.8;filter:alpha(opacity=80)}.mfp-wrap{top:0;left:0;width:100%;height:100%;z-index:999999;position:fixed;outline:0!important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;width:100%;height:100%;left:0;top:0;padding:0 8px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mfp-container:before{content:'';display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:1045}.mfp-ajax-holder .mfp-content,.mfp-inline-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:-moz-zoom-out;cursor:-webkit-zoom-out;cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-arrow,.mfp-close,.mfp-counter,.mfp-preloader{-webkit-user-select:none;-moz-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none!important}.mfp-preloader{color:#CCC;position:absolute;top:50%;width:auto;text-align:center;margin-top:-.8em;left:8px;right:8px;z-index:1044}.mfp-preloader a{color:#CCC}.mfp-preloader a:hover{color:#FFF}.mfp-s-error .mfp-content,.mfp-s-ready .mfp-preloader{display:none}button.mfp-arrow,button.mfp-close{overflow:visible;cursor:pointer;background:0 0;border:0;-webkit-appearance:none;display:block;outline:0;padding:0;z-index:1046;-webkit-box-shadow:none;box-shadow:none}button::-moz-focus-inner{padding:0;border:0}.mfp-close{width:44px;height:44px;line-height:44px;position:absolute;right:0;top:0;text-decoration:none;text-align:center;opacity:.65;filter:alpha(opacity=65);padding:0 0 18px 10px;color:#FFF;font-style:normal;font-size:28px;font-family:Arial,Baskerville,monospace}.mfp-close:focus,.mfp-close:hover{opacity:1;filter:alpha(opacity=100)}.mfp-close:active{top:1px}.mfp-close-btn-in .mfp-close{color:#333}.mfp-iframe-holder .mfp-close,.mfp-image-holder .mfp-close{color:#FFF;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#CCC;font-size:12px;line-height:18px;white-space:nowrap}.mfp-arrow{position:absolute;opacity:.65;filter:alpha(opacity=65);margin:-55px 0 0;top:50%;padding:0;width:90px;height:110px;-webkit-tap-highlight-color:transparent}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:focus,.mfp-arrow:hover{opacity:1;filter:alpha(opacity=100)}.mfp-arrow .mfp-a,.mfp-arrow .mfp-b,.mfp-arrow:after,.mfp-arrow:before{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:inset transparent}.mfp-arrow .mfp-a,.mfp-arrow:after{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow .mfp-b,.mfp-arrow:before{border-top-width:21px;border-bottom-width:21px;opacity:.7}.mfp-arrow-left{left:0}.mfp-arrow-left .mfp-a,.mfp-arrow-left:after{border-right:17px solid #FFF;margin-left:31px}.mfp-arrow-left .mfp-b,.mfp-arrow-left:before{margin-left:25px;border-right:27px solid #3F3F3F}.mfp-arrow-right{right:0}.mfp-arrow-right .mfp-a,.mfp-arrow-right:after{border-left:17px solid #FFF;margin-left:39px}.mfp-arrow-right .mfp-b,.mfp-arrow-right:before{border-left:27px solid #3F3F3F}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;box-shadow:0 0 8px rgba(0,0,0,.6);background:#000}img.mfp-img{width:auto;max-width:100%;height:auto;display:block;line-height:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:40px 0;margin:0 auto}.mfp-figure{line-height:0}.mfp-figure:after{content:'';position:absolute;left:0;top:40px;bottom:40px;display:block;right:0;width:auto;height:auto;z-index:-1;box-shadow:0 0 8px rgba(0,0,0,.6);background:#444}.mfp-figure small{color:#BDBDBD;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#F3F3F3;word-wrap:break-word;padding-right:36px}.mfp-image-holder .mfp-content{max-width:100%}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}@media screen and (max-width:800px) and (orientation:landscape),screen and (max-height:300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,.6);position:fixed;text-align:center;padding:0}}@media all and (max-width:900px){.mfp-arrow{-webkit-transform:scale(.75);transform:scale(.75)}.mfp-arrow-left{-webkit-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}.mfp-ie7 .mfp-img{padding:0}.mfp-ie7 .mfp-bottom-bar{width:600px;left:50%;margin-left:-300px;margin-top:5px;padding-bottom:5px}.mfp-ie7 .mfp-container{padding:0}.mfp-ie7 .mfp-content{padding-top:44px}.mfp-ie7 .mfp-close{top:0;right:0;padding-top:0}.ig_popup{opacity:1;display:block;z-index:100000;background-color:transparent!important;color:transparent!important;width:60%;margin:32px auto 20px auto!important}.ig_popup .ig_container{position:relative}.ig_popup .ig_container,.ig_popup .ig_container .ig_content{background-color:transparent}.ig_popup .ig_container .ig_bg_overlay{background-color:transparent;width:100%;height:100%;top:0;left:0;margin:0;padding:0;position:absolute;display:none}.ig_popup .ig_headline{text-decoration:none;font-weight:800;font-size:2em;line-height:1.2em}.ig_popup .ig_data{position:relative}.ig_popup .ig_image{margin:0 1em}.ig_popup .ig_message{line-height:1.2em;font-size:1.2em}.ig_popup .ig_message p{margin-bottom:.9em}.ig_popup .ig_close{background-image:url(../popup/images/popup-close.png);background-repeat:no-repeat;background-position:left bottom;height:32px;width:30px;cursor:pointer;-webkit-background-size:100%;background-size:100%;float:right;margin:-2em -1em 0 0;top:1em;position:relative;z-index:10}.ig_popup .ig_close:hover{height:32px;width:30px;background-position:left top}.ig_popup .ig_button,.ig_popup input[type="submit"],.ig_popup input[type="button"]{cursor:pointer;display:block;border-bottom:none;background-image:none;position:relative}.ig_popup .ig_button:hover,.ig_popup input[type="submit"]:hover,.ig_popup input[type="button"]:hover{}.ig_popup .ig_button:active,.ig_popup input[type="submit"]:active,.ig_popup input[type="button"]:active{}.mfp-wrap .powered_by{position:fixed;bottom:1em;left:1em;font-size:14px;padding:0.1em}div.icegram .ig_popup input[type="submit"],div.icegram .ig_popup input[type="button"]{font-size:100%}@media only screen and (max-device-width:319px){.ig_popup{width:90%;top:3%!important;margin:5px auto!important;font-size:8px}.ig_popup .ig_button,div.ig_popup input[type="submit"],div.ig_popup input[type="button"]{width:90%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup{width:85%;top:5%!important;margin:10px auto!important;font-size:10px}.ig_popup .ig_button,div.ig_popup input[type="submit"],div.ig_popup input[type="button"]{width:90%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup{width:85%;top:5%!important;margin:10px auto!important;font-size:12px}.ig_popup .ig_button,div.ig_popup input[type="submit"],div.ig_popup input[type="button"]{width:90%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup{width:85%;top:5%!important;margin:10px auto!important;font-size:13px}.ig_popup .ig_button,div.ig_popup input[type="submit"],div.ig_popup input[type="button"]{width:90%!important}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:portrait){.ig_popup{top:5%!important;margin:10px auto!important;font-size:14px}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:landscape){.ig_popup{top:5%!important;margin:10px auto!important;font-size:11px}}@media only screen and (min-width:768px) and (max-device-width:992px){.ig_popup{top:5%!important;margin:10px auto!important;font-size:14px}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/popup/main.js
CHANGED
@@ -1,66 +1,92 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
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 |
-
|
65 |
-
|
66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Icegram Message Type - Popup
|
3 |
+
**/
|
4 |
+
function Icegram_Message_Type_Popup(e){Icegram_Message_Type.apply(this,arguments)}Icegram_Message_Type_Popup.prototype=Object.create(Icegram_Message_Type.prototype),Icegram_Message_Type_Popup.prototype.constructor=Icegram_Message_Type_Popup,Icegram_Message_Type_Popup.prototype.get_template_default=function(){return'<div id="icegram_message_{{=id}}" class="mfp-hide icegram ig_popup {{=theme}}" data={{=id}}><div class="ig_close" id="popup_box_close_{{=id}}"></div><div class="ig_container" data={{=id}}><div class="ig_bg_overlay"></div><div class="ig_data ig_clear"><div class="ig_headline">{{=headline}}</div><div class="ig_content"><div class="ig_message">{{=message}}</div></div></div><div class="ig_button" >{{=label}}</div></div></div>'},Icegram_Message_Type_Popup.prototype.post_render=function(){(void 0==this.data.use_theme_defaults||"yes"!=this.data.use_theme_defaults)&&void 0!=this.data.bg_color&&""!=this.data.bg_color&&this.el.find(".ig_bg_overlay").css("border-color",this.data.bg_color)},Icegram_Message_Type_Popup.prototype.show=function(e,t){if(!this.is_visible()){var i=this,n="#icegram_message_"+this.data.id
|
5 |
+
jQuery.magnificPopup.open({items:{src:n,type:"inline"},showCloseBtn:!1,callbacks:{close:function(){t!==!0&&i.track("closed")}}}),t!==!0&&this.track("shown")}},Icegram_Message_Type_Popup.prototype.add_powered_by=function(e){setTimeout(function(){jQuery(".mfp-wrap").append('<div class="powered_by"><a href="'+e.link+'" target="_blank">'+e.text+"</a></div>")},1e3+1e3*this.data.delay_time)},Icegram_Message_Type_Popup.prototype.hide=function(e,t){if(this.is_visible()){var i="#icegram_message_"+this.data.id
|
6 |
+
jQuery.magnificPopup.close({items:{src:i,type:"inline"}})}},function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(e){var t,i,n,o,a,s,r="Close",l="BeforeClose",c="AfterClose",p="BeforeAppend",d="MarkupParse",u="Open",m="Change",f="mfp",g="."+f,v="mfp-ready",h="mfp-removing",_="mfp-prevent-close",y=function(){},C=!!window.jQuery,b=e(window),I=function(e,i){t.ev.on(f+e+g,i)},w=function(t,i,n,o){var a=document.createElement("div")
|
7 |
+
return a.className="mfp-"+t,n&&(a.innerHTML=n),o?i&&i.appendChild(a):(a=e(a),i&&a.appendTo(i)),a},T=function(i,n){t.ev.triggerHandler(f+i,n),t.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),t.st.callbacks[i]&&t.st.callbacks[i].apply(t,e.isArray(n)?n:[n]))},P=function(i){return i===s&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),s=i),t.currTemplate.closeBtn},k=function(){e.magnificPopup.instance||(t=new y,t.init(),e.magnificPopup.instance=t)},S=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"]
|
8 |
+
if(void 0!==e.transition)return!0
|
9 |
+
for(;t.length;)if(t.pop()+"Transition"in e)return!0
|
10 |
+
return!1}
|
11 |
+
y.prototype={constructor:y,init:function(){var i=navigator.appVersion
|
12 |
+
t.isIE7=-1!==i.indexOf("MSIE 7."),t.isIE8=-1!==i.indexOf("MSIE 8."),t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(i),t.isIOS=/iphone|ipad|ipod/gi.test(i),t.supportsTransition=S(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),n=e(document),t.popupsCache={}},open:function(i){var o
|
13 |
+
if(i.isObj===!1){t.items=i.items.toArray(),t.index=0
|
14 |
+
var s,r=i.items
|
15 |
+
for(o=0;o<r.length;o++)if(s=r[o],s.parsed&&(s=s.el[0]),s===i.el[0]){t.index=o
|
16 |
+
break}}else t.items=e.isArray(i.items)?i.items:[i.items],t.index=i.index||0
|
17 |
+
if(t.isOpen)return void t.updateItemHTML()
|
18 |
+
t.types=[],a="",i.mainEl&&i.mainEl.length?t.ev=i.mainEl.eq(0):t.ev=n,i.key?(t.popupsCache[i.key]||(t.popupsCache[i.key]={}),t.currTemplate=t.popupsCache[i.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,i),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=w("bg").on("click"+g,function(){t.close()}),t.wrap=w("wrap").attr("tabindex",-1).on("click"+g,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=w("container",t.wrap)),t.contentContainer=w("content"),t.st.preloader&&(t.preloader=w("preloader",t.container,t.st.tLoading))
|
19 |
+
var l=e.magnificPopup.modules
|
20 |
+
for(o=0;o<l.length;o++){var c=l[o]
|
21 |
+
c=c.charAt(0).toUpperCase()+c.slice(1),t["init"+c].call(t)}T("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(I(d,function(e,t,i,n){i.close_replaceWith=P(n.type)}),a+=" mfp-close-btn-in"):t.wrap.append(P())),t.st.alignTop&&(a+=" mfp-align-top"),t.wrap.css(t.fixedContentPos?{overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}:{top:b.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:n.height(),position:"absolute"}),t.st.enableEscapeKey&&n.on("keyup"+g,function(e){27===e.keyCode&&t.close()}),b.on("resize"+g,function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a)
|
22 |
+
var p=t.wH=b.height(),m={}
|
23 |
+
if(t.fixedContentPos&&t._hasScrollBar(p)){var f=t._getScrollbarSize()
|
24 |
+
f&&(m.marginRight=f)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):m.overflow="hidden")
|
25 |
+
var h=t.st.mainClass
|
26 |
+
return t.isIE7&&(h+=" mfp-ie7"),h&&t._addClassToMFP(h),t.updateItemHTML(),T("BuildControls"),e("html").css(m),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(v),t._setFocus()):t.bgOverlay.addClass(v),n.on("focusin"+g,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(p),T(u),i},close:function(){t.isOpen&&(T(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(h),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){T(r)
|
27 |
+
var i=h+" "+v+" "
|
28 |
+
if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(i+=t.st.mainClass+" "),t._removeClassFromMFP(i),t.fixedContentPos){var o={marginRight:""}
|
29 |
+
t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}n.off("keyup"+g+" focusin"+g),t.ev.off(g),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),t.st.showCloseBtn&&(!t.st.closeBtnInside||t.currTemplate[t.currItem.type]===!0)&&t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,T(c)},updateSize:function(e){if(t.isIOS){var i=document.documentElement.clientWidth/window.innerWidth,n=window.innerHeight*i
|
30 |
+
t.wrap.css("height",n),t.wH=n}else t.wH=e||b.height()
|
31 |
+
t.fixedContentPos||t.wrap.css("height",t.wH),T("Resize")},updateItemHTML:function(){var i=t.items[t.index]
|
32 |
+
t.contentContainer.detach(),t.content&&t.content.detach(),i.parsed||(i=t.parseEl(t.index))
|
33 |
+
var n=i.type
|
34 |
+
if(T("BeforeChange",[t.currItem?t.currItem.type:"",n]),t.currItem=i,!t.currTemplate[n]){var a=t.st[n]?t.st[n].markup:!1
|
35 |
+
T("FirstMarkupParse",a),a?t.currTemplate[n]=e(a):t.currTemplate[n]=!0}o&&o!==i.type&&t.container.removeClass("mfp-"+o+"-holder")
|
36 |
+
var s=t["get"+n.charAt(0).toUpperCase()+n.slice(1)](i,t.currTemplate[n])
|
37 |
+
t.appendContent(s,n),i.preloaded=!0,T(m,i),o=i.type,t.container.prepend(t.contentContainer),T("AfterChange")},appendContent:function(e,i){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[i]===!0?t.content.find(".mfp-close").length||t.content.append(P()):t.content=e:t.content="",T(p),t.container.addClass("mfp-"+i+"-holder"),t.contentContainer.append(t.content)},parseEl:function(i){var n,o=t.items[i]
|
38 |
+
if(o.tagName?o={el:e(o)}:(n=o.type,o={data:o,src:o.src}),o.el){for(var a=t.types,s=0;s<a.length;s++)if(o.el.hasClass("mfp-"+a[s])){n=a[s]
|
39 |
+
break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=n||t.st.type||"inline",o.index=i,o.parsed=!0,t.items[i]=o,T("ElementParse",o),t.items[i]},addGroup:function(e,i){var n=function(n){n.mfpEl=this,t._openClick(n,e,i)}
|
40 |
+
i||(i={})
|
41 |
+
var o="click.magnificPopup"
|
42 |
+
i.mainEl=e,i.items?(i.isObj=!0,e.off(o).on(o,n)):(i.isObj=!1,i.delegate?e.off(o).on(o,i.delegate,n):(i.items=e,e.off(o).on(o,n)))},_openClick:function(i,n,o){var a=void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick
|
43 |
+
if(a||2!==i.which&&!i.ctrlKey&&!i.metaKey){var s=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn
|
44 |
+
if(s)if(e.isFunction(s)){if(!s.call(t))return!0}else if(b.width()<s)return!0
|
45 |
+
i.type&&(i.preventDefault(),t.isOpen&&i.stopPropagation()),o.el=e(i.mfpEl),o.delegate&&(o.items=n.find(o.delegate)),t.open(o)}},updateStatus:function(e,n){if(t.preloader){i!==e&&t.container.removeClass("mfp-s-"+i),!n&&"loading"===e&&(n=t.st.tLoading)
|
46 |
+
var o={status:e,text:n}
|
47 |
+
T("UpdateStatus",o),e=o.status,n=o.text,t.preloader.html(n),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),i=e}},_checkIfClose:function(i){if(!e(i).hasClass(_)){var n=t.st.closeOnContentClick,o=t.st.closeOnBgClick
|
48 |
+
if(n&&o)return!0
|
49 |
+
if(!t.content||e(i).hasClass("mfp-close")||t.preloader&&i===t.preloader[0])return!0
|
50 |
+
if(i===t.content[0]||e.contains(t.content[0],i)){if(n)return!0}else if(o&&e.contains(document,i))return!0
|
51 |
+
return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?n.height():document.body.scrollHeight)>(e||b.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(i){return i.target===t.wrap[0]||e.contains(t.wrap[0],i.target)?void 0:(t._setFocus(),!1)},_parseMarkup:function(t,i,n){var o
|
52 |
+
n.data&&(i=e.extend(n.data,i)),T(d,[t,i,n]),e.each(i,function(e,i){if(void 0===i||i===!1)return!0
|
53 |
+
if(o=e.split("_"),o.length>1){var n=t.find(g+"-"+o[0])
|
54 |
+
if(n.length>0){var a=o[1]
|
55 |
+
"replaceWith"===a?n[0]!==i[0]&&n.replaceWith(i):"img"===a?n.is("img")?n.attr("src",i):n.replaceWith('<img src="'+i+'" class="'+n.attr("class")+'" />'):n.attr(o[1],i)}}else t.find(g+"-"+e).html(i)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div")
|
56 |
+
e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:y.prototype,modules:[],open:function(t,i){return k(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(e.magnificPopup.defaults[t]=i.options),e.extend(this.proto,i.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(i){k()
|
57 |
+
var n=e(this)
|
58 |
+
if("string"==typeof i)if("open"===i){var o,a=C?n.data("magnificPopup"):n[0].magnificPopup,s=parseInt(arguments[1],10)||0
|
59 |
+
a.items?o=a.items[s]:(o=n,a.delegate&&(o=o.find(a.delegate)),o=o.eq(s)),t._openClick({mfpEl:o},n,a)}else t.isOpen&&t[i].apply(t,Array.prototype.slice.call(arguments,1))
|
60 |
+
else i=e.extend(!0,{},i),C?n.data("magnificPopup",i):n[0].magnificPopup=i,t.addGroup(n,i)
|
61 |
+
return n}
|
62 |
+
var E,O,x,z="inline",M=function(){x&&(O.after(x.addClass(E)).detach(),x=null)}
|
63 |
+
e.magnificPopup.registerModule(z,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(z),I(r+"."+z,function(){M()})},getInline:function(i,n){if(M(),i.src){var o=t.st.inline,a=e(i.src)
|
64 |
+
if(a.length){var s=a[0].parentNode
|
65 |
+
s&&s.tagName&&(O||(E=o.hiddenClass,O=w(E),E="mfp-"+E),x=a.after(O).detach().removeClass(E)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),a=e("<div>")
|
66 |
+
return i.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(n,{},i),n}}})
|
67 |
+
var B,H=function(i){if(i.data&&void 0!==i.data.title)return i.data.title
|
68 |
+
var n=t.st.image.titleSrc
|
69 |
+
if(n){if(e.isFunction(n))return n.call(t,i)
|
70 |
+
if(i.el)return i.el.attr(n)||""}return""}
|
71 |
+
e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var i=t.st.image,n=".image"
|
72 |
+
t.types.push("image"),I(u+n,function(){"image"===t.currItem.type&&i.cursor&&e(document.body).addClass(i.cursor)}),I(r+n,function(){i.cursor&&e(document.body).removeClass(i.cursor),b.off("resize"+g)}),I("Resize"+n,t.resizeImage),t.isLowIE&&I("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem
|
73 |
+
if(e&&e.img&&t.st.image.verticalFit){var i=0
|
74 |
+
t.isLowIE&&(i=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-i)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,B&&clearInterval(B),e.isCheckingImgSize=!1,T("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var i=0,n=e.img[0],o=function(a){B&&clearInterval(B),B=setInterval(function(){return n.naturalWidth>0?void t._onImageHasSize(e):(i>200&&clearInterval(B),i++,3===i?o(10):40===i?o(50):100===i&&o(500),void 0)},a)}
|
75 |
+
o(1)},getImage:function(i,n){var o=0,a=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,T("ImageLoadComplete")):(o++,200>o?setTimeout(a,100):s()))},s=function(){i&&(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("error",r.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},r=t.st.image,l=n.find(".mfp-img")
|
76 |
+
if(l.length){var c=document.createElement("img")
|
77 |
+
c.className="mfp-img",i.el&&i.el.find("img").length&&(c.alt=i.el.find("img").attr("alt")),i.img=e(c).on("load.mfploader",a).on("error.mfploader",s),c.src=i.src,l.is("img")&&(i.img=i.img.clone()),c=i.img[0],c.naturalWidth>0?i.hasSize=!0:c.width||(i.hasSize=!1)}return t._parseMarkup(n,{title:H(i),img_replaceWith:i.img},i),t.resizeImage(),i.hasSize?(B&&clearInterval(B),i.loadError?(n.addClass("mfp-loading"),t.updateStatus("error",r.tError.replace("%url%",i.src))):(n.removeClass("mfp-loading"),t.updateStatus("ready")),n):(t.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,n.addClass("mfp-loading"),t.findImageSize(i)),n)}}})
|
78 |
+
var F,A=function(){return void 0===F&&(F=void 0!==document.createElement("p").style.MozTransform),F}
|
79 |
+
e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,i=t.st.zoom,n=".zoom"
|
80 |
+
if(i.enabled&&t.supportsTransition){var o,a,s=i.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+i.duration/1e3+"s "+i.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition"
|
81 |
+
return o["-webkit-"+a]=o["-moz-"+a]=o["-o-"+a]=o[a]=n,t.css(o),t},p=function(){t.content.css("visibility","visible")}
|
82 |
+
I("BuildControls"+n,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return void p()
|
83 |
+
a=c(e),a.css(t._getOffset()),t.wrap.append(a),o=setTimeout(function(){a.css(t._getOffset(!0)),o=setTimeout(function(){p(),setTimeout(function(){a.remove(),e=a=null,T("ZoomAnimationEnded")},16)},s)},16)}}),I(l+n,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=s,!e){if(e=t._getItemToZoom(),!e)return
|
84 |
+
a=c(e)}a.css(t._getOffset(!0)),t.wrap.append(a),t.content.css("visibility","hidden"),setTimeout(function(){a.css(t._getOffset())},16)}}),I(r+n,function(){t._allowZoom()&&(p(),a&&a.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return t.currItem.hasSize?t.currItem.img:!1},_getOffset:function(i){var n
|
85 |
+
n=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)
|
86 |
+
var o=n.offset(),a=parseInt(n.css("padding-top"),10),s=parseInt(n.css("padding-bottom"),10)
|
87 |
+
o.top-=e(window).scrollTop()-a
|
88 |
+
var r={width:n.width(),height:(C?n.innerHeight():n[0].offsetHeight)-s-a}
|
89 |
+
return A()?r["-moz-transform"]=r.transform="translate("+o.left+"px,"+o.top+"px)":(r.left=o.left,r.top=o.top),r}}})
|
90 |
+
var L="retina"
|
91 |
+
e.magnificPopup.registerModule(L,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,i=e.ratio
|
92 |
+
i=isNaN(i)?i():i,i>1&&(I("ImageHasSize."+L,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})}),I("ElementParse."+L,function(t,n){n.src=e.replaceSrc(n,i)}))}}}}),k()})
|
message-types/popup/main.php
CHANGED
@@ -18,9 +18,8 @@ class Icegram_Message_Type_Popup extends Icegram_Message_Type {
|
|
18 |
function define_settings() {
|
19 |
parent::define_settings();
|
20 |
$this->settings['theme']['default'] = 'persuade';
|
21 |
-
$this->settings['bg_color']['default'] = '
|
22 |
-
$this->settings['text_color']['default'] = '
|
23 |
-
|
24 |
unset ( $this->settings['position'],
|
25 |
$this->settings['icon']
|
26 |
);
|
18 |
function define_settings() {
|
19 |
parent::define_settings();
|
20 |
$this->settings['theme']['default'] = 'persuade';
|
21 |
+
$this->settings['bg_color']['default'] = '';
|
22 |
+
$this->settings['text_color']['default'] = '';
|
|
|
23 |
unset ( $this->settings['position'],
|
24 |
$this->settings['icon']
|
25 |
);
|
message-types/popup/themes/air-mail.css
CHANGED
@@ -1,112 +1 @@
|
|
1 |
-
.ig_popup.air-mail .ig_container {
|
2 |
-
border-width: 8px;
|
3 |
-
/*white/blue/red border*/
|
4 |
-
-moz-border-image: -moz-repeating-linear-gradient(45deg, #b37b7a, #b37b7a 10px, #F2F2F2 10px, #F2F2F2 20px, #7897ba 20px, #7897ba 30px, #F2F2F2 30px, #F2F2F2 40px) 8 round;
|
5 |
-
-webkit-border-image: -webkit-repeating-linear-gradient(45deg, #b37b7a, #b37b7a 10px, #F2F2F2 10px, #F2F2F2 20px, #7897ba 20px, #7897ba 30px, #F2F2F2 30px, #F2F2F2 40px) 8 round;
|
6 |
-
-o-border-image: -o-repeating-linear-gradient(45deg, #b37b7a, #b37b7a 10px, #F2F2F2 10px, #F2F2F2 20px, #7897ba 20px, #7897ba 30px, #F2F2F2 30px, #F2F2F2 40px) 8 round;
|
7 |
-
border-image: repeating-linear-gradient(45deg, #b37b7a, #b37b7a 10px, #F2F2F2 10px, #F2F2F2 20px, #7897ba 20px, #7897ba 30px, #F2F2F2 30px, #F2F2F2 40px) 8 round;
|
8 |
-
background-color: #F2F2F2;
|
9 |
-
color: hsl(0, 0%, 44%);
|
10 |
-
}
|
11 |
-
.ig_popup.air-mail .ig_container .ig_bg_overlay{
|
12 |
-
display: block;
|
13 |
-
background: -webkit-linear-gradient(top, transparent 0%, #888 30%, #888 70%, transparent 100%);
|
14 |
-
background: -o-linear-gradient(top, transparent 0%, #888 30%, #888 70%, transparent 100%);
|
15 |
-
background: -moz-linear-gradient(top, transparent 0%, #888 30%, #888 70%, transparent 100%);
|
16 |
-
background: linear-gradient(top, transparent 0%, #888 30%, #888 70%, transparent 100%);
|
17 |
-
opacity: .1;
|
18 |
-
}
|
19 |
-
|
20 |
-
.ig_popup.air-mail .ig_headline {
|
21 |
-
padding: .5em;
|
22 |
-
font-size: 2.5em;
|
23 |
-
text-align: center;
|
24 |
-
/*color: hsl(206, 69%, 47%);*/
|
25 |
-
text-shadow: 0 1px 0 rgba(0, 0, 0, .5);
|
26 |
-
}
|
27 |
-
|
28 |
-
.ig_popup.air-mail .ig_image {
|
29 |
-
float: right;
|
30 |
-
}
|
31 |
-
|
32 |
-
.ig_popup.air-mail .ig_message {
|
33 |
-
/*color: hsl(0, 0%, 44%);*/
|
34 |
-
padding: .2em 1.2em;
|
35 |
-
font-size: 1.2em;
|
36 |
-
}
|
37 |
-
|
38 |
-
.ig_popup.air-mail .ig_close {
|
39 |
-
background: url(../images/chosen-sprite.png) no-repeat -43px 0;
|
40 |
-
height: 10px;
|
41 |
-
width: 10px;
|
42 |
-
cursor: pointer;
|
43 |
-
zoom: 1.5;
|
44 |
-
margin: 0;
|
45 |
-
top:12px;
|
46 |
-
right: 12px;
|
47 |
-
}
|
48 |
-
.ig_popup.air-mail .ig_close:hover {
|
49 |
-
background: url(../images/chosen-sprite.png) no-repeat -43px -11px;
|
50 |
-
height: 10px;
|
51 |
-
width: 10px;
|
52 |
-
top:12px;
|
53 |
-
right: 12px;
|
54 |
-
}
|
55 |
-
|
56 |
-
.ig_popup.air-mail .ig_button,
|
57 |
-
div.ig_popup.air-mail input[type="submit"],
|
58 |
-
div.ig_popup.air-mail input[type="button"] {
|
59 |
-
background-color: hsl(6, 78%, 57%);
|
60 |
-
color: hsl(0, 0%, 100%);
|
61 |
-
width: 50% !important;
|
62 |
-
-moz-border-radius: 5px;
|
63 |
-
-webkit-border-radius: 5px;
|
64 |
-
border-radius: 5px;
|
65 |
-
border-top: 0 solid transparent;
|
66 |
-
border-bottom: 0 solid transparent;
|
67 |
-
font-size: 1.1em;
|
68 |
-
text-transform: uppercase;
|
69 |
-
font-weight: 600;
|
70 |
-
text-align: center;
|
71 |
-
margin: 10px auto 20px auto;
|
72 |
-
padding: 1em .15em .85em;
|
73 |
-
}
|
74 |
-
|
75 |
-
.ig_popup.air-mail .ig_button:hover,
|
76 |
-
div.ig_popup.air-mail input[type="submit"]:hover,
|
77 |
-
div.ig_popup.air-mail input[type="button"]:hover {
|
78 |
-
margin: 7px auto 17px auto;
|
79 |
-
border-top: 3px solid #c0392b;
|
80 |
-
border-bottom: 3px solid #c0392b ;
|
81 |
-
}
|
82 |
-
|
83 |
-
.ig_popup.air-mail .ig_button:active,
|
84 |
-
div.ig_popup.air-mail input[type="submit"]:active,
|
85 |
-
div.ig_popup.air-mail input[type="button"]:active{
|
86 |
-
margin: 10px auto 20px auto;
|
87 |
-
border: none;
|
88 |
-
}
|
89 |
-
|
90 |
-
@media only screen and (max-device-width: 319px) {
|
91 |
-
.ig_popup.air-mail .ig_button, .ig_popup.air-mail input[type="submit"], .ig_popup.air-mail input[type="button"]{
|
92 |
-
width: 90% !important;
|
93 |
-
}
|
94 |
-
}
|
95 |
-
|
96 |
-
@media only screen and (min-device-width: 320px) and (max-device-width: 359px) {
|
97 |
-
.ig_popup.air-mail .ig_button, .ig_popup.air-mail input[type="submit"], .ig_popup.air-mail input[type="button"]{
|
98 |
-
width: 90% !important;
|
99 |
-
}
|
100 |
-
}
|
101 |
-
|
102 |
-
@media only screen and (min-device-width: 360px) and (max-device-width: 413px) {
|
103 |
-
.ig_popup.air-mail .ig_button, .ig_popup.air-mail input[type="submit"], .ig_popup.air-mail input[type="button"]{
|
104 |
-
width: 90% !important;
|
105 |
-
}
|
106 |
-
}
|
107 |
-
|
108 |
-
@media only screen and (min-device-width: 414px) and (max-device-width: 643px) {
|
109 |
-
.ig_popup.air-mail .ig_button, .ig_popup.air-mail input[type="submit"], .ig_popup.air-mail input[type="button"]{
|
110 |
-
width: 90% !important;
|
111 |
-
}
|
112 |
-
}
|
1 |
+
.ig_popup.air-mail .ig_container{border-width:8px;-moz-border-image:-moz-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;-webkit-border-image:-webkit-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;-o-border-image:-o-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;border-image:repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;background-color:#F2F2F2;color:hsl(0,0%,44%)}.ig_popup.air-mail .ig_container .ig_bg_overlay{display:block;background:-webkit-linear-gradient(top,transparent 0%,#888 30%,#888 70%,transparent 100%);background:-o-linear-gradient(top,transparent 0%,#888 30%,#888 70%,transparent 100%);background:-moz-linear-gradient(top,transparent 0%,#888 30%,#888 70%,transparent 100%);background:linear-gradient(top,transparent 0%,#888 30%,#888 70%,transparent 100%);opacity:.1}.ig_popup.air-mail .ig_headline{padding:.5em;font-size:2.5em;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.5)}.ig_popup.air-mail .ig_image{float:right}.ig_popup.air-mail .ig_message{padding:.2em 1.2em;font-size:1.2em}.ig_popup.air-mail .ig_close{background:url(../images/chosen-sprite.png) no-repeat -43px 0;height:10px;width:10px;cursor:pointer;zoom:1.5;margin:0;top:12px;right:12px}.ig_popup.air-mail .ig_close:hover{background:url(../images/chosen-sprite.png) no-repeat -43px -11px;height:10px;width:10px;top:12px;right:12px}.ig_popup.air-mail .ig_button,div.ig_popup.air-mail input[type="submit"],div.ig_popup.air-mail input[type="button"]{background:hsl(6,78%,57%);color:hsl(0,0%,100%);width:50%!important;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;border-top:0 solid transparent;border-bottom:0 solid transparent;font-size:1.1em;text-transform:uppercase;font-weight:600;text-align:center;margin:10px auto 20px auto;padding:1em .15em .85em}.ig_popup.air-mail .ig_button:hover,div.ig_popup.air-mail input[type="submit"]:hover,div.ig_popup.air-mail input[type="button"]:hover{margin:7px auto 17px auto;border-top:3px solid #c0392b;border-bottom:3px solid #c0392b}.ig_popup.air-mail .ig_button:active,div.ig_popup.air-mail input[type="submit"]:active,div.ig_popup.air-mail input[type="button"]:active{margin:10px auto 20px auto;border:none}@media only screen and (max-device-width:319px){.ig_popup.air-mail .ig_button,.ig_popup.air-mail input[type="submit"],.ig_popup.air-mail input[type="button"]{width:90%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.air-mail .ig_button,.ig_popup.air-mail input[type="submit"],.ig_popup.air-mail input[type="button"]{width:90%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.air-mail .ig_button,.ig_popup.air-mail input[type="submit"],.ig_popup.air-mail input[type="button"]{width:90%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.air-mail .ig_button,.ig_popup.air-mail input[type="submit"],.ig_popup.air-mail input[type="button"]{width:90%!important}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/popup/themes/amaze.css
CHANGED
@@ -1,129 +1 @@
|
|
1 |
-
.ig_popup.amaze .ig_container {
|
2 |
-
border: .3em solid #444444;
|
3 |
-
background-color: #444444;
|
4 |
-
color: #FFF;
|
5 |
-
}
|
6 |
-
.ig_popup.amaze .ig_container .ig_bg_overlay{
|
7 |
-
display: block;
|
8 |
-
background-image: url(../images/popup-amaze-bg.jpg);
|
9 |
-
opacity: .5;
|
10 |
-
}
|
11 |
-
|
12 |
-
.ig_popup.amaze .ig_headline {
|
13 |
-
padding: .5em;
|
14 |
-
text-align: center;
|
15 |
-
/*color: #fff;*/
|
16 |
-
text-shadow: 0 1px 0 rgba(0, 0, 0, .5);
|
17 |
-
font-size: 2em;
|
18 |
-
}
|
19 |
-
|
20 |
-
.ig_popup.amaze .ig_image {
|
21 |
-
float: left;
|
22 |
-
}
|
23 |
-
|
24 |
-
.ig_popup.amaze .ig_message {
|
25 |
-
font-size: 1.2em;
|
26 |
-
padding: 0 1.2em;
|
27 |
-
font-family: Georgia, Times, "Times New Roman", serif;
|
28 |
-
/*color: hsl(0, 100%, 100%);*/
|
29 |
-
margin: 0 2em;
|
30 |
-
}
|
31 |
-
|
32 |
-
.ig_popup.amaze .ig_button,
|
33 |
-
.ig_popup.amaze input[type="submit"],
|
34 |
-
.ig_popup.amaze input[type="button"] {
|
35 |
-
background: hsl(145, 63%, 49%);
|
36 |
-
color: hsl(0, 100%, 100%);
|
37 |
-
font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
|
38 |
-
font-size: 1.3em;
|
39 |
-
letter-spacing: 1px;
|
40 |
-
vertical-align: top;
|
41 |
-
font-weight: 700;
|
42 |
-
text-align: center;
|
43 |
-
line-height: 1.8em;
|
44 |
-
-moz-border-radius: 3px;
|
45 |
-
-webkit-border-radius: 3px;
|
46 |
-
border-radius: 3px;
|
47 |
-
border-bottom: .2em solid rgba(63, 63, 63, 0.6);
|
48 |
-
text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
|
49 |
-
margin: .2em auto 1em auto;
|
50 |
-
width: 40%;
|
51 |
-
padding: 0.3em 1em;
|
52 |
-
}
|
53 |
-
|
54 |
-
.ig_popup.amaze .ig_button:active,
|
55 |
-
.ig_popup.amaze input[type="submit"]:active,
|
56 |
-
.ig_popup.amaze input[type="button"]:active {
|
57 |
-
border: none;
|
58 |
-
margin: .4em auto 1em auto;
|
59 |
-
}
|
60 |
-
|
61 |
-
|
62 |
-
@media only screen and (max-device-width: 319px) {
|
63 |
-
.ig_popup.amaze {
|
64 |
-
font-size: 10px;
|
65 |
-
}
|
66 |
-
.ig_popup.amaze .ig_message{
|
67 |
-
margin: 0 1em;
|
68 |
-
}
|
69 |
-
.ig_popup.amaze .ig_button, .ig_popup.amaze input[type="submit"], .ig_popup.amaze input[type="button"]{
|
70 |
-
width: 90% !important;
|
71 |
-
}
|
72 |
-
}
|
73 |
-
|
74 |
-
@media only screen and (min-device-width: 320px) and (max-device-width: 359px) {
|
75 |
-
.ig_popup.amaze {
|
76 |
-
font-size: 12px;
|
77 |
-
}
|
78 |
-
.ig_popup.amaze .ig_message{
|
79 |
-
margin: 0 1em;
|
80 |
-
}
|
81 |
-
.ig_popup.amaze .ig_button, .ig_popup.amaze input[type="submit"], .ig_popup.amaze input[type="button"]{
|
82 |
-
width: 90% !important;
|
83 |
-
}
|
84 |
-
}
|
85 |
-
|
86 |
-
@media only screen and (min-device-width: 360px) and (max-device-width: 413px) {
|
87 |
-
.ig_popup.amaze {
|
88 |
-
font-size: 14px;
|
89 |
-
}
|
90 |
-
.ig_popup.amaze .ig_message{
|
91 |
-
margin: 0 1em;
|
92 |
-
}
|
93 |
-
.ig_popup.amaze .ig_button, .ig_popup.amaze input[type="submit"], .ig_popup.amaze input[type="button"]{
|
94 |
-
width: 90% !important;
|
95 |
-
}
|
96 |
-
|
97 |
-
}
|
98 |
-
|
99 |
-
@media only screen and (min-device-width: 414px) and (max-device-width: 643px) {
|
100 |
-
.ig_popup.amaze {
|
101 |
-
font-size: 16px;
|
102 |
-
}
|
103 |
-
.ig_popup.amaze .ig_message{
|
104 |
-
margin: 0 1em;
|
105 |
-
}
|
106 |
-
.ig_popup.amaze .ig_button, .ig_popup.amaze input[type="submit"], .ig_popup.amaze input[type="button"]{
|
107 |
-
width: 90% !important;
|
108 |
-
}
|
109 |
-
}
|
110 |
-
|
111 |
-
|
112 |
-
@media only screen and (min-device-width: 644px) and (max-device-width: 767px) and (orientation : portrait) {
|
113 |
-
.ig_popup.amaze {
|
114 |
-
font-size: 18px;
|
115 |
-
}
|
116 |
-
}
|
117 |
-
|
118 |
-
@media only screen and (min-device-width: 644px) and (max-device-width: 767px) and (orientation : landscape) {
|
119 |
-
.ig_popup.amaze {
|
120 |
-
font-size: 12px;
|
121 |
-
}
|
122 |
-
}
|
123 |
-
|
124 |
-
/* Small devices (tablets, 768px and up) */
|
125 |
-
@media only screen and (min-width: 768px) and (max-device-width: 992px){
|
126 |
-
.ig_popup.amaze {
|
127 |
-
font-size: 14px;
|
128 |
-
}
|
129 |
-
}
|
1 |
+
.ig_popup.amaze .ig_container{border:.3em solid #444;background-color:#444;color:#FFF}.ig_popup.amaze .ig_container .ig_bg_overlay{display:block;background-image:url(../images/popup-amaze-bg.jpg);opacity:.5}.ig_popup.amaze .ig_headline{padding:.5em;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.5);font-size:2em}.ig_popup.amaze .ig_image{float:left}.ig_popup.amaze .ig_message{font-size:1.2em;padding:0 1.2em;font-family:Georgia,Times,"Times New Roman",serif;margin:0 2em}.ig_popup.amaze .ig_button,.ig_popup.amaze input[type="submit"],.ig_popup.amaze input[type="button"]{background:hsl(145,63%,49%);color:hsl(0,100%,100%);font-family:Calibri,Candara,Segoe,"Segoe UI",Optima,Arial,sans-serif;font-size:1.3em;letter-spacing:1px;vertical-align:top;font-weight:700;text-align:center;line-height:1.8em;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;border-bottom:.2em solid rgba(63,63,63,0.6);text-shadow:1px 1px 0 rgba(0,0,0,0.5);margin:.2em auto 1em auto;width:40%;padding:0.3em 1em}.ig_popup.amaze .ig_button:active,.ig_popup.amaze input[type="submit"]:active,.ig_popup.amaze input[type="button"]:active{border:none;margin:.4em auto 1em auto}@media only screen and (max-device-width:319px){.ig_popup.amaze{font-size:10px}.ig_popup.amaze .ig_message{margin:0 1em}.ig_popup.amaze .ig_button,.ig_popup.amaze input[type="submit"],.ig_popup.amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.amaze{font-size:12px}.ig_popup.amaze .ig_message{margin:0 1em}.ig_popup.amaze .ig_button,.ig_popup.amaze input[type="submit"],.ig_popup.amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.amaze{font-size:14px}.ig_popup.amaze .ig_message{margin:0 1em}.ig_popup.amaze .ig_button,.ig_popup.amaze input[type="submit"],.ig_popup.amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.amaze{font-size:16px}.ig_popup.amaze .ig_message{margin:0 1em}.ig_popup.amaze .ig_button,.ig_popup.amaze input[type="submit"],.ig_popup.amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:portrait){.ig_popup.amaze{font-size:18px}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:landscape){.ig_popup.amaze{font-size:12px}}@media only screen and (min-width:768px) and (max-device-width:992px){.ig_popup.amaze{font-size:14px}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/popup/themes/compel.css
CHANGED
@@ -1,108 +1 @@
|
|
1 |
-
.ig_popup.compel .ig_container {
|
2 |
-
background: hsl(0, 0%, 100%);
|
3 |
-
color: hsl(0, 0%, 44%);
|
4 |
-
border: 4px dashed #c0392b;
|
5 |
-
}
|
6 |
-
|
7 |
-
.ig_popup.compel .ig_headline {
|
8 |
-
padding: .5em;
|
9 |
-
/*color: hsl(204, 70%, 53%);*/
|
10 |
-
font-size: 2em;
|
11 |
-
text-shadow: 0 1px 0 rgba(0, 0, 0, .2);
|
12 |
-
margin-bottom: 0.2em;
|
13 |
-
text-align: center;
|
14 |
-
}
|
15 |
-
|
16 |
-
.ig_popup.compel .ig_image {
|
17 |
-
float: left;
|
18 |
-
padding-right: 1em;
|
19 |
-
}
|
20 |
-
|
21 |
-
.ig_popup.compel .ig_message {
|
22 |
-
padding: 0 1.25em;
|
23 |
-
font-size: 1.25em;
|
24 |
-
font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
|
25 |
-
margin: 0 .5em .5em .5em;
|
26 |
-
}
|
27 |
-
|
28 |
-
.ig_popup.compel .ig_close {
|
29 |
-
background: url(../images/chosen-sprite.png) no-repeat -43px 0;
|
30 |
-
height: 10px;
|
31 |
-
width: 10px;
|
32 |
-
cursor: pointer;
|
33 |
-
zoom: 1.5;
|
34 |
-
margin: 0;
|
35 |
-
top:7px;
|
36 |
-
right: 7px;
|
37 |
-
}
|
38 |
-
.ig_popup.compel .ig_close:hover {
|
39 |
-
background: url(../images/chosen-sprite.png) no-repeat -43px -11px;
|
40 |
-
height: 10px;
|
41 |
-
width: 10px;
|
42 |
-
top:7px;
|
43 |
-
right: 7px;
|
44 |
-
}
|
45 |
-
|
46 |
-
.ig_popup.compel .ig_button,
|
47 |
-
.ig_popup.compel input[type="submit"],
|
48 |
-
.ig_popup.compel input[type="button"] {
|
49 |
-
background-color: hsl(6, 78%, 57%);
|
50 |
-
color: hsl(0, 0%, 100%);
|
51 |
-
width: 50% !important;
|
52 |
-
-moz-border-radius: 5px;
|
53 |
-
-webkit-border-radius: 5px;
|
54 |
-
border-radius: 5px;
|
55 |
-
border-bottom: 3px solid hsl(6, 63%, 46%);
|
56 |
-
font-size: 1.1em;
|
57 |
-
text-transform: uppercase;
|
58 |
-
font-weight: 600;
|
59 |
-
text-align: center;
|
60 |
-
margin: 0 auto;
|
61 |
-
margin-bottom: 1em;
|
62 |
-
padding: 1em .15em .85em;
|
63 |
-
|
64 |
-
}
|
65 |
-
|
66 |
-
.ig_popup.compel .ig_button:hover,
|
67 |
-
.ig_popup.compel input[type="submit"]:hover,
|
68 |
-
.ig_popup.compel input[type="button"]:hover {
|
69 |
-
margin-top: -3px;
|
70 |
-
margin-bottom: 1em;
|
71 |
-
border-bottom: 6px solid #c0392b;
|
72 |
-
}
|
73 |
-
.ig_popup.compel .ig_button:active,
|
74 |
-
div.ig_popup.compel input[type="submit"]:active,
|
75 |
-
div.ig_popup.compel input[type="button"]:active{
|
76 |
-
border-top: none;
|
77 |
-
margin: 0 auto;
|
78 |
-
margin-bottom: 1em;
|
79 |
-
}
|
80 |
-
|
81 |
-
@media only screen and (max-device-width: 319px) {
|
82 |
-
.ig_popup.compel .ig_button, .ig_popup.compel input[type="submit"], .ig_popup.compel input[type="button"]{
|
83 |
-
width: 90% !important;
|
84 |
-
padding: 16px 4px 13px;
|
85 |
-
}
|
86 |
-
}
|
87 |
-
|
88 |
-
@media only screen and (min-device-width: 320px) and (max-device-width: 359px) {
|
89 |
-
.ig_popup.compel .ig_button, .ig_popup.compel input[type="submit"], .ig_popup.compel input[type="button"]{
|
90 |
-
width: 90% !important;
|
91 |
-
padding: 16px 4px 13px;
|
92 |
-
}
|
93 |
-
}
|
94 |
-
|
95 |
-
@media only screen and (min-device-width: 360px) and (max-device-width: 413px) {
|
96 |
-
.ig_popup.compel .ig_button, .ig_popup.compel input[type="submit"], .ig_popup.compel input[type="button"]{
|
97 |
-
width: 90% !important;
|
98 |
-
padding: 16px 4px 13px;
|
99 |
-
}
|
100 |
-
|
101 |
-
}
|
102 |
-
|
103 |
-
@media only screen and (min-device-width: 414px) and (max-device-width: 643px) {
|
104 |
-
.ig_popup.compel .ig_button, .ig_popup.compel input[type="submit"], .ig_popup.compel input[type="button"]{
|
105 |
-
width: 90% !important;
|
106 |
-
padding: 16px 4px 13px;
|
107 |
-
}
|
108 |
-
}
|
1 |
+
.ig_popup.compel .ig_container{background:hsl(0,0%,100%);color:hsl(0,0%,44%);border:4px dashed #c0392b}.ig_popup.compel .ig_headline{padding:.5em;font-size:2em;text-shadow:0 1px 0 rgba(0,0,0,.2);margin-bottom:0.2em;text-align:center}.ig_popup.compel .ig_image{float:left;padding-right:1em}.ig_popup.compel .ig_message{padding:0 1.25em;font-size:1.25em;font-family:"Lucida Grande","Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif;margin:0 .5em .5em .5em}.ig_popup.compel .ig_close{background:url(../images/chosen-sprite.png) no-repeat -43px 0;height:10px;width:10px;cursor:pointer;zoom:1.5;margin:0;top:7px;right:7px}.ig_popup.compel .ig_close:hover{background:url(../images/chosen-sprite.png) no-repeat -43px -11px;height:10px;width:10px;top:7px;right:7px}.ig_popup.compel .ig_button,.ig_popup.compel input[type="submit"],.ig_popup.compel input[type="button"]{background:hsl(6,78%,57%);color:hsl(0,0%,100%);width:50%!important;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;border-bottom:3px solid hsl(6,63%,46%);font-size:1.1em;text-transform:uppercase;font-weight:600;text-align:center;margin:0 auto;margin-bottom:1em;padding:1em .15em .85em}.ig_popup.compel .ig_button:hover,.ig_popup.compel input[type="submit"]:hover,.ig_popup.compel input[type="button"]:hover{margin-top:-3px;margin-bottom:1em;border-bottom:6px solid #c0392b}.ig_popup.compel .ig_button:active,div.ig_popup.compel input[type="submit"]:active,div.ig_popup.compel input[type="button"]:active{border-top:none;margin:0 auto;margin-bottom:1em}@media only screen and (max-device-width:319px){.ig_popup.compel .ig_button,.ig_popup.compel input[type="submit"],.ig_popup.compel input[type="button"]{width:90%!important;padding:16px 4px 13px}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.compel .ig_button,.ig_popup.compel input[type="submit"],.ig_popup.compel input[type="button"]{width:90%!important;padding:16px 4px 13px}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.compel .ig_button,.ig_popup.compel input[type="submit"],.ig_popup.compel input[type="button"]{width:90%!important;padding:16px 4px 13px}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.compel .ig_button,.ig_popup.compel input[type="submit"],.ig_popup.compel input[type="button"]{width:90%!important;padding:16px 4px 13px}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/popup/themes/convert.css
CHANGED
@@ -1,76 +1 @@
|
|
1 |
-
.ig_popup.convert .ig_container {
|
2 |
-
background-color: hsl(58, 100%, 90%);
|
3 |
-
color: hsl(0, 1%, 28%);
|
4 |
-
-moz-box-shadow: none;
|
5 |
-
-webkit-box-shadow: none;
|
6 |
-
box-shadow: none;
|
7 |
-
padding-bottom: 1.5em;
|
8 |
-
}
|
9 |
-
|
10 |
-
.ig_popup.convert .ig_headline {
|
11 |
-
font-size: 2.5em;
|
12 |
-
padding: .8em .8em .3em .8em;
|
13 |
-
/*color: hsl(0, 1%, 28%);*/
|
14 |
-
letter-spacing: 0;
|
15 |
-
text-align: left;
|
16 |
-
}
|
17 |
-
|
18 |
-
.ig_popup.convert .ig_image {
|
19 |
-
float: right;
|
20 |
-
}
|
21 |
-
|
22 |
-
.ig_popup.convert .ig_message {
|
23 |
-
font-size: 1.5em;
|
24 |
-
padding: 0.5em 1.5em;
|
25 |
-
font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
|
26 |
-
/*color: hsl(0, 1%, 28%);*/
|
27 |
-
vertical-align: baseline;
|
28 |
-
}
|
29 |
-
|
30 |
-
.ig_popup.convert .ig_button,
|
31 |
-
.ig_popup.convert input[type="submit"],
|
32 |
-
.ig_popup.convert input[type="button"] {
|
33 |
-
text-transform: uppercase;
|
34 |
-
font-weight: 700;
|
35 |
-
text-decoration: none;
|
36 |
-
background-color: hsl(0, 94%, 41%);
|
37 |
-
color: hsl(0, 33%, 98%);
|
38 |
-
font-size: 1.75em;
|
39 |
-
border: .25em solid hsl(0, 6%, 71%) !important;
|
40 |
-
width: 60%;
|
41 |
-
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
42 |
-
-moz-border-radius: 1em;
|
43 |
-
-webkit-border-radius: 1em;
|
44 |
-
border-radius: 1em;
|
45 |
-
text-align: center;
|
46 |
-
line-height: 1.5em;
|
47 |
-
-moz-box-sizing: content-box;
|
48 |
-
box-sizing: content-box;
|
49 |
-
margin: 0.1em auto;
|
50 |
-
padding: 0.1em 1em;
|
51 |
-
clear: both;
|
52 |
-
}
|
53 |
-
|
54 |
-
@media only screen and (max-device-width: 319px) {
|
55 |
-
.ig_popup.convert .ig_button, .ig_popup.convert input[type="submit"], .ig_popup.convert input[type="button"]{
|
56 |
-
width: 75% !important;
|
57 |
-
}
|
58 |
-
}
|
59 |
-
|
60 |
-
@media only screen and (min-device-width: 320px) and (max-device-width: 359px) {
|
61 |
-
.ig_popup.convert .ig_button, .ig_popup.convert input[type="submit"], .ig_popup.convert input[type="button"]{
|
62 |
-
width: 75% !important;
|
63 |
-
}
|
64 |
-
}
|
65 |
-
|
66 |
-
@media only screen and (min-device-width: 360px) and (max-device-width: 413px) {
|
67 |
-
.ig_popup.convert .ig_button, .ig_popup.convert input[type="submit"], .ig_popup.convert input[type="button"]{
|
68 |
-
width: 75% !important;
|
69 |
-
}
|
70 |
-
}
|
71 |
-
|
72 |
-
@media only screen and (min-device-width: 414px) and (max-device-width: 643px) {
|
73 |
-
.ig_popup.convert .ig_button, .ig_popup.convert input[type="submit"], .ig_popup.convert input[type="button"]{
|
74 |
-
width: 75% !important;
|
75 |
-
}
|
76 |
-
}
|
1 |
+
.ig_popup.convert .ig_container{background-color:hsl(58,100%,90%);color:hsl(0,1%,28%);-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;padding-bottom:1.5em}.ig_popup.convert .ig_headline{font-size:2.5em;padding:.8em .8em .3em .8em;letter-spacing:0;text-align:left}.ig_popup.convert .ig_image{float:right}.ig_popup.convert .ig_message{font-size:1.5em;padding:0.5em 1.5em;font-family:Calibri,Candara,Segoe,"Segoe UI",Optima,Arial,sans-serif;vertical-align:baseline}.ig_popup.convert .ig_button,.ig_popup.convert input[type="submit"],.ig_popup.convert input[type="button"]{background:hsl(0,94%,41%);color:hsl(0,33%,98%);text-transform:uppercase;font-weight:700;text-decoration:none;font-size:1.75em;border:.25em solid hsl(0,6%,71%)!important;width:60%;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;-moz-border-radius:1em;-webkit-border-radius:1em;border-radius:1em;text-align:center;line-height:1.5em;-moz-box-sizing:content-box;box-sizing:content-box;margin:0.1em auto;padding:0.1em 1em;clear:both}@media only screen and (max-device-width:319px){.ig_popup.convert .ig_button,.ig_popup.convert input[type="submit"],.ig_popup.convert input[type="button"]{width:75%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.convert .ig_button,.ig_popup.convert input[type="submit"],.ig_popup.convert input[type="button"]{width:75%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.convert .ig_button,.ig_popup.convert input[type="submit"],.ig_popup.convert input[type="button"]{width:75%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.convert .ig_button,.ig_popup.convert input[type="submit"],.ig_popup.convert input[type="button"]{width:75%!important}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/popup/themes/inspire.css
CHANGED
@@ -1,72 +1 @@
|
|
1 |
-
.ig_popup.inspire .ig_container {
|
2 |
-
background: hsl(0, 100%, 100%);
|
3 |
-
color: #333;
|
4 |
-
padding-bottom: 1.5em;
|
5 |
-
}
|
6 |
-
|
7 |
-
.ig_popup.inspire .ig_headline {
|
8 |
-
/*color: #222;*/
|
9 |
-
text-align: center;
|
10 |
-
padding: .8em .8em .3em .8em;
|
11 |
-
font-size: 2.5em;
|
12 |
-
}
|
13 |
-
|
14 |
-
.ig_popup.inspire .ig_image {
|
15 |
-
float: left;
|
16 |
-
}
|
17 |
-
|
18 |
-
.ig_popup.inspire .ig_message {
|
19 |
-
/*color: #333;*/
|
20 |
-
padding: 0.5em 1.25em;
|
21 |
-
font-size: 1.25em;
|
22 |
-
font-weight: 400;
|
23 |
-
text-align: justify;
|
24 |
-
}
|
25 |
-
|
26 |
-
.ig_popup.inspire .ig_button,
|
27 |
-
.ig_popup.inspire input[type="submit"],
|
28 |
-
.ig_popup.inspire input[type="button"] {
|
29 |
-
vertical-align: middle;
|
30 |
-
background-color: hsl(79, 93%, 35%);
|
31 |
-
color: hsl(0, 100%, 100%);
|
32 |
-
font-size: 2em;
|
33 |
-
font-weight: 700;
|
34 |
-
font-style: normal;
|
35 |
-
text-decoration: none;
|
36 |
-
text-align: center;
|
37 |
-
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
|
38 |
-
filter: alpha(opacity=100);
|
39 |
-
opacity: 1;
|
40 |
-
width: 60%;
|
41 |
-
margin: .25em auto;
|
42 |
-
padding: 0.5em;
|
43 |
-
line-height: 1.2em;
|
44 |
-
}
|
45 |
-
.ig_popup.inspire .ig_button:active,
|
46 |
-
.ig_popup.inspire input[type="submit"]:active,
|
47 |
-
.ig_popup.inspire input[type="button"]:active{
|
48 |
-
border-top: none;
|
49 |
-
}
|
50 |
-
|
51 |
-
@media only screen and (max-device-width: 319px) {
|
52 |
-
.ig_popup.inspire .ig_button, .ig_popup.inspire input[type="submit"], .ig_popup.inspire input[type="button"]{
|
53 |
-
width: 90% !important;
|
54 |
-
}
|
55 |
-
}
|
56 |
-
@media only screen and (min-device-width: 320px) and (max-device-width: 359px) {
|
57 |
-
.ig_popup.inspire .ig_button, .ig_popup.inspire input[type="submit"], .ig_popup.inspire input[type="button"]{
|
58 |
-
width: 90% !important;
|
59 |
-
}
|
60 |
-
}
|
61 |
-
|
62 |
-
@media only screen and (min-device-width: 360px) and (max-device-width: 413px) {
|
63 |
-
.ig_popup.inspire .ig_button, .ig_popup.inspire input[type="submit"], .ig_popup.inspire input[type="button"]{
|
64 |
-
width: 90% !important;
|
65 |
-
}
|
66 |
-
}
|
67 |
-
|
68 |
-
@media only screen and (min-device-width: 414px) and (max-device-width: 643px) {
|
69 |
-
.ig_popup.inspire .ig_button, .ig_popup.inspire input[type="submit"], .ig_popup.inspire input[type="button"]{
|
70 |
-
width: 90% !important;
|
71 |
-
}
|
72 |
-
}
|
1 |
+
.ig_popup.inspire .ig_container{background:hsl(0,100%,100%);color:#333;padding-bottom:1.5em}.ig_popup.inspire .ig_headline{text-align:center;padding:.8em .8em .3em .8em;font-size:2.5em}.ig_popup.inspire .ig_image{float:left}.ig_popup.inspire .ig_message{padding:0.5em 1.25em;font-size:1.25em;font-weight:400;text-align:justify}.ig_popup.inspire .ig_button,.ig_popup.inspire input[type="submit"],.ig_popup.inspire input[type="button"]{background:hsl(79,93%,35%);color:hsl(0,100%,100%);vertical-align:middle;font-size:2em;font-weight:700;font-style:normal;text-decoration:none;text-align:center;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:alpha(opacity=100);opacity:1;width:60%;margin:.25em auto;padding:0.5em;line-height:1.2em}.ig_popup.inspire .ig_button:active,.ig_popup.inspire input[type="submit"]:active,.ig_popup.inspire input[type="button"]:active{border-top:none}@media only screen and (max-device-width:319px){.ig_popup.inspire .ig_button,.ig_popup.inspire input[type="submit"],.ig_popup.inspire input[type="button"]{width:90%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.inspire .ig_button,.ig_popup.inspire input[type="submit"],.ig_popup.inspire input[type="button"]{width:90%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.inspire .ig_button,.ig_popup.inspire input[type="submit"],.ig_popup.inspire input[type="button"]{width:90%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.inspire .ig_button,.ig_popup.inspire input[type="submit"],.ig_popup.inspire input[type="button"]{width:90%!important}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/popup/themes/persuade.css
CHANGED
@@ -1,71 +1 @@
|
|
1 |
-
.ig_popup.persuade .ig_container {
|
2 |
-
background: hsl(1, 83%, 62%);
|
3 |
-
color: #FFF;
|
4 |
-
border: .4em dashed hsl(0, 100%, 100%);
|
5 |
-
padding-bottom: .1em;
|
6 |
-
}
|
7 |
-
|
8 |
-
.ig_popup.persuade .ig_headline {
|
9 |
-
letter-spacing: 0;
|
10 |
-
/*color: hsl(0, 100%, 100%);*/
|
11 |
-
font-size: 2.8em;
|
12 |
-
text-align: center;
|
13 |
-
-webkit-font-smoothing: antialiased;
|
14 |
-
line-height: 1em;
|
15 |
-
padding: .7em .7em 0.5em .7em;
|
16 |
-
}
|
17 |
-
|
18 |
-
.ig_popup.persuade .ig_image {
|
19 |
-
float: left;
|
20 |
-
}
|
21 |
-
|
22 |
-
.ig_popup.persuade .ig_message {
|
23 |
-
/*color: #FFF;*/
|
24 |
-
padding: 0.5em 1.5em;
|
25 |
-
font-size: 1.5em;
|
26 |
-
font-weight: 300;
|
27 |
-
text-align: center;
|
28 |
-
-webkit-font-smoothing: antialiased;
|
29 |
-
}
|
30 |
-
|
31 |
-
.ig_popup.persuade .ig_button,
|
32 |
-
.ig_popup.persuade input[type="submit"],
|
33 |
-
.ig_popup.persuade input[type="button"] {
|
34 |
-
text-decoration: none;
|
35 |
-
background-color: hsl(0, 0%, 26%);
|
36 |
-
color: hsl(0, 100%, 100%);
|
37 |
-
font-size: 2em;
|
38 |
-
font-weight: 400;
|
39 |
-
width: 55%;
|
40 |
-
border: none;
|
41 |
-
-moz-border-radius: .6em;
|
42 |
-
-webkit-border-radius: .6em;
|
43 |
-
border-radius: .6em;
|
44 |
-
border-bottom: .3em solid hsl(0, 0%, 20%);
|
45 |
-
-moz-box-shadow: 0 .3em 1.5em rgba(0, 0, 0, 0.6) !important;
|
46 |
-
-webkit-box-shadow: 0 .3em 1.5em rgba(0, 0, 0, 0.6) !important;
|
47 |
-
box-shadow: 0 .3em 1.5em rgba(0, 0, 0, 0.6) !important;
|
48 |
-
text-align: center;
|
49 |
-
margin: .2em auto .5em auto;
|
50 |
-
padding: 0.4em;
|
51 |
-
line-height: 1.2em;
|
52 |
-
clear: both;
|
53 |
-
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
54 |
-
}
|
55 |
-
|
56 |
-
.ig_popup.persuade .ig_button:hover,
|
57 |
-
.ig_popup.persuade input[type="submit"]:hover,
|
58 |
-
.ig_popup.persuade input[type="button"]:hover {
|
59 |
-
border-bottom: .1em solid hsl(0, 0%, 20%);
|
60 |
-
-moz-box-shadow: 0 .1em .2em rgba(0, 0, 0, 0.9) !important;
|
61 |
-
-webkit-box-shadow: 0 .1em .2em rgba(0, 0, 0, 0.9) !important;
|
62 |
-
box-shadow: 0 .1em .2em rgba(0, 0, 0, 0.9) !important;
|
63 |
-
margin: .4em auto .5em auto;
|
64 |
-
}
|
65 |
-
|
66 |
-
.ig_popup.persuade .ig_button:active,
|
67 |
-
.ig_popup.persuade input[type="submit"]:active,
|
68 |
-
.ig_popup.persuade input[type="button"]:active {
|
69 |
-
border-top: none;
|
70 |
-
margin: .4em auto .5em auto;
|
71 |
-
}
|
1 |
+
.ig_popup.persuade .ig_container{background:hsl(1,83%,62%);color:#FFF;border:.4em dashed hsl(0,100%,100%);padding-bottom:.1em}.ig_popup.persuade .ig_headline{letter-spacing:0;font-size:2.8em;text-align:center;-webkit-font-smoothing:antialiased;line-height:1em;padding:.7em .7em 0.5em .7em}.ig_popup.persuade .ig_image{float:left}.ig_popup.persuade .ig_message{padding:0.5em 1.5em;font-size:1.5em;font-weight:300;text-align:center;-webkit-font-smoothing:antialiased}.ig_popup.persuade .ig_button,.ig_popup.persuade input[type="submit"],.ig_popup.persuade input[type="button"]{background:hsl(0,0%,26%);color:hsl(0,100%,100%);text-decoration:none;font-size:2em;font-weight:400;width:55%;border:none;-moz-border-radius:.6em;-webkit-border-radius:.6em;border-radius:.6em;border-bottom:.3em solid hsl(0,0%,20%);-moz-box-shadow:0 .3em 1.5em rgba(0,0,0,0.6)!important;-webkit-box-shadow:0 .3em 1.5em rgba(0,0,0,0.6)!important;box-shadow:0 .3em 1.5em rgba(0,0,0,0.6)!important;text-align:center;margin:.2em auto .5em auto;padding:0.4em;line-height:1.2em;clear:both;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}.ig_popup.persuade .ig_button:hover,.ig_popup.persuade input[type="submit"]:hover,.ig_popup.persuade input[type="button"]:hover{border-bottom:.1em solid hsl(0,0%,20%);-moz-box-shadow:0 .1em .2em rgba(0,0,0,0.9)!important;-webkit-box-shadow:0 .1em .2em rgba(0,0,0,0.9)!important;box-shadow:0 .1em .2em rgba(0,0,0,0.9)!important;margin:.4em auto .5em auto}.ig_popup.persuade .ig_button:active,.ig_popup.persuade input[type="submit"]:active,.ig_popup.persuade input[type="button"]:active{border-top:none;margin:.4em auto .5em auto}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/toast/default.css
CHANGED
@@ -1,236 +1 @@
|
|
1 |
-
.toast.ig_container {
|
2 |
-
display: none;
|
3 |
-
}
|
4 |
-
|
5 |
-
.toast .ig_wrapper {
|
6 |
-
overflow: hidden;
|
7 |
-
padding: 5px 5px 5px 50px;
|
8 |
-
position: relative;
|
9 |
-
min-height: 34px;
|
10 |
-
}
|
11 |
-
|
12 |
-
.toast .ig_content {
|
13 |
-
overflow: hidden;
|
14 |
-
}
|
15 |
-
|
16 |
-
.toast.ig_container:hover {
|
17 |
-
|
18 |
-
}
|
19 |
-
|
20 |
-
.toast .ig_headline {
|
21 |
-
display: inline-block;
|
22 |
-
margin: 0;
|
23 |
-
text-align: left;
|
24 |
-
position: relative;
|
25 |
-
}
|
26 |
-
|
27 |
-
.toast .ig_icon {
|
28 |
-
overflow: hidden;
|
29 |
-
display: block;
|
30 |
-
max-height: 32px;
|
31 |
-
max-width: 32px;
|
32 |
-
left: 10px;
|
33 |
-
top: 10px;
|
34 |
-
position: absolute;
|
35 |
-
}
|
36 |
-
|
37 |
-
.toast .ig_icon img {
|
38 |
-
max-width: 32px;
|
39 |
-
max-height: 32px;
|
40 |
-
margin: 0;
|
41 |
-
padding: 0;
|
42 |
-
}
|
43 |
-
|
44 |
-
.toast .ig_message {
|
45 |
-
margin: -3px 0 0 -2px;
|
46 |
-
}
|
47 |
-
|
48 |
-
.toast .ig_message p {
|
49 |
-
margin: 0.15em;
|
50 |
-
}
|
51 |
-
|
52 |
-
.ig_toast_block {
|
53 |
-
position: fixed;
|
54 |
-
list-style: none;
|
55 |
-
z-index: 999999;
|
56 |
-
-ms-word-wrap: break-word;
|
57 |
-
word-wrap: break-word;
|
58 |
-
padding: 0;
|
59 |
-
margin: 5px;
|
60 |
-
}
|
61 |
-
|
62 |
-
.ig_toast_block * {
|
63 |
-
-webkit-box-sizing: content-box;
|
64 |
-
-moz-box-sizing: content-box;
|
65 |
-
box-sizing: content-box;
|
66 |
-
text-transform: none;
|
67 |
-
}
|
68 |
-
|
69 |
-
.ig_toast_block .ig_container {
|
70 |
-
margin: 10px 0;
|
71 |
-
}
|
72 |
-
|
73 |
-
.ig_toast_block .ig_headline {
|
74 |
-
font-weight: bold;
|
75 |
-
clear: none;
|
76 |
-
padding: 0;
|
77 |
-
}
|
78 |
-
|
79 |
-
.ig_toast_block .ig_message {
|
80 |
-
font-size: 12px;
|
81 |
-
text-align: left;
|
82 |
-
line-height: 15px;
|
83 |
-
}
|
84 |
-
|
85 |
-
/* animation 1*/
|
86 |
-
.ig_toast_block .bang .ig_icon {
|
87 |
-
-webkit-animation: MainMoveIcon 1s;
|
88 |
-
}
|
89 |
-
|
90 |
-
.ig_toast_block .bang .ig_base {
|
91 |
-
-webkit-animation: MainMove 1s;
|
92 |
-
}
|
93 |
-
|
94 |
-
.ig_toast_block .bang .ig_headline, .ig_toast_block .bang .ig_message {
|
95 |
-
-webkit-animation: MainMoveText 1s;
|
96 |
-
}
|
97 |
-
@-webkit-keyframes MainMove {
|
98 |
-
0% { opacity: 0; }
|
99 |
-
70% { opacity: 0.1;-webkit-transform: scale(.3) rotateX(180deg); }
|
100 |
-
90% { opacity: 0.7; -webkit-transform: scale(1.1) rotateX(0deg); }
|
101 |
-
100% { opacity: 1;-webkit-transform: scale(1) rotateX(0deg); }
|
102 |
-
}
|
103 |
-
@-webkit-keyframes MainMoveIcon {
|
104 |
-
0% { opacity: 0; -webkit-transform: scale(.3) rotateY(180deg); }
|
105 |
-
70% { opacity: 1; -webkit-transform: scale(1.1) rotateY(0deg); }
|
106 |
-
100% { -webkit-transform: scale(1) rotateY(0deg); }
|
107 |
-
}
|
108 |
-
@-webkit-keyframes MainMoveText {
|
109 |
-
0% { opacity: 0; }
|
110 |
-
90% { opacity: 0; -webkit-transform: translate(0px, 10px); }
|
111 |
-
100% { opacity: 1; -webkit-transform: translate(0px, 0px); }
|
112 |
-
}
|
113 |
-
/* animation 2*/
|
114 |
-
.ig_toast_block .slide-down .ig_headline {
|
115 |
-
-moz-transition: all 0.2s linear;
|
116 |
-
-o-transition: all 0.2s linear;
|
117 |
-
-webkit-transition: all 0.2s linear;
|
118 |
-
transition: all 0.2s linear;
|
119 |
-
}
|
120 |
-
|
121 |
-
.ig_toast_block .slide-down .ig_message {
|
122 |
-
-moz-transition: all 0.2s linear;
|
123 |
-
-o-transition: all 0.2s linear;
|
124 |
-
-webkit-transition: all 0.2s linear;
|
125 |
-
transition: all 0.2s linear;
|
126 |
-
}
|
127 |
-
|
128 |
-
.ig_toast_block .slide-down.ig_container {
|
129 |
-
-webkit-animation-name: banner;
|
130 |
-
-webkit-animation-duration: 0.5s;
|
131 |
-
-webkit-animation-iteration-count: 1;
|
132 |
-
-webkit-animation-timing-function: ease-in;
|
133 |
-
}
|
134 |
-
|
135 |
-
.ig_toast_block .slide-down .ig_icon {
|
136 |
-
-webkit-animation-name: fade;
|
137 |
-
-webkit-animation-duration: 0.7s;
|
138 |
-
-webkit-animation-iteration-count: 1;
|
139 |
-
-webkit-animation-timing-function: ease-in;
|
140 |
-
}
|
141 |
-
|
142 |
-
@-webkit-keyframes banner {
|
143 |
-
from {
|
144 |
-
-webkit-transform: rotateX(90deg) translateY(-40px) perspective(300);
|
145 |
-
opacity: 0;
|
146 |
-
}
|
147 |
-
|
148 |
-
60% {
|
149 |
-
-webkit-transform: rotateX(-10deg) translateY(5px) perspective(400);
|
150 |
-
opacity: 1;
|
151 |
-
}
|
152 |
-
|
153 |
-
to {
|
154 |
-
-webkit-transform: rotateX(0deg) translateY(0px) perspective(400);
|
155 |
-
opacity: 1;
|
156 |
-
}
|
157 |
-
}
|
158 |
-
|
159 |
-
@-webkit-keyframes fade {
|
160 |
-
from {
|
161 |
-
opacity: 0;
|
162 |
-
}
|
163 |
-
|
164 |
-
30% {
|
165 |
-
opacity: 0;
|
166 |
-
}
|
167 |
-
|
168 |
-
to {
|
169 |
-
opacity: 1;
|
170 |
-
}
|
171 |
-
}
|
172 |
-
/* animation 3*/
|
173 |
-
.ig_toast_block .pop.ig_container {
|
174 |
-
-webkit-animation: BangTidy 1s ease forwards;
|
175 |
-
}
|
176 |
-
|
177 |
-
.ig_toast_block .pop .ig_icon {
|
178 |
-
-webkit-animation: BangTidyIcon 1s 0.5s ease both;
|
179 |
-
}
|
180 |
-
|
181 |
-
.ig_toast_block .pop .ig_headline, .ig_toast_block .pop .ig_message {
|
182 |
-
-webkit-animation: BangTidyText 0.4s 0.5s ease both;
|
183 |
-
}
|
184 |
-
@-webkit-keyframes BangTidy {
|
185 |
-
0% { opacity: 0; -webkit-transform: scale(.3) rotateX(-360deg); }
|
186 |
-
50% { opacity: 1; -webkit-transform: scale(1.01) rotateX(0deg); }
|
187 |
-
70% { -webkit-transform: scale(.9) rotateX(0deg); }
|
188 |
-
100% { -webkit-transform: scale(1) rotateX(0deg); }
|
189 |
-
}
|
190 |
-
|
191 |
-
@-webkit-keyframes BangTidyIcon {
|
192 |
-
0% { opacity: 0; -webkit-transform: scale(2.8) rotateX(180deg); }
|
193 |
-
50% { opacity: 1; -webkit-transform: scale(0.9) rotateX(0deg); }
|
194 |
-
70% { -webkit-transform: scale(1.25) rotateX(0deg); }
|
195 |
-
100% { -webkit-transform: scale(1) rotateX(0deg); }
|
196 |
-
}
|
197 |
-
|
198 |
-
@-webkit-keyframes BangTidyText {
|
199 |
-
0% { opacity: 0; -webkit-transform: translate(0px, 10px); }
|
200 |
-
100% { opacity: 1; -webkit-transform: translate(0px, 0px); }
|
201 |
-
}
|
202 |
-
/* animation 4*/
|
203 |
-
.ig_toast_block .appear.ig_container {
|
204 |
-
-webkit-animation-duration: 0.4s;
|
205 |
-
-moz-transition: all 0.15s ease-in-out;
|
206 |
-
-o-transition: all 0.15s ease-in-out;
|
207 |
-
-webkit-transition: all 0.15s ease-in-out;
|
208 |
-
transition: all 0.15s ease-in-out;
|
209 |
-
-webkit-animation-name: bubble;
|
210 |
-
}
|
211 |
-
@-webkit-keyframes 'bubble' {
|
212 |
-
from {
|
213 |
-
opacity: 0;
|
214 |
-
-webkit-transform: scale(0.7);
|
215 |
-
-webkit-animation-timing-function: ease-out;
|
216 |
-
}
|
217 |
-
|
218 |
-
50% {
|
219 |
-
-webkit-transform: scale(1.02);
|
220 |
-
-webkit-animation-timing-function: cubic-bezier(0.5, 0.2, 0.3, 1.0);
|
221 |
-
}
|
222 |
-
|
223 |
-
to {
|
224 |
-
opacity: ignored;
|
225 |
-
-webkit-transform: scale(1.0);
|
226 |
-
-webkit-animation-timing-function: ease-in;
|
227 |
-
}
|
228 |
-
}
|
229 |
-
/* animation 8*/
|
230 |
-
.ig_toast_block .slide-left.ig_container {
|
231 |
-
-webkit-animation: slideFromBottom .5s ease-in-out;
|
232 |
-
}
|
233 |
-
@-webkit-keyframes slideFromBottom {
|
234 |
-
0% { opacity: 0; -webkit-transform: translate3d( -20px, 0, 0 );}
|
235 |
-
100% { opacity: 1; -webkit-transform: translate3d( 0, 0, 0 ); }
|
236 |
-
}
|
1 |
+
.toast.ig_container{display:none}.toast .ig_wrapper{overflow:hidden;padding:5px 5px 5px 50px;position:relative;min-height:34px}.toast .ig_content{overflow:hidden}.toast.ig_container:hover{}.toast .ig_headline{display:inline-block;margin:0;text-align:left;position:relative}.toast .ig_icon{overflow:hidden;display:block;max-height:32px;max-width:32px;left:10px;top:10px;position:absolute}.toast .ig_icon img{max-width:32px;max-height:32px;margin:0;padding:0}.toast .ig_message{margin:-3px 0 0 -2px}.toast .ig_message p{margin:0.15em}.ig_toast_block{position:fixed;list-style:none;z-index:999999;-ms-word-wrap:break-word;word-wrap:break-word;padding:0;margin:5px}.ig_toast_block *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;text-transform:none}.ig_toast_block .ig_container{margin:10px 0}.ig_toast_block .ig_headline{font-weight:bold;clear:none;padding:0}.ig_toast_block .ig_message{font-size:12px;text-align:left;line-height:15px}.ig_toast_block .bang .ig_icon{-webkit-animation:MainMoveIcon 1s}.ig_toast_block .bang .ig_base{-webkit-animation:MainMove 1s}.ig_toast_block .bang .ig_headline,.ig_toast_block .bang .ig_message{-webkit-animation:MainMoveText 1s}@-webkit-keyframes MainMove{0%{opacity:0}70%{opacity:0.1;-webkit-transform:scale(.3) rotateX(180deg)}90%{opacity:0.7;-webkit-transform:scale(1.1) rotateX(0deg)}100%{opacity:1;-webkit-transform:scale(1) rotateX(0deg)}}@-webkit-keyframes MainMoveIcon{0%{opacity:0;-webkit-transform:scale(.3) rotateY(180deg)}70%{opacity:1;-webkit-transform:scale(1.1) rotateY(0deg)}100%{-webkit-transform:scale(1) rotateY(0deg)}}@-webkit-keyframes MainMoveText{0%{opacity:0}90%{opacity:0;-webkit-transform:translate(0px,10px)}100%{opacity:1;-webkit-transform:translate(0px,0px)}}.ig_toast_block .slide-down .ig_headline{-moz-transition:all 0.2s linear;-o-transition:all 0.2s linear;-webkit-transition:all 0.2s linear;transition:all 0.2s linear}.ig_toast_block .slide-down .ig_message{-moz-transition:all 0.2s linear;-o-transition:all 0.2s linear;-webkit-transition:all 0.2s linear;transition:all 0.2s linear}.ig_toast_block .slide-down.ig_container{-webkit-animation-name:banner;-webkit-animation-duration:0.5s;-webkit-animation-iteration-count:1;-webkit-animation-timing-function:ease-in}.ig_toast_block .slide-down .ig_icon{-webkit-animation-name:fade;-webkit-animation-duration:0.7s;-webkit-animation-iteration-count:1;-webkit-animation-timing-function:ease-in}@-webkit-keyframes banner{from{-webkit-transform:rotateX(90deg) translateY(-40px) perspective(300);opacity:0}60%{-webkit-transform:rotateX(-10deg) translateY(5px) perspective(400);opacity:1}to{-webkit-transform:rotateX(0deg) translateY(0px) perspective(400);opacity:1}}@-webkit-keyframes fade{from{opacity:0}30%{opacity:0}to{opacity:1}}.ig_toast_block .pop.ig_container{-webkit-animation:BangTidy 1s ease forwards}.ig_toast_block .pop .ig_icon{-webkit-animation:BangTidyIcon 1s 0.5s ease both}.ig_toast_block .pop .ig_headline,.ig_toast_block .pop .ig_message{-webkit-animation:BangTidyText 0.4s 0.5s ease both}@-webkit-keyframes BangTidy{0%{opacity:0;-webkit-transform:scale(.3) rotateX(-360deg)}50%{opacity:1;-webkit-transform:scale(1.01) rotateX(0deg)}70%{-webkit-transform:scale(.9) rotateX(0deg)}100%{-webkit-transform:scale(1) rotateX(0deg)}}@-webkit-keyframes BangTidyIcon{0%{opacity:0;-webkit-transform:scale(2.8) rotateX(180deg)}50%{opacity:1;-webkit-transform:scale(0.9) rotateX(0deg)}70%{-webkit-transform:scale(1.25) rotateX(0deg)}100%{-webkit-transform:scale(1) rotateX(0deg)}}@-webkit-keyframes BangTidyText{0%{opacity:0;-webkit-transform:translate(0px,10px)}100%{opacity:1;-webkit-transform:translate(0px,0px)}}.ig_toast_block .appear.ig_container{-webkit-animation-duration:0.4s;-moz-transition:all 0.15s ease-in-out;-o-transition:all 0.15s ease-in-out;-webkit-transition:all 0.15s ease-in-out;transition:all 0.15s ease-in-out;-webkit-animation-name:bubble}@-webkit-keyframes 'bubble'{from{opacity:0;-webkit-transform:scale(0.7);-webkit-animation-timing-function:ease-out}50%{-webkit-transform:scale(1.02);-webkit-animation-timing-function:cubic-bezier(0.5,0.2,0.3,1.0)}to{opacity:ignored;-webkit-transform:scale(1.0);-webkit-animation-timing-function:ease-in}}.ig_toast_block .slide-left.ig_container{-webkit-animation:slideFromBottom .5s ease-in-out}@-webkit-keyframes slideFromBottom{0%{opacity:0;-webkit-transform:translate3d( -20px,0,0 )}100%{opacity:1;-webkit-transform:translate3d( 0,0,0 )}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/toast/main.js
CHANGED
@@ -1,80 +1,8 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
this.duration = 10000;
|
10 |
-
Icegram_Message_Type.apply(this, arguments);
|
11 |
-
}
|
12 |
-
Icegram_Message_Type_Toast.prototype = Object.create(Icegram_Message_Type.prototype);
|
13 |
-
Icegram_Message_Type_Toast.prototype.constructor = Icegram_Message_Type_Toast;
|
14 |
-
|
15 |
-
Icegram_Message_Type_Toast.prototype.get_template_default = function () {
|
16 |
-
//'<div id="icegram_message_{{=id}}">'+
|
17 |
-
return '<li class="icegram toast ig_container {{=animation}} {{=theme}} ig_cta" id="icegram_message_{{=id}}">'+
|
18 |
-
'<div class="ig_wrapper">'+
|
19 |
-
'<div class="ig_content">'+
|
20 |
-
'<div class="ig_base"></div>'+
|
21 |
-
'<div class="ig_line"></div>'+
|
22 |
-
'<img class="ig_icon" src="{{=icon}}"/>'+
|
23 |
-
'<div class="ig_headline">{{=headline}}</div>'+
|
24 |
-
'<div class="ig_message">{{=message}}</div>'+
|
25 |
-
'</div>'+
|
26 |
-
'</div>'+
|
27 |
-
'</li>';
|
28 |
-
//'</div>';
|
29 |
-
};
|
30 |
-
Icegram_Message_Type_Toast.prototype.pre_render = function ( ) {
|
31 |
-
if( this.data.position == "10" || this.data.position == "12" ) {
|
32 |
-
this.data.position = '20';
|
33 |
-
}
|
34 |
-
if (!(jQuery('ul#' + this.data.position).length)) {
|
35 |
-
var ul = jQuery('<ul id="' + this.data.position + '"></ul>').addClass('ig_toast_block').appendTo(this.root_container).hide();
|
36 |
-
ul.width(this.width);
|
37 |
-
if (this.data.position == "00") {
|
38 |
-
ul.css({top: '0', left: '0'}).addClass('left');
|
39 |
-
} else if (this.data.position == "01") {
|
40 |
-
ul.css({top: '0', left: '50%', margin: '5px 0 0 -' + (this.width / 2) + 'px'}).addClass('center');
|
41 |
-
} else if (this.data.position == "02") {
|
42 |
-
ul.css({top: '0', right: '0'}).addClass('right');
|
43 |
-
} else if (this.data.position == "20") {
|
44 |
-
ul.css({bottom: '0', left: '0'}).addClass('left');
|
45 |
-
} else if (this.data.position == "21") {
|
46 |
-
ul.css({bottom: '0', left: '50%', margin: '5px 0 0 -' + (this.width / 2) + 'px'}).addClass('center');
|
47 |
-
} else if (this.data.position == "22") {
|
48 |
-
ul.css({bottom: '0', right: '0'}).addClass('right');
|
49 |
-
} else if (this.data.position == "11") {
|
50 |
-
ul.css({top: '50%', left: '50%', margin: '-'+(this.width / 2) +'px 0 0 -' + (this.width / 2) + 'px'}).addClass('center');
|
51 |
-
}
|
52 |
-
}else {
|
53 |
-
var ul = jQuery('ul#' + this.data.position);
|
54 |
-
}
|
55 |
-
this.root_container = ul;
|
56 |
-
}
|
57 |
-
|
58 |
-
Icegram_Message_Type_Toast.prototype.show = function ( options, silent ) {
|
59 |
-
if ( this.is_visible() ) return;
|
60 |
-
!this.root_container.hasClass('active') && this.root_container.addClass('active').show();
|
61 |
-
var self = this;
|
62 |
-
setTimeout(function() {
|
63 |
-
self.el.show();
|
64 |
-
self.el.fadeIn('slow');
|
65 |
-
}, this.data.delay_time);
|
66 |
-
silent !== true && self.track( 'shown' );
|
67 |
-
!this.sticky && this.duration > 0 && (setTimeout(function() {
|
68 |
-
self.el.fadeOut('slow');
|
69 |
-
self.hide();
|
70 |
-
self.root_container.children().length || self.root_container.removeClass('active').hide();
|
71 |
-
}, this.duration));
|
72 |
-
|
73 |
-
};
|
74 |
-
|
75 |
-
Icegram_Message_Type_Toast.prototype.hide = function ( options, silent ) {
|
76 |
-
if ( !this.is_visible() ) return;
|
77 |
-
this.el.hide();
|
78 |
-
silent !== true && this.track( 'closed' );
|
79 |
-
};
|
80 |
-
|
1 |
+
/**
|
2 |
+
* Icegram Message Type - Toast
|
3 |
+
**/
|
4 |
+
function Icegram_Message_Type_Toast(t){this.width=300,this.sticky=!1,this.duration=1e4,Icegram_Message_Type.apply(this,arguments)}Icegram_Message_Type_Toast.prototype=Object.create(Icegram_Message_Type.prototype),Icegram_Message_Type_Toast.prototype.constructor=Icegram_Message_Type_Toast,Icegram_Message_Type_Toast.prototype.get_template_default=function(){return'<li class="icegram toast ig_container {{=animation}} {{=theme}} ig_cta" id="icegram_message_{{=id}}"><div class="ig_wrapper"><div class="ig_content"><div class="ig_base"></div><div class="ig_line"></div><img class="ig_icon" src="{{=icon}}"/><div class="ig_headline">{{=headline}}</div><div class="ig_message">{{=message}}</div></div></div></li>'},Icegram_Message_Type_Toast.prototype.pre_render=function(){if(("10"==this.data.position||"12"==this.data.position)&&(this.data.position="20"),jQuery("ul#"+this.data.position).length)var t=jQuery("ul#"+this.data.position)
|
5 |
+
else{var t=jQuery('<ul id="'+this.data.position+'"></ul>').addClass("ig_toast_block").appendTo(this.root_container).hide()
|
6 |
+
t.width(this.width),"00"==this.data.position?t.css({top:"0",left:"0"}).addClass("left"):"01"==this.data.position?t.css({top:"0",left:"50%",margin:"5px 0 0 -"+this.width/2+"px"}).addClass("center"):"02"==this.data.position?t.css({top:"0",right:"0"}).addClass("right"):"20"==this.data.position?t.css({bottom:"0",left:"0"}).addClass("left"):"21"==this.data.position?t.css({bottom:"0",left:"50%",margin:"5px 0 0 -"+this.width/2+"px"}).addClass("center"):"22"==this.data.position?t.css({bottom:"0",right:"0"}).addClass("right"):"11"==this.data.position&&t.css({top:"50%",left:"50%",margin:"-"+this.width/2+"px 0 0 -"+this.width/2+"px"}).addClass("center")}this.root_container=t},Icegram_Message_Type_Toast.prototype.show=function(t,s){if(!this.is_visible()){!this.root_container.hasClass("active")&&this.root_container.addClass("active").show()
|
7 |
+
var i=this
|
8 |
+
setTimeout(function(){i.el.show(),i.el.fadeIn("slow")},this.data.delay_time),s!==!0&&i.track("shown"),!this.sticky&&this.duration>0&&setTimeout(function(){i.el.fadeOut("slow"),i.hide(),i.root_container.children().length||i.root_container.removeClass("active").hide()},this.duration)}},Icegram_Message_Type_Toast.prototype.hide=function(t,s){this.is_visible()&&(this.el.hide(),s!==!0&&this.track("closed"))}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/toast/themes/announce.css
CHANGED
@@ -1,42 +1 @@
|
|
1 |
-
.toast.announce.ig_container {
|
2 |
-
background-color: rgba(255, 255, 105, 0.95) !important;
|
3 |
-
-moz-border-radius: 4px;
|
4 |
-
-webkit-border-radius: 4px;
|
5 |
-
border-radius: 4px;
|
6 |
-
-moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), inset 0 -1px 0 rgba(255, 255, 255, 0.15), 0 0 6px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(35, 47, 64, 0.2);
|
7 |
-
-webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), inset 0 -1px 0 rgba(255, 255, 255, 0.15), 0 0 6px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(35, 47, 64, 0.2);
|
8 |
-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), inset 0 -1px 0 rgba(255, 255, 255, 0.15), 0 0 6px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(35, 47, 64, 0.2);
|
9 |
-
background-image: -webkit-linear-gradient(90deg, rgba(255, 255, 105, 0.95) 0%, rgba(255, 255, 105, 0) 100%);
|
10 |
-
color: rgba(67, 76, 89, 0.9) !important;
|
11 |
-
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
|
12 |
-
}
|
13 |
-
|
14 |
-
.toast.announce.ig_container:hover {
|
15 |
-
border-color: rgba(0, 0, 0, 1);
|
16 |
-
}
|
17 |
-
|
18 |
-
.toast.announce .ig_wrapper {
|
19 |
-
border: none;
|
20 |
-
-moz-border-radius: 4px;
|
21 |
-
-webkit-border-radius: 4px;
|
22 |
-
border-radius: 4px;
|
23 |
-
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
|
24 |
-
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
|
25 |
-
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
|
26 |
-
}
|
27 |
-
|
28 |
-
.toast.announce .ig_content {
|
29 |
-
border: none;
|
30 |
-
color: rgba(67, 76, 89, 0.9) !important;
|
31 |
-
background-color: transparent !important;
|
32 |
-
-moz-border-radius: 4px;
|
33 |
-
-webkit-border-radius: 4px;
|
34 |
-
border-radius: 4px;
|
35 |
-
-moz-box-shadow: inset 0 -3px 2px rgba(58, 71, 89, 0.04);
|
36 |
-
-webkit-box-shadow: inset 0 -3px 2px rgba(58, 71, 89, 0.04);
|
37 |
-
box-shadow: inset 0 -3px 2px rgba(58, 71, 89, 0.04);
|
38 |
-
}
|
39 |
-
|
40 |
-
.toast.announce .ig_headline {
|
41 |
-
color: rgba(67, 76, 89, 0.9);
|
42 |
-
}
|
1 |
+
.toast.announce.ig_container{background-color:rgba(255,255,105,0.95)!important;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;-moz-box-shadow:0 2px 5px rgba(0,0,0,0.1),inset 0 -1px 0 rgba(255,255,255,0.15),0 0 6px rgba(0,0,0,0.08),0 0 0 1px rgba(35,47,64,0.2);-webkit-box-shadow:0 2px 5px rgba(0,0,0,0.1),inset 0 -1px 0 rgba(255,255,255,0.15),0 0 6px rgba(0,0,0,0.08),0 0 0 1px rgba(35,47,64,0.2);box-shadow:0 2px 5px rgba(0,0,0,0.1),inset 0 -1px 0 rgba(255,255,255,0.15),0 0 6px rgba(0,0,0,0.08),0 0 0 1px rgba(35,47,64,0.2);background-image:-webkit-linear-gradient(90deg,rgba(255,255,105,0.95) 0%,rgba(255,255,105,0) 100%);color:rgba(67,76,89,0.9)!important;text-shadow:0 1px 0 rgba(255,255,255,0.85)}.toast.announce.ig_container:hover{border-color:rgba(0,0,0,1)}.toast.announce .ig_wrapper{border:none;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.55);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.55);box-shadow:inset 0 1px 0 rgba(255,255,255,0.55)}.toast.announce .ig_content{border:none;color:rgba(67,76,89,0.9)!important;background-color:transparent!important;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;-moz-box-shadow:inset 0 -3px 2px rgba(58,71,89,0.04);-webkit-box-shadow:inset 0 -3px 2px rgba(58,71,89,0.04);box-shadow:inset 0 -3px 2px rgba(58,71,89,0.04)}.toast.announce .ig_headline{color:rgba(67,76,89,0.9)}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/toast/themes/balance.css
CHANGED
@@ -1,24 +1 @@
|
|
1 |
-
.balance.ig_container {
|
2 |
-
border: 1px solid #777;
|
3 |
-
color: rgba(20, 20, 20, 1);
|
4 |
-
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
|
5 |
-
background-color: rgba(204, 204, 204, 0.75) !important;
|
6 |
-
background: -webkit-gradient(linear, left top, left bottom, from(rgba(204, 204, 204, 0.75)), to(rgba(240, 240, 240, 1)), color-stop(0.4, rgba(139, 139, 139, 0.5))) !important;
|
7 |
-
-webkit-font-smoothing: antialiased;
|
8 |
-
}
|
9 |
-
.balance .ig_content {
|
10 |
-
background: transparent !important;
|
11 |
-
}
|
12 |
-
|
13 |
-
.balance .ig_headline {
|
14 |
-
color: hsla(0, 0%, 8%, 1);
|
15 |
-
text-shadow: 0 1px 0 hsla(0, 100%, 100%, 0.7);
|
16 |
-
border-bottom: 1px solid #777;
|
17 |
-
width: 100%;
|
18 |
-
}
|
19 |
-
|
20 |
-
.balance .ig_message {
|
21 |
-
color: hsla(0, 0%, 8%, 1);
|
22 |
-
text-shadow: 0 1px 0 hsla(0, 100%, 100%, 0.7);
|
23 |
-
margin-top: 5px;
|
24 |
-
}
|
1 |
+
.balance.ig_container{border:1px solid #777;color:rgba(20,20,20,1);text-shadow:0 1px 0 rgba(255,255,255,0.7);background-color:rgba(204,204,204,0.75)!important;background:-webkit-gradient(linear,left top,left bottom,from(rgba(204,204,204,0.75)),to(rgba(240,240,240,1)),color-stop(0.4,rgba(139,139,139,0.5)))!important;-webkit-font-smoothing:antialiased}.balance .ig_content{background:transparent!important}.balance .ig_headline{color:hsla(0,0%,8%,1);text-shadow:0 1px 0 hsla(0,100%,100%,0.7);border-bottom:1px solid #777;width:100%}.balance .ig_message{color:hsla(0,0%,8%,1);text-shadow:0 1px 0 hsla(0,100%,100%,0.7);margin-top:5px}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/toast/themes/burnt.css
CHANGED
@@ -1,81 +1 @@
|
|
1 |
-
.burnt.ig_container {
|
2 |
-
min-height: 64px;
|
3 |
-
position: relative;
|
4 |
-
-moz-box-sizing: border-box;
|
5 |
-
box-sizing: border-box;
|
6 |
-
background-color: transparent !important;
|
7 |
-
}
|
8 |
-
|
9 |
-
.burnt .ig_content {
|
10 |
-
background-color: transparent !important;
|
11 |
-
}
|
12 |
-
|
13 |
-
.burnt .ig_wrapper {
|
14 |
-
padding: 5px 5px 5px 65px;
|
15 |
-
}
|
16 |
-
|
17 |
-
.burnt .ig_base {
|
18 |
-
position: absolute;
|
19 |
-
top: 0;
|
20 |
-
left: 0;
|
21 |
-
bottom: 0;
|
22 |
-
right: 0;
|
23 |
-
background-color: transparent;
|
24 |
-
background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.88));
|
25 |
-
border: 1px solid #000;
|
26 |
-
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
|
27 |
-
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
|
28 |
-
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
|
29 |
-
-moz-border-radius: 4px;
|
30 |
-
-webkit-border-radius: 4px;
|
31 |
-
border-radius: 4px;
|
32 |
-
overflow: hidden;
|
33 |
-
z-index: 0;
|
34 |
-
}
|
35 |
-
|
36 |
-
.burnt .ig_line {
|
37 |
-
width: 1px;
|
38 |
-
height: 27px;
|
39 |
-
position: absolute;
|
40 |
-
top: 1px;
|
41 |
-
left: 58px;
|
42 |
-
background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
|
43 |
-
}
|
44 |
-
|
45 |
-
.burnt .ig_line:after {
|
46 |
-
content: "";
|
47 |
-
display: block;
|
48 |
-
width: 1px;
|
49 |
-
height: 26px;
|
50 |
-
position: absolute;
|
51 |
-
top: 1px;
|
52 |
-
left: -1px;
|
53 |
-
background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
|
54 |
-
}
|
55 |
-
|
56 |
-
.burnt .ig_headline {
|
57 |
-
color: #fff;
|
58 |
-
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
|
59 |
-
z-index: 1;
|
60 |
-
}
|
61 |
-
|
62 |
-
.burnt .ig_icon {
|
63 |
-
max-height: 42px;
|
64 |
-
max-width: 42px;
|
65 |
-
left: 8px;
|
66 |
-
top: 5px;
|
67 |
-
}
|
68 |
-
|
69 |
-
.burnt .ig_icon img {
|
70 |
-
width: 40px;
|
71 |
-
height: 40px;
|
72 |
-
-moz-border-radius: 3px;
|
73 |
-
-webkit-border-radius: 3px;
|
74 |
-
border-radius: 3px;
|
75 |
-
}
|
76 |
-
|
77 |
-
.burnt .ig_message {
|
78 |
-
color: rgba(255, 255, 255, 0.83);
|
79 |
-
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.7);
|
80 |
-
position: relative;
|
81 |
-
}
|
1 |
+
.burnt.ig_container{min-height:64px;position:relative;-moz-box-sizing:border-box;box-sizing:border-box;background-color:transparent!important}.burnt .ig_content{background-color:transparent!important}.burnt .ig_wrapper{padding:5px 5px 5px 65px}.burnt .ig_base{position:absolute;top:0;left:0;bottom:0;right:0;background-color:transparent;background-image:-webkit-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.88));border:1px solid #000;-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.07),inset 0 0 0 1px rgba(255,255,255,0.1);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.07),inset 0 0 0 1px rgba(255,255,255,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.07),inset 0 0 0 1px rgba(255,255,255,0.1);-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;overflow:hidden;z-index:0}.burnt .ig_line{width:1px;height:27px;position:absolute;top:1px;left:58px;background-image:-webkit-linear-gradient(top,rgba(0,0,0,0.3),rgba(0,0,0,0))}.burnt .ig_line:after{content:"";display:block;width:1px;height:26px;position:absolute;top:1px;left:-1px;background-image:-webkit-linear-gradient(top,rgba(255,255,255,0.15),rgba(255,255,255,0))}.burnt .ig_headline{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.5);z-index:1}.burnt .ig_icon{max-height:42px;max-width:42px;left:8px;top:5px}.burnt .ig_icon img{width:40px;height:40px;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.burnt .ig_message{color:rgba(255,255,255,0.83);text-shadow:0 -1px 0 rgba(0,0,0,0.7);position:relative}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/toast/themes/clear.css
CHANGED
@@ -1,29 +1 @@
|
|
1 |
-
.toast.clear.ig_container {
|
2 |
-
border: 3px solid rgba(0, 0, 0, 0.4);
|
3 |
-
-moz-border-radius: .5em;
|
4 |
-
-webkit-border-radius: .5em;
|
5 |
-
border-radius: .5em;
|
6 |
-
background: #fff !important;
|
7 |
-
}
|
8 |
-
|
9 |
-
.toast.clear .ig_content {
|
10 |
-
background-color: transparent !important;
|
11 |
-
}
|
12 |
-
|
13 |
-
.toast.clear .ig_headline {
|
14 |
-
color: #222;
|
15 |
-
letter-spacing: 0.7pt;
|
16 |
-
line-height: 16px;
|
17 |
-
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
|
18 |
-
}
|
19 |
-
|
20 |
-
.toast.clear .ig_icon {
|
21 |
-
|
22 |
-
}
|
23 |
-
|
24 |
-
.toast.clear .ig_message {
|
25 |
-
text-align: left;
|
26 |
-
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
|
27 |
-
color: #444;
|
28 |
-
line-height: 15px;
|
29 |
-
}
|
1 |
+
.toast.clear.ig_container{border:3px solid rgba(0,0,0,0.4);-moz-border-radius:.5em;-webkit-border-radius:.5em;border-radius:.5em;background:#fff!important}.toast.clear .ig_content{background-color:transparent!important}.toast.clear .ig_headline{color:#222;letter-spacing:0.7pt;line-height:16px;text-shadow:0 1px 0 rgba(255,255,255,0.6)}.toast.clear .ig_icon{}.toast.clear .ig_message{text-align:left;text-shadow:0 1px 0 rgba(255,255,255,0.6);color:#444;line-height:15px}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/toast/themes/night-glow.css
CHANGED
@@ -1,49 +1 @@
|
|
1 |
-
.night-glow.ig_container {
|
2 |
-
-moz-border-radius: 5px;
|
3 |
-
-webkit-border-radius: 5px;
|
4 |
-
border-radius: 5px;
|
5 |
-
-moz-box-shadow: inset 0 0 7px rgba(255, 255, 255, 0.2);
|
6 |
-
-webkit-box-shadow: inset 0 0 7px rgba(255, 255, 255, 0.2);
|
7 |
-
box-shadow: inset 0 0 7px rgba(255, 255, 255, 0.2);
|
8 |
-
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
|
9 |
-
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
|
10 |
-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
|
11 |
-
-webkit-font-smoothing: antialiased;
|
12 |
-
background-color: transparent !important;
|
13 |
-
background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.83)), to(rgba(51, 51, 51, 0.73)), color-stop(0.5, rgba(0, 0, 0, 0.83))) !important;
|
14 |
-
border: 1px solid rgba(0, 0, 0, 0.6);
|
15 |
-
color: rgba(150, 150, 150, 1);
|
16 |
-
text-shadow: 0 -1px 0 #000;
|
17 |
-
}
|
18 |
-
|
19 |
-
.night-glow .ig_wrapper {
|
20 |
-
-moz-border-radius: 3px;
|
21 |
-
-webkit-border-radius: 3px;
|
22 |
-
border-radius: 3px;
|
23 |
-
background-image: url(../images/toast-glow.png);
|
24 |
-
background-repeat: no-repeat;
|
25 |
-
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
26 |
-
-moz-border-image: stretch;
|
27 |
-
-ms-border-image: stretch;
|
28 |
-
-o-border-image: stretch;
|
29 |
-
-webkit-border-image: stretch;
|
30 |
-
border-image: stretch;
|
31 |
-
position: auto;
|
32 |
-
}
|
33 |
-
|
34 |
-
.night-glow .ig_content {
|
35 |
-
padding-left: 8px;
|
36 |
-
-moz-border-radius: 3px;
|
37 |
-
-webkit-border-radius: 3px;
|
38 |
-
border-radius: 3px;
|
39 |
-
border-left: 1px solid rgba(255, 255, 255, 0.1);
|
40 |
-
background-color: transparent !important;
|
41 |
-
}
|
42 |
-
|
43 |
-
.night-glow .ig_headline {
|
44 |
-
color: rgba(255, 255, 255, 0.9);
|
45 |
-
}
|
46 |
-
|
47 |
-
.night-glow .ig_message {
|
48 |
-
color: rgba(255, 255, 255, 0.9);
|
49 |
-
}
|
1 |
+
.night-glow.ig_container{-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;-moz-box-shadow:inset 0 0 7px rgba(255,255,255,0.2);-webkit-box-shadow:inset 0 0 7px rgba(255,255,255,0.2);box-shadow:inset 0 0 7px rgba(255,255,255,0.2);-moz-box-shadow:0 1px 3px rgba(0,0,0,0.6);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.6);box-shadow:0 1px 3px rgba(0,0,0,0.6);-webkit-font-smoothing:antialiased;background-color:transparent!important;background:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,0.83)),to(rgba(51,51,51,0.73)),color-stop(0.5,rgba(0,0,0,0.83)))!important;border:1px solid rgba(0,0,0,0.6);color:rgba(150,150,150,1);text-shadow:0 -1px 0 #000}.night-glow .ig_wrapper{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;background-image:url(../images/toast-glow.png);background-repeat:no-repeat;border-bottom:1px solid rgba(255,255,255,0.05);-moz-border-image:stretch;-ms-border-image:stretch;-o-border-image:stretch;-webkit-border-image:stretch;border-image:stretch;position:auto}.night-glow .ig_content{padding-left:8px;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;border-left:1px solid rgba(255,255,255,0.1);background-color:transparent!important}.night-glow .ig_headline{color:rgba(255,255,255,0.9)}.night-glow .ig_message{color:rgba(255,255,255,0.9)}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message-types/toast/themes/stand-out.css
CHANGED
@@ -1,34 +1 @@
|
|
1 |
-
.stand-out .ig_wrapper {
|
2 |
-
padding: 5px 50px 5px 10px;
|
3 |
-
}
|
4 |
-
|
5 |
-
.stand-out.ig_container {
|
6 |
-
background-color: hsl(0, 0%, 12%) !important;
|
7 |
-
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, rgba(0, 0, 0, 0.1)), color-stop(1, rgba(255, 255, 255, 0.1))), url(../images/stand-out.png) !important;
|
8 |
-
-moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 -1px 0 rgba(255, 255, 255, 0.1) inset, 0 1px 4px rgba(0, 0, 0, 0.7);
|
9 |
-
-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 -1px 0 rgba(255, 255, 255, 0.1) inset, 0 1px 4px rgba(0, 0, 0, 0.7);
|
10 |
-
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 -1px 0 rgba(255, 255, 255, 0.1) inset, 0 1px 4px rgba(0, 0, 0, 0.7);
|
11 |
-
-moz-border-radius: 5px;
|
12 |
-
-webkit-border-radius: 5px;
|
13 |
-
border-radius: 5px;
|
14 |
-
color: #fff;
|
15 |
-
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.75);
|
16 |
-
border: 1px solid #111;
|
17 |
-
}
|
18 |
-
|
19 |
-
.stand-out .ig_content {
|
20 |
-
background-color: transparent !important;
|
21 |
-
}
|
22 |
-
|
23 |
-
.stand-out .ig_icon {
|
24 |
-
right: 10px;
|
25 |
-
left: auto;
|
26 |
-
-moz-border-radius: 3px;
|
27 |
-
-webkit-border-radius: 3px;
|
28 |
-
border-radius: 3px;
|
29 |
-
}
|
30 |
-
|
31 |
-
.stand-out .ig_message, .stand-out .ig_headline {
|
32 |
-
color: rgba(255, 255, 255, 0.7);
|
33 |
-
line-height: 15px;
|
34 |
-
}
|
1 |
+
.stand-out .ig_wrapper{padding:5px 50px 5px 10px}.stand-out.ig_container{background-color:hsl(0,0%,12%)!important;background-image:-webkit-gradient(linear,left bottom,left top,color-stop(0,rgba(0,0,0,0.1)),color-stop(1,rgba(255,255,255,0.1))),url(../images/stand-out.png)!important;-moz-box-shadow:0 1px 0 rgba(255,255,255,0.3) inset,0 -1px 0 rgba(255,255,255,0.1) inset,0 1px 4px rgba(0,0,0,0.7);-webkit-box-shadow:0 1px 0 rgba(255,255,255,0.3) inset,0 -1px 0 rgba(255,255,255,0.1) inset,0 1px 4px rgba(0,0,0,0.7);box-shadow:0 1px 0 rgba(255,255,255,0.3) inset,0 -1px 0 rgba(255,255,255,0.1) inset,0 1px 4px rgba(0,0,0,0.7);-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;color:#fff;text-shadow:0 1px 0 rgba(0,0,0,0.75);border:1px solid #111}.stand-out .ig_content{background-color:transparent!important}.stand-out .ig_icon{right:10px;left:auto;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.stand-out .ig_message,.stand-out .ig_headline{color:rgba(255,255,255,0.7);line-height:15px}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.icegram.com/
|
|
4 |
Tags: popup, window, hellobar, optin, lead capture, marketing, form, notification, messenger, targeting, monster, ninja
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.1.1
|
7 |
-
Stable tag: 1.8.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -153,6 +153,9 @@ Contact Us, provide as much detail of the problem as you can. We will try to sol
|
|
153 |
3. Editing an Icegram campaign - add multiple messages, edit them, targeting rules, full HTML editor, themes and more
|
154 |
|
155 |
== Upgrade Notice ==
|
|
|
|
|
|
|
156 |
= 1.8.8 =
|
157 |
Improved short code handling, WishList member compatibility and other fixes.
|
158 |
|
@@ -212,6 +215,15 @@ Initial Release
|
|
212 |
|
213 |
|
214 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
= 1.8.8 =
|
216 |
* New: Headlines now support shortcodes!
|
217 |
* Update: A message shown on click of another (using CTA actions addon), can now contain shortcodes
|
4 |
Tags: popup, window, hellobar, optin, lead capture, marketing, form, notification, messenger, targeting, monster, ninja
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.1.1
|
7 |
+
Stable tag: 1.8.9
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
153 |
3. Editing an Icegram campaign - add multiple messages, edit them, targeting rules, full HTML editor, themes and more
|
154 |
|
155 |
== Upgrade Notice ==
|
156 |
+
= 1.8.9 =
|
157 |
+
Many small changes. Plus major changes for caching compatibility.
|
158 |
+
|
159 |
= 1.8.8 =
|
160 |
Improved short code handling, WishList member compatibility and other fixes.
|
161 |
|
215 |
|
216 |
|
217 |
== Changelog ==
|
218 |
+
= 1.8.9 =
|
219 |
+
* New: Both body and button colors (background and foreground) can now be set
|
220 |
+
* Update: Brought back CTA Buttons default colors
|
221 |
+
* New: Lazy load Icegram messages for better comaptibility with caching plugins
|
222 |
+
* Update: Updated all themes to support new theme coloring scheme
|
223 |
+
* Fix: Some alignment issues with images in popups
|
224 |
+
* Update: Minified all JS and CSS to improve performance
|
225 |
+
* Update: Auto correction for CTA links now works with tel: links
|
226 |
+
|
227 |
= 1.8.8 =
|
228 |
* New: Headlines now support shortcodes!
|
229 |
* Update: A message shown on click of another (using CTA actions addon), can now contain shortcodes
|
settings.php
CHANGED
@@ -7,6 +7,11 @@ if( isset( $_POST['submit'] ) ) {
|
|
7 |
} else {
|
8 |
update_option( 'icegram_share_love', 'no' );
|
9 |
}
|
|
|
|
|
|
|
|
|
|
|
10 |
}
|
11 |
|
12 |
?>
|
@@ -23,6 +28,15 @@ if( isset( $_POST['submit'] ) ) {
|
|
23 |
</label>
|
24 |
</td>
|
25 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
</table>
|
27 |
<?php submit_button(); ?>
|
28 |
</form>
|
7 |
} else {
|
8 |
update_option( 'icegram_share_love', 'no' );
|
9 |
}
|
10 |
+
if( isset( $_POST['icegram_cache_compatibility'] ) ) {
|
11 |
+
update_option( 'icegram_cache_compatibility', $_POST['icegram_cache_compatibility'] );
|
12 |
+
} else {
|
13 |
+
update_option( 'icegram_cache_compatibility', 'no' );
|
14 |
+
}
|
15 |
}
|
16 |
|
17 |
?>
|
28 |
</label>
|
29 |
</td>
|
30 |
</tr>
|
31 |
+
<tr>
|
32 |
+
<th scope="row"><?php _e( 'Cache Friendly?', 'icegram' ) ?></th>
|
33 |
+
<td>
|
34 |
+
<label for="icegram_cache_compatibility">
|
35 |
+
<input type="checkbox" name="icegram_cache_compatibility" id="icegram_cache_compatibility"/ value="yes" <?php checked('yes', get_option('icegram_cache_compatibility')); ?> />
|
36 |
+
<?php _e( 'Turn on "Lazy Load" - load Icegram scripts and messages after page load to avoid caching problems.', 'icegram' ); ?>
|
37 |
+
</label>
|
38 |
+
</td>
|
39 |
+
</tr>
|
40 |
</table>
|
41 |
<?php submit_button(); ?>
|
42 |
</form>
|