Popups, Welcome Bar, Optins and Lead Generation Plugin – Icegram - Version 1.8.10

Version Description

Fixes for minified js and css. Changes for WP themes compatibility.

Download this release

Release Info

Developer niravmehta
Plugin Icon 128x128 Popups, Welcome Bar, Optins and Lead Generation Plugin – Icegram
Version 1.8.10
Comparing to
See all releases

Code changes from version 1.8.9 to 1.8.10

Files changed (41) hide show
  1. assets/css/frontend.css +1 -1
  2. assets/js/admin.js +1 -31
  3. assets/js/ajax-chosen.jquery.min.js +1 -5
  4. assets/js/chosen.jquery.min.js +1 -65
  5. assets/js/icegram.js +1 -53
  6. assets/js/jquery.tipTip.min.js +1 -35
  7. assets/js/magnific-popup.js +1 -89
  8. assets/js/main.js +1 -8
  9. classes/class-icegram-campaign-admin.php +3 -3
  10. classes/class-icegram-campaign.php +1 -0
  11. classes/class-icegram-message-admin.php +24 -27
  12. icegram.php +19 -6
  13. message-types/action-bar/default.css +1 -1
  14. message-types/action-bar/main.js +1 -16
  15. message-types/action-bar/themes/air-mail.css +1 -1
  16. message-types/action-bar/themes/bold.css +1 -1
  17. message-types/action-bar/themes/hello.css +1 -1
  18. message-types/action-bar/themes/solid.css +1 -1
  19. message-types/messenger/default.css +1 -1
  20. message-types/messenger/main.js +1 -12
  21. message-types/messenger/themes/canvas.css +1 -1
  22. message-types/messenger/themes/clear.css +1 -1
  23. message-types/messenger/themes/social.css +1 -1
  24. message-types/messenger/themes/talk.css +1 -1
  25. message-types/popup/default.css +1 -1
  26. message-types/popup/main.js +1 -92
  27. message-types/popup/themes/air-mail.css +1 -1
  28. message-types/popup/themes/amaze.css +1 -1
  29. message-types/popup/themes/compel.css +1 -1
  30. message-types/popup/themes/convert.css +1 -1
  31. message-types/popup/themes/inspire.css +1 -1
  32. message-types/popup/themes/persuade.css +1 -1
  33. message-types/toast/default.css +1 -1
  34. message-types/toast/main.js +1 -8
  35. message-types/toast/themes/announce.css +1 -1
  36. message-types/toast/themes/balance.css +1 -1
  37. message-types/toast/themes/burnt.css +1 -1
  38. message-types/toast/themes/clear.css +1 -1
  39. message-types/toast/themes/night-glow.css +1 -1
  40. message-types/toast/themes/stand-out.css +1 -1
  41. readme.txt +11 -3
assets/css/frontend.css CHANGED
@@ -1,2 +1,2 @@
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}}
1
  /* Powered By link */
2
+ .ig_powered_by,.ig_powered_by a,a.ig_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/js/admin.js CHANGED
@@ -1,31 +1 @@
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)}})})
1
+ jQuery(function(){function e(e){var t=jQuery(e).find(".message_type option:selected").val(),a=jQuery(e).find(".message_row.ig_"+t).find(".message_theme").val(),i=jQuery(e).find("#message_theme_ig_"+t).find("."+a).attr("style");jQuery(e).find("#embed_form_but").hide(),jQuery(e).find(".message_row, .location").hide(),jQuery(e).find(".ig_"+t).show(),jQuery(e).find(".message_row.ig_"+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 r=Math.floor(Math.random()*(i-a+1))+a;return r==e?t(r,a,i):r}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>';return e}function i(){0==jQuery(".message-row").length?jQuery(".empty_campaign").show():jQuery(".empty_campaign").hide()}var r=icegram_writepanel_params.home_url;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;jQuery("#postdivrich").hide(),jQuery(".color-field").wpColorPicker().each(function(e){var t=jQuery(this).data("color-label")||"";""!==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");for(var r=0;r<this_data.length;r++)e(this_data[r]);jQuery(".inside").on("change",".message_type",function(t){var a=jQuery(t.target).parents(".message-setting-fields");e(a)}),jQuery("#campaign_data,#message-settings").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.ig_"+a).find(".message_theme").val(),r=jQuery(t).find("#message_theme_ig_"+a).find("."+i).attr("style");jQuery(t).find(".message_row.ig_"+a).find(".message_theme").next().find(".chosen-single span").attr("style",r)}),jQuery("#campaign_data").on("click",".message_image_button",function(e){var t=this;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),r=icegram_writepanel_params.available_headlines[i];jQuery(this).prev().val(r)}),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={};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(),r=jQuery(a).find("#embed_form_width option:selected").val(),n=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");jQuery(a).find(".use_cta_check input[type=checkbox]:checked").length>0&&(u=u.not("input[type=submit]"),u=u.not("button[type=submit]"));var c=jQuery("<div/>").html(l).find("form").removeAttr("class").addClass("ig_embed_form").addClass(i).addClass(r).addClass(n).addClass("ig_clear").empty(),d=null,p=0;if(jQuery.each(u,function(e,t){var a=jQuery(t),i=jQuery('<li class="ig_form_el_group"></li>');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," ");else if((a.is("input")||a.is("button")||a.is("textarea"))&&!a.is("input[type=radio]")){if(a.removeAttr("id"),a.is("button")){var r=a.not("br, span, div").text().trim()||"";a.remove(),a=jQuery('<input type="submit">'),r&&a.attr("value",r)}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"==r?4:"ig_half"==r?2:1;p=p>_?_:p;var g=(100-p)/p;s.find("input, select, textarea").not("input[type=submit]").not("input[type=radio]").not("input[type=hidden]").parent().css("width",g+"%"),s.find("input[type=radio]").parent().parent().css("width",g+"%")}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),r=jQuery.extend({},tinyMCEPreInit.qtInit.content),n=jQuery(this).parent().siblings(".campaign_target_rules_panel"),s=jQuery(n).find(".message-row").length,o=jQuery(this).val();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(n).find(".messages-list .messages_list_table tbody").append(o.main),jQuery(".color-field").wpColorPicker().each(function(e){var t=jQuery(this).data("color-label")||"";""!==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));tinyMCEPreInit.mceInit["edit"+o.id]=a}if("undefined"==typeof tinyMCEPreInit.qtInit["edit"+o.id]){for(_prop in r)"string"==typeof r[_prop]&&"content_css"!==_prop&&(r[_prop]=r[_prop].replace(new RegExp("content","g"),"edit"+o.id));tinyMCEPreInit.qtInit["edit"+o.id]=r}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();var t=a();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;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;if(t.indexOf(r)<0)return void jQuery(e).val(r+t)}})});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/ajax-chosen.jquery.min.js CHANGED
@@ -1,5 +1 @@
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)
1
+ !function(t){return t.fn.ajaxChosen=function(e,n){var a,i,r,s;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;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;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,65 +1 @@
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={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},s=/&(?!\w+;)|[\<\>\"\'\`]/g,t.replace(s,function(t){return e[t]||"&amp;"})):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)
1
+ !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]);return s.prototype=e.prototype,t.prototype=new s,t.__super__=e.prototype,t};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;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));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;return null==t||t===!1?"":/[\&\<\>\"\'\`]/.test(t)?(e={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},s=/&(?!\w+;)|[\<\>\"\'\`]/g,t.replace(s,function(t){return e[t]||"&amp;"})):t},t}(),i.select_to_array=function(t){var e,s,r,o,n;for(s=new i,n=t.childNodes,r=0,o=n.length;o>r;r++)e=n[r],s.add_node(e);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;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;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;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;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));return e},t.prototype.result_add_option=function(t){var e,s;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;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;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);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;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)));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;if(e.test(t))return!0;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;if(null!=this.selected_option_count)return this.selected_option_count;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);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;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();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(t.preventDefault(),this.results_showing)return this.result_select(t);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()}},t.prototype.clipboard_event_checker=function(){var t=this;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;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;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;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;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;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;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;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);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;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;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;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;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;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;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;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;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;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;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;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;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;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;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(t),this.mouse_on_container=!1;break;case 13:t.preventDefault();break;case 38:t.preventDefault(),this.keyup_arrow();break;case 40:t.preventDefault(),this.keydown_arrow()}},s.prototype.search_field_scale=function(){var e,s,i,r,o,n,h,l,c;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)+";";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,53 +1 @@
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))}})
1
+ function Icegram(){}function Icegram_Message_Type(e){var e;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>');this.messages=[];var t=this;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;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("_");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];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=[];if(jQuery.isArray(t)){var a=this;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);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){}};"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();var e=this.render_template();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();var i=window.icegram.get_powered_by(this.type);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();else{var a=this.el.find(".ig_embed_form").get(0);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%");var r=jQuery(a).html();a=jQuery(a).empty(),jQuery(a).replaceWith(r),this.el.find(".ig_message").html(a.append(this.el.find(".ig_message").html()));var s=this.el.find(".ig_embed_form_container").prev(),o=this.el.find(".ig_embed_form_container").next();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);var n=window.icegram.hexToHsl(this.data.cta_bg_color);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();else if(this.data.delay_time>=0){var e=this;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();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();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);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;var a,r,s=Math.max(e,t,i),o=Math.min(e,t,i),n=(s+o)/2;if(s==o)a=r=0;else{var d=s-o;switch(r=n>.5?d/(2-s-o):d/(s+o),s){case e:a=(t-i)/d;break;case t:a=(i-e)/d+2;break;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);return window.icegram.rgbToHsl(t.r,t.g,t.b)},"function"!=typeof Object.create&&!function(){var e=function(){};Object.create=function(t){if(arguments.length>1)throw Error("Second argument not supported");if(null===t)throw Error("Cannot set a null [[Prototype]]");if("object"!=typeof t)throw TypeError("Argument must be an object");return e.prototype=t,new e}}(),void 0!==typeof jQuery.cookie&&!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,"\\"));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);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;_.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("=");if(r&&r===u){p=s(f,o);break}r||void 0===(f=s(f))||(p[u]=f)}return p};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
@@ -1,35 +1 @@
1
- /*
2
- * TipTip
3
- * Copyright 2010 Drew Wilson
4
- * www.drewwilson.com
5
- * code.drewwilson.com/entry/tiptip-jquery-plugin
6
- *
7
- * Version 1.3 - Updated: Mar. 23, 2010
8
- *
9
- * This Plug-In will create a custom tooltip to replace the default
10
- * browser tooltip. It is extremely lightweight and very smart in
11
- * that it detects the edges of the browser window and will make sure
12
- * the tooltip stays within the current window size. As a result the
13
- * tooltip will adjust itself to be displayed above, below, to the left
14
- * or to the right depending on what is necessary to stay within the
15
- * browser window. It is completely customizable as well via CSS.
16
- *
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)
1
+ !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);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>');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");return this.each(function(){function e(){i.enter.call(this),r.html(d),n.hide().removeAttr("class").css("margin","0"),a.removeAttr("style");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;"bottom"==i.defaultPosition?g="_bottom":"top"==i.defaultPosition?g="_top":"left"==i.defaultPosition?g="_left":"right"==i.defaultPosition&&(g="_right");var w=s+o<parseInt(t(window).scrollLeft()),O=h+o>parseInt(t(window).width());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+_));var x=e+l+i.edgeOffset+c+8>parseInt(t(window).height()+t(window).scrollTop()),I=e+l-(i.edgeOffset+c+8)<0;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);if(i.content)var d=i.content;else var d=f.attr(i.attribute);if(""!=d){i.content||f.removeAttr(i.attribute);var u=!1;"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,89 +1 @@
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">&times;</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)}))}}}}),_()})
1
+ !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");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"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};y.prototype={constructor:y,init:function(){var n=navigator.appVersion;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;if(n.isObj===!1){t.items=n.items.toArray(),t.index=0;var r,s=n.items;for(o=0;o<s.length;o++)if(r=s[o],r.parsed&&(r=r.el[0]),r===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(t.isOpen)return void t.updateItemHTML();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));var l=e.magnificPopup.modules;for(o=0;o<l.length;o++){var c=l[o];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);var p=t.wH=I.height(),f={};if(t.fixedContentPos&&t._hasScrollBar(p)){var m=t._getScrollbarSize();m&&(f.marginRight=m)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):f.overflow="hidden");var h=t.st.mainClass;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);var n=h+" "+v+" ";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:""};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;t.wrap.css("height",i),t.wH=i}else t.wH=e||I.height();t.fixedContentPos||t.wrap.css("height",t.wH),S("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;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;S("FirstMarkupParse",a),a?t.currTemplate[i]=e(a):t.currTemplate[i]=!0}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var r=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);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];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];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)};n||(n={});var o="click.magnificPopup";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;if(a||2!==n.which&&!n.ctrlKey&&!n.metaKey){var r=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(r)if(e.isFunction(r)){if(!r.call(t))return!0}else if(I.width()<r)return!0;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);var o={status:e,text:i};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;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;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;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;if(o=e.split("_"),o.length>1){var i=t.find(g+"-"+o[0]);if(i.length>0){var a=o[1];"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");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">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(n){_();var i=e(this);if("string"==typeof n)if("open"===n){var o,a=w?i.data("magnificPopup"):i[0].magnificPopup,r=parseInt(arguments[1],10)||0;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));else n=e.extend(!0,{},n),w?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var P,O,x,z="inline",M=function(){x&&(O.after(x.addClass(P)).detach(),x=null)};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);if(a.length){var r=a[0].parentNode;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>");return n.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var B,H=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};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";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;if(e&&e.img&&t.st.image.verticalFit){var n=0;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)};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");if(l.length){var c=document.createElement("img");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)}}});var F,A=function(){return void 0===F&&(F=void 0!==document.createElement("p").style.MozTransform),F};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";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";return o["-webkit-"+a]=o["-moz-"+a]=o["-o-"+a]=o[a]=i,t.css(o),t},p=function(){t.content.css("visibility","visible")};b("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return void p();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;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;i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var o=i.offset(),a=parseInt(i.css("padding-top"),10),r=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-a;var s={width:i.width(),height:(w?i.innerHeight():i[0].offsetHeight)-r-a};return A()?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var L="retina";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;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 CHANGED
@@ -1,8 +1 @@
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)}
1
+ function load_scripts_and_css(t){var a={};jQuery.each(t.css,function(t,e){a["ig_css_"+t]=1}),jQuery.each(t.scripts,function(t,e){a["ig_script_"+t]=1});var e=function(e){var r=e.target.id||"";""!=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()}))};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)});var r=t.scripts.shift();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={};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-admin.php CHANGED
@@ -21,7 +21,7 @@ if ( !class_exists( 'Icegram_Campaign_Admin' ) ) {
21
  //duplicate campaign
22
  add_filter( 'post_row_actions', array(&$this , 'add_campaign_action'), 10, 2 );
23
  add_action('admin_init', array(&$this ,'duplicate_campaign') ,10, 1);
24
- $this->site_url = site_url().'/';
25
 
26
  $this->default_target_rules = apply_filters( 'icegram_campaign_default_rules',
27
  array ( 'homepage' => 'yes',
@@ -89,7 +89,7 @@ if ( !class_exists( 'Icegram_Campaign_Admin' ) ) {
89
  ?>
90
  <tr class="form-field message-row" value="<?php echo $message['id']; ?>">
91
  <td class="message_header">
92
- <label class="message_header_label <?php echo $message_data['type']; ?>"><?php echo $icegram->message_types[ $message_data['type'] ]['name']; ?></label>
93
  </td>
94
  <td class="message_title">
95
  <div class="message-title-text"><?php echo $message_title; ?></div>
@@ -489,7 +489,7 @@ if ( !class_exists( 'Icegram_Campaign_Admin' ) ) {
489
  ?>
490
  <tr class="form-field message-row" value="<?php echo $message_id; ?>">
491
  <td class="message_header">
492
- <label class="message_header_label <?php echo $message_type; ?>"><?php echo ucwords( str_replace( "-", ' ', $message_type ) ); ?></label>
493
  </td>
494
  <td class="message_title">
495
  <div class="message-title-text" style="display:none;"><?php echo $message_title; ?></div>
21
  //duplicate campaign
22
  add_filter( 'post_row_actions', array(&$this , 'add_campaign_action'), 10, 2 );
23
  add_action('admin_init', array(&$this ,'duplicate_campaign') ,10, 1);
24
+ $this->site_url = home_url().'/';
25
 
26
  $this->default_target_rules = apply_filters( 'icegram_campaign_default_rules',
27
  array ( 'homepage' => 'yes',
89
  ?>
90
  <tr class="form-field message-row" value="<?php echo $message['id']; ?>">
91
  <td class="message_header">
92
+ <label class="message_header_label <?php echo "ig_".$message_data['type']; ?>"><?php echo $icegram->message_types[ $message_data['type'] ]['name']; ?></label>
93
  </td>
94
  <td class="message_title">
95
  <div class="message-title-text"><?php echo $message_title; ?></div>
489
  ?>
490
  <tr class="form-field message-row" value="<?php echo $message_id; ?>">
491
  <td class="message_header">
492
+ <label class="message_header_label <?php echo "ig_".$message_type; ?>"><?php echo ucwords( str_replace( "-", ' ', $message_type ) ); ?></label>
493
  </td>
494
  <td class="message_title">
495
  <div class="message-title-text" style="display:none;"><?php echo $message_title; ?></div>
classes/class-icegram-campaign.php CHANGED
@@ -146,6 +146,7 @@ if ( !class_exists( 'Icegram_Campaign' ) ) {
146
  if(!empty($_POST['ig_remote_url'])){
147
  return;
148
  }
 
149
  foreach ($campaign->rules['local_urls'] as $local_url_pattern) {
150
  $result = $this->is_valid_url($local_url_pattern , $current_page_url);
151
  if($result){
146
  if(!empty($_POST['ig_remote_url'])){
147
  return;
148
  }
149
+
150
  foreach ($campaign->rules['local_urls'] as $local_url_pattern) {
151
  $result = $this->is_valid_url($local_url_pattern , $current_page_url);
152
  if($result){
classes/class-icegram-message-admin.php CHANGED
@@ -47,7 +47,7 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
47
  $message_types[] = $type;
48
  }
49
  }
50
- echo $out = '<a href="#popup_container" class="'.implode( ' ', $message_types).' button" id="embed_form_but">'.__('Embed Form' , 'icegram' ).'</a>';
51
  }
52
  }
53
 
@@ -122,6 +122,7 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
122
  foreach ( $icegram->message_types as $message_type => $message ) {
123
 
124
  if( !empty( $message['admin_style'] ) ) {
 
125
  $label_bg_color = $message['admin_style']['label_bg_color'];
126
  $theme_header_height = $message['admin_style']['theme_header_height'];
127
  $theme_header_bg_size = ( $theme_header_height + 3 )."em";
@@ -191,10 +192,10 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
191
  continue;
192
  }
193
  ?>
194
- <p class="message_row <?php echo $message['type']; ?>">
195
 
196
- <label for="message_theme_<?php echo $message['type'] ?>" class="message_label"><strong><?php _e( 'Theme', 'icegram' ); ?></strong></label>
197
- <select id="message_theme_<?php echo $message['type'] ?>" name="message_data[<?php echo $message_id; ?>][theme][<?php echo $message['type'] ?>]" class="icegram_chosen_page message_theme message_theme_<?php echo $message['type']; ?>">
198
  <?php
199
  foreach ( $message['themes'] as $theme ) {
200
 
@@ -209,7 +210,7 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
209
  if( empty( $message['settings']['animation']['values'] ) ) continue;
210
  $animations = $message['settings']['animation']['values']
211
  ?>
212
- <p class="message_row <?php echo $message['type']; ?>">
213
  <label for="message_animation_<?php echo $message['type'] ?>" class="message_label"><strong><?php _e( 'Animation', 'icegram' ); ?></strong></label>
214
  <select id="message_animation_<?php echo $message['type'] ?>" name="message_data[<?php echo $message_id; ?>][animation][<?php echo $message['type'] ?>]" class="icegram_chosen_page message_animation message_animation_<?php echo $message['type']; ?>">
215
  <?php foreach ( $animations as $value => $label ) { ?>
@@ -221,7 +222,7 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
221
  // action add for interstitial message setting
222
  do_action( 'icegram_after_message_theme_settings', $message_id, $message_data );
223
  ?>
224
- <p class="message_row <?php echo implode( ' ', $settings['headline'] )?>">
225
  <label for="message_headline" class="message_label">
226
  <strong><?php _e( 'Headline', 'icegram' ); ?></strong>
227
  <span class="help_tip admin_field_icon" data-tip="<?php _e( 'Shown with highest prominence. Click on idea button on right to get a new headline.', 'icegram' ); ?>"></span>
@@ -234,7 +235,7 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
234
  <span class="headline-buttons-icon admin_field_icon"></span>
235
  </a>
236
  </p>
237
- <p class="message_row <?php echo implode( ' ', $settings['label'] )?>">
238
  <label for="message_label" class="message_label">
239
  <strong><?php _e( 'Button Label', 'icegram' ); ?></strong>
240
  <span class="help_tip admin_field_icon" data-tip="<?php _e( 'Your call to action text. Something unusual will increase conversions.', 'icegram' ); ?>"></span>
@@ -242,7 +243,7 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
242
  <input type="text" class="message_field" name="message_data[<?php echo $message_id; ?>][label]" id="message_label" value="<?php if( isset( $message_data['label'] ) ) echo esc_attr( $message_data['label'] ); ?>" />
243
  </p>
244
  <?php
245
- $target_link_field = '<p class="message_row '.implode( ' ', $settings['link'] ).'">
246
  <label for="message_link" class="message_label">
247
  <strong>'.__('Target Link' ,'icegram').'</strong>
248
  <span class="help_tip admin_field_icon" data-tip='.__("Enter destination URL here. Clicking will redirect to this link." ,'icegram').'></span>
@@ -256,7 +257,7 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
256
  ?>
257
 
258
 
259
- <p class="message_row <?php echo implode( ' ', $settings['icon'] )?>">
260
  <label for="upload_image" class="message_label">
261
  <strong><?php _e( 'Icon / Avatar Image', 'icegram' ); ?></strong>
262
  <span class="help_tip admin_field_icon" data-tip="<?php _e( 'This image will appear in message content.', 'icegram' ); ?>"></span>
@@ -277,13 +278,13 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
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">&nbsp;</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">&nbsp;</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.'" />
@@ -291,7 +292,7 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
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>';
@@ -307,54 +308,50 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
307
  'tinymce' => true
308
  );
309
  ?>
310
- <p class="message_row <?php echo implode( ' ', $settings['message'] )?>">
311
  <style type="text/css">.wp-editor-tools:after {display: inline-block !important; }</style>
312
  <label for="message_body" class="message_body message_label"><strong><?php _e( 'Message Body', 'icegram' ); ?></strong></label>
313
  <?php $message = ( !empty( $message_data['message'] ) ) ? $message_data['message'] : ''; ?>
314
  <?php wp_editor( $message, 'edit'.$message_id, $editor_args ); ?>
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>
322
  <span class="message_field location-selector message_label">
323
  <input type="radio" id="radio01_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][position][ig_default]" value="00" <?php echo ( !empty( $message_data['position'] ) && "00" == $message_data['position'] ) ? 'checked' : ''; ?> />
324
  <label for="radio01_<?php echo $message_id;?>" title="Top Left">
325
- <span class="location <?php if( !empty( $positions['00'] ) ) { echo implode( ' ', $positions['00'] ); } ?> top left" data-position="top left"></span>
326
  </label>
327
  <input type="radio" id="radio02_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][position][ig_default]" value="01" <?php echo ( !empty( $message_data['position'] ) && "01" == $message_data['position'] ) ? 'checked' : ''; ?> />
328
  <label for="radio02_<?php echo $message_id;?>" title="Top">
329
- <span class="location <?php if( !empty( $positions['01'] ) ) { echo implode( ' ', $positions['01'] ); } ?> top" data-position="top"></span>
330
  </label>
331
  <input type="radio" id="radio03_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][position][ig_default]" value="02" <?php echo ( !empty( $message_data['position'] ) && "02" == $message_data['position'] ) ? 'checked' : ''; ?> />
332
  <label for="radio03_<?php echo $message_id;?>" title="Top Right">
333
- <span class="location <?php if( !empty( $positions['02'] ) ) { echo implode( ' ', $positions['02'] ); } ?> top right" data-position="top right"></span>
334
  </label>
335
  <input type="radio" id="radio04_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][position][ig_default]" value="10" <?php echo ( !empty( $message_data['position'] ) && "10" == $message_data['position'] ) ? 'checked' : ''; ?> />
336
  <label for="radio04_<?php echo $message_id;?>" title="Middle Left">
337
- <span class="location <?php if( !empty( $positions['10'] ) ) { echo implode( ' ', $positions['10'] ); } ?> middle left" data-position="middle left"></span>
338
  </label>
339
  <input type="radio" id="radio05_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][position][ig_default]" value="11" <?php echo ( !empty( $message_data['position'] ) && "11" == $message_data['position'] ) ? 'checked' : ''; ?> />
340
  <label for="radio05_<?php echo $message_id;?>" title="Middle">
341
- <span class="location <?php if( !empty( $positions['11'] ) ) { echo implode( ' ', $positions['11'] ); } ?> middle middle" data-position="middle middle"></span>
342
  </label>
343
  <input type="radio" id="radio06_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][position][ig_default]" value="12" <?php echo ( !empty( $message_data['position'] ) && "12" == $message_data['position'] ) ? 'checked' : ''; ?> />
344
  <label for="radio06_<?php echo $message_id;?>" title="Middle Right">
345
- <span class="location <?php if( !empty( $positions['12'] ) ) { echo implode( ' ', $positions['12'] ); } ?> middle right" data-position="middle right"></span>
346
  </label>
347
  <input type="radio" id="radio07_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][position][ig_default]" value="20" <?php echo ( !empty( $message_data['position'] ) && "20" == $message_data['position'] ) ? 'checked' : ''; ?> />
348
  <label for="radio07_<?php echo $message_id;?>" title="Bottom Left">
349
- <span class="location <?php if( !empty( $positions['20'] ) ) { echo implode( ' ', $positions['20'] ); } ?> bottom left" data-position="bottom left"></span>
350
  </label>
351
  <input type="radio" id="radio08_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][position][ig_default]" value="21" <?php echo ( !empty( $message_data['position'] ) && "21" == $message_data['position'] || !isset( $message_data['position'] ) ) ? 'checked' : ''; ?> />
352
  <label for="radio08_<?php echo $message_id;?>" title="Bottom">
353
- <span class="location <?php if( !empty( $positions['21'] ) ) { echo implode( ' ', $positions['21'] ); } ?> bottom" data-position="bottom"></span>
354
  </label>
355
  <input type="radio" id="radio09_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][position][ig_default]" value="22" <?php echo ( !empty( $message_data['position'] ) && "22" == $message_data['position'] ) ? 'checked' : ''; ?> />
356
  <label for="radio09_<?php echo $message_id;?>" title="Bottom Right">
357
- <span class="location <?php if( !empty( $positions['22'] ) ) { echo implode( ' ', $positions['22'] ); } ?> bottom right" data-position="bottom right"></span>
358
  </label>
359
  </span>
360
  </p>
47
  $message_types[] = $type;
48
  }
49
  }
50
+ echo $out = '<a href="#popup_container" class="ig_'.implode( ' ig_', $message_types).' button" id="embed_form_but">'.__('Embed Form' , 'icegram' ).'</a>';
51
  }
52
  }
53
 
122
  foreach ( $icegram->message_types as $message_type => $message ) {
123
 
124
  if( !empty( $message['admin_style'] ) ) {
125
+ $message_type = 'ig_'.$message_type;
126
  $label_bg_color = $message['admin_style']['label_bg_color'];
127
  $theme_header_height = $message['admin_style']['theme_header_height'];
128
  $theme_header_bg_size = ( $theme_header_height + 3 )."em";
192
  continue;
193
  }
194
  ?>
195
+ <p class="message_row <?php echo "ig_".$message['type']; ?>">
196
 
197
+ <label for="message_theme_ig_<?php echo $message['type'] ?>" class="message_label"><strong><?php _e( 'Theme', 'icegram' ); ?></strong></label>
198
+ <select id="message_theme_ig_<?php echo $message['type'] ?>" name="message_data[<?php echo $message_id; ?>][theme][<?php echo $message['type'] ?>]" class="icegram_chosen_page message_theme message_theme_ig_<?php echo $message['type']; ?>">
199
  <?php
200
  foreach ( $message['themes'] as $theme ) {
201
 
210
  if( empty( $message['settings']['animation']['values'] ) ) continue;
211
  $animations = $message['settings']['animation']['values']
212
  ?>
213
+ <p class="message_row <?php echo "ig_".$message['type']; ?>">
214
  <label for="message_animation_<?php echo $message['type'] ?>" class="message_label"><strong><?php _e( 'Animation', 'icegram' ); ?></strong></label>
215
  <select id="message_animation_<?php echo $message['type'] ?>" name="message_data[<?php echo $message_id; ?>][animation][<?php echo $message['type'] ?>]" class="icegram_chosen_page message_animation message_animation_<?php echo $message['type']; ?>">
216
  <?php foreach ( $animations as $value => $label ) { ?>
222
  // action add for interstitial message setting
223
  do_action( 'icegram_after_message_theme_settings', $message_id, $message_data );
224
  ?>
225
+ <p class="message_row <?php echo "ig_".implode( ' ig_', $settings['headline'] )?>">
226
  <label for="message_headline" class="message_label">
227
  <strong><?php _e( 'Headline', 'icegram' ); ?></strong>
228
  <span class="help_tip admin_field_icon" data-tip="<?php _e( 'Shown with highest prominence. Click on idea button on right to get a new headline.', 'icegram' ); ?>"></span>
235
  <span class="headline-buttons-icon admin_field_icon"></span>
236
  </a>
237
  </p>
238
+ <p class="message_row <?php echo "ig_".implode( ' ig_', $settings['label'] )?>">
239
  <label for="message_label" class="message_label">
240
  <strong><?php _e( 'Button Label', 'icegram' ); ?></strong>
241
  <span class="help_tip admin_field_icon" data-tip="<?php _e( 'Your call to action text. Something unusual will increase conversions.', 'icegram' ); ?>"></span>
243
  <input type="text" class="message_field" name="message_data[<?php echo $message_id; ?>][label]" id="message_label" value="<?php if( isset( $message_data['label'] ) ) echo esc_attr( $message_data['label'] ); ?>" />
244
  </p>
245
  <?php
246
+ $target_link_field = '<p class="message_row ig_'.implode( ' ig_', $settings['link'] ).'">
247
  <label for="message_link" class="message_label">
248
  <strong>'.__('Target Link' ,'icegram').'</strong>
249
  <span class="help_tip admin_field_icon" data-tip='.__("Enter destination URL here. Clicking will redirect to this link." ,'icegram').'></span>
257
  ?>
258
 
259
 
260
+ <p class="message_row <?php echo "ig_".implode( ' ig_', $settings['icon'] )?>">
261
  <label for="upload_image" class="message_label">
262
  <strong><?php _e( 'Icon / Avatar Image', 'icegram' ); ?></strong>
263
  <span class="help_tip admin_field_icon" data-tip="<?php _e( 'This image will appear in message content.', 'icegram' ); ?>"></span>
278
 
279
  $show_color_options = (!empty($colors_options_check)) ? 'style="display: none;"' : '';
280
  $color_field_html = '<div class="message_colors_options_container" '.$show_color_options.'>
281
+ <p class="message_row ig_'.implode( ' ig_', $settings['bg_color']).'">
282
  <label for="message_bg_color" class="message_label">&nbsp;</label>
283
  <span class="message_label" style="width:5em !important"> '.__( 'Body', 'icegram' ).'</span>
284
  <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.'" />
285
  <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.'" />
286
  </p>
287
+ <p class="message_row ig_'.implode( ' ig_', $settings['label'] ).'">
288
  <label for="message_cta_bg_color" class="message_label">&nbsp;</label>
289
  <span class="message_label" style="width:5em !important">'.__( 'Button', 'icegram' ) .'</span>
290
  <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.'" />
292
  </p>
293
  </div>';
294
  $color_field = apply_filters('icegram_color_fields' , array( 'html' => $color_field_html ,'message_id' => $message_id ,'message_data' => $message_data) );
295
+ $colors_options_html = '<p class="message_row ig_'.implode( ' ig_', $settings['bg_color']).'">
296
  <label for="message_use_theme_defaults" class="message_label"><strong>'. __( 'Colors', 'icegram' ).'</strong></label> <label >
297
  <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'].'
298
  </p>';
308
  'tinymce' => true
309
  );
310
  ?>
311
+ <p class="message_row <?php echo "ig_".implode( ' ig_', $settings['message'] )?>">
312
  <style type="text/css">.wp-editor-tools:after {display: inline-block !important; }</style>
313
  <label for="message_body" class="message_body message_label"><strong><?php _e( 'Message Body', 'icegram' ); ?></strong></label>
314
  <?php $message = ( !empty( $message_data['message'] ) ) ? $message_data['message'] : ''; ?>
315
  <?php wp_editor( $message, 'edit'.$message_id, $editor_args ); ?>
316
  </p>
317
+ <p class="message_row position <?php echo "ig_".implode( ' ig_', $settings['position'] )?>">
 
 
 
 
318
  <label for="message_position" class="message_label"><strong><?php _e( 'Position', 'icegram' ); ?></strong></label>
319
  <span class="message_field location-selector message_label">
320
  <input type="radio" id="radio01_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][position][ig_default]" value="00" <?php echo ( !empty( $message_data['position'] ) && "00" == $message_data['position'] ) ? 'checked' : ''; ?> />
321
  <label for="radio01_<?php echo $message_id;?>" title="Top Left">
322
+ <span class="location <?php if( !empty( $positions['00'] ) ) { echo "ig_".implode( ' ig_', $positions['00'] ); } ?> top left" data-position="top left"></span>
323
  </label>
324
  <input type="radio" id="radio02_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][position][ig_default]" value="01" <?php echo ( !empty( $message_data['position'] ) && "01" == $message_data['position'] ) ? 'checked' : ''; ?> />
325
  <label for="radio02_<?php echo $message_id;?>" title="Top">
326
+ <span class="location <?php if( !empty( $positions['01'] ) ) { echo "ig_".implode( ' ig_', $positions['01'] ); } ?> top" data-position="top"></span>
327
  </label>
328
  <input type="radio" id="radio03_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][position][ig_default]" value="02" <?php echo ( !empty( $message_data['position'] ) && "02" == $message_data['position'] ) ? 'checked' : ''; ?> />
329
  <label for="radio03_<?php echo $message_id;?>" title="Top Right">
330
+ <span class="location <?php if( !empty( $positions['02'] ) ) { echo "ig_".implode( ' ig_', $positions['02'] ); } ?> top right" data-position="top right"></span>
331
  </label>
332
  <input type="radio" id="radio04_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][position][ig_default]" value="10" <?php echo ( !empty( $message_data['position'] ) && "10" == $message_data['position'] ) ? 'checked' : ''; ?> />
333
  <label for="radio04_<?php echo $message_id;?>" title="Middle Left">
334
+ <span class="location <?php if( !empty( $positions['10'] ) ) { echo "ig_".implode( ' ig_', $positions['10'] ); } ?> middle left" data-position="middle left"></span>
335
  </label>
336
  <input type="radio" id="radio05_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][position][ig_default]" value="11" <?php echo ( !empty( $message_data['position'] ) && "11" == $message_data['position'] ) ? 'checked' : ''; ?> />
337
  <label for="radio05_<?php echo $message_id;?>" title="Middle">
338
+ <span class="location <?php if( !empty( $positions['11'] ) ) { echo "ig_".implode( ' ig_', $positions['11'] ); } ?> middle middle" data-position="middle middle"></span>
339
  </label>
340
  <input type="radio" id="radio06_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][position][ig_default]" value="12" <?php echo ( !empty( $message_data['position'] ) && "12" == $message_data['position'] ) ? 'checked' : ''; ?> />
341
  <label for="radio06_<?php echo $message_id;?>" title="Middle Right">
342
+ <span class="location <?php if( !empty( $positions['12'] ) ) { echo "ig_".implode( ' ig_', $positions['12'] ); } ?> middle right" data-position="middle right"></span>
343
  </label>
344
  <input type="radio" id="radio07_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][position][ig_default]" value="20" <?php echo ( !empty( $message_data['position'] ) && "20" == $message_data['position'] ) ? 'checked' : ''; ?> />
345
  <label for="radio07_<?php echo $message_id;?>" title="Bottom Left">
346
+ <span class="location <?php if( !empty( $positions['20'] ) ) { echo "ig_".implode( ' ig_', $positions['20'] ); } ?> bottom left" data-position="bottom left"></span>
347
  </label>
348
  <input type="radio" id="radio08_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][position][ig_default]" value="21" <?php echo ( !empty( $message_data['position'] ) && "21" == $message_data['position'] || !isset( $message_data['position'] ) ) ? 'checked' : ''; ?> />
349
  <label for="radio08_<?php echo $message_id;?>" title="Bottom">
350
+ <span class="location <?php if( !empty( $positions['21'] ) ) { echo "ig_".implode( ' ig_', $positions['21'] ); } ?> bottom" data-position="bottom"></span>
351
  </label>
352
  <input type="radio" id="radio09_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][position][ig_default]" value="22" <?php echo ( !empty( $message_data['position'] ) && "22" == $message_data['position'] ) ? 'checked' : ''; ?> />
353
  <label for="radio09_<?php echo $message_id;?>" title="Bottom Right">
354
+ <span class="location <?php if( !empty( $positions['22'] ) ) { echo "ig_".implode( ' ig_', $positions['22'] ); } ?> bottom right" data-position="bottom right"></span>
355
  </label>
356
  </span>
357
  </p>
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.9
7
  * Author: icegram
8
  * Author URI: http://www.icegram.com/
9
  *
@@ -35,7 +35,7 @@ class Icegram {
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__ ) );
@@ -529,7 +529,7 @@ class Icegram {
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) {
@@ -671,12 +671,12 @@ class Icegram {
671
  // Process
672
  function process_message_body(&$message_data){
673
  $content = $message_data['message'];
674
- $content = convert_chars( convert_smilies( wptexturize( $content ) ) );
675
  if(isset($GLOBALS['wp_embed'])) {
676
  $content = $GLOBALS['wp_embed']->autoembed($content);
677
  }
678
  $content = $this->after_wpautop( wpautop( $this->before_wpautop( $content ) ) );
679
  $content = do_shortcode( shortcode_unautop( $content ) );
 
680
  $message_data['message'] = $content;
681
  //do_shortcode in headline
682
  $message_data['headline'] = do_shortcode( shortcode_unautop( $message_data['headline'] ) );
@@ -701,7 +701,7 @@ class Icegram {
701
  wp_enqueue_script( 'magnific_popup_js' );
702
  }
703
 
704
- $icegram_writepanel_params = array ( 'ajax_url' => admin_url( 'admin-ajax.php' ), 'search_message_nonce' => wp_create_nonce( "search-messages" ) );
705
  $this->available_headlines = apply_filters( 'icegram_available_headlines', array() );
706
  $icegram_writepanel_params = array_merge( $icegram_writepanel_params, array( 'available_headlines' => $this->available_headlines ) );
707
 
@@ -1277,7 +1277,20 @@ class Icegram {
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
 
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.10
7
  * Author: icegram
8
  * Author URI: http://www.icegram.com/
9
  *
35
 
36
  function __construct() {
37
 
38
+ $this->version = "1.8.10";
39
  $this->shortcode_instances = array();
40
  $this->mode = 'local';
41
  $this->plugin_url = untrailingslashit( plugins_url( '/', __FILE__ ) );
529
  $skip_others = $preview_mode = false;
530
  $campaign_ids = $message_ids = array();
531
 
532
+ $this->shortcode_instances = ($this->cache_compatibility == 'yes' && !empty($_REQUEST['shortcodes'])) ? $_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) {
671
  // Process
672
  function process_message_body(&$message_data){
673
  $content = $message_data['message'];
 
674
  if(isset($GLOBALS['wp_embed'])) {
675
  $content = $GLOBALS['wp_embed']->autoembed($content);
676
  }
677
  $content = $this->after_wpautop( wpautop( $this->before_wpautop( $content ) ) );
678
  $content = do_shortcode( shortcode_unautop( $content ) );
679
+ $content = convert_chars( convert_smilies( wptexturize( $content ) ) );
680
  $message_data['message'] = $content;
681
  //do_shortcode in headline
682
  $message_data['headline'] = do_shortcode( shortcode_unautop( $message_data['headline'] ) );
701
  wp_enqueue_script( 'magnific_popup_js' );
702
  }
703
 
704
+ $icegram_writepanel_params = array ( 'ajax_url' => admin_url( 'admin-ajax.php' ), 'search_message_nonce' => wp_create_nonce( "search-messages" ), 'home_url' => home_url( '/' ) );
705
  $this->available_headlines = apply_filters( 'icegram_available_headlines', array() );
706
  $icegram_writepanel_params = array_merge( $icegram_writepanel_params, array( 'available_headlines' => $this->available_headlines ) );
707
 
1277
  return self::$current_page_id;
1278
  }
1279
  static function get_current_page_url() {
1280
+ if(!empty($_REQUEST['cache_compatibility']) && $_REQUEST['cache_compatibility'] == 'yes'){
1281
+ $pageURL = (!empty($_REQUEST['referral_url'])) ? $_REQUEST['referral_url'] : '';
1282
+ }else{
1283
+ $pageURL = 'http';
1284
+ if( isset($_SERVER["HTTPS"]) ) {
1285
+ if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
1286
+ }
1287
+ $pageURL .= "://";
1288
+ if ($_SERVER["SERVER_PORT"] != "80") {
1289
+ $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
1290
+ } else {
1291
+ $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
1292
+ }
1293
+ }
1294
  return $pageURL;
1295
  }
1296
 
message-types/action-bar/default.css CHANGED
@@ -1 +1 @@
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}}
1
+ .ig_action_bar.ig_container{z-index:100000;width:100%;padding:0;margin:0;display:none;left:0}.ig_action_bar.ig_container.ig_top.ig_show{position:fixed;z-index:9999999}.ig_action_bar.ig_container.ig_top{top:0}.ig_action_bar.ig_container.ig_bottom{bottom:0}.ig_action_bar .ig_content{}.ig_action_bar.hello .ig_headline{}.ig_action_bar .ig_message{line-height:1.3em}.ig_action_bar img.icon{width:50px}.ig_action_bar .ig_data{}.ig_action_bar .ig_button,.ig_action_bar input[type="submit"],.ig_action_bar input[type="button"]{border-bottom:none;cursor:pointer}.ig_action_bar .ig_button:active,.ig_action_bar input[type="submit"]:active,.ig_action_bar input[type="button"]:active{border-top:none}.ig_action_bar .ig_close{cursor:pointer}.ig_action_bar .ig_powered_by{vertical-align:top;opacity:.5;display:inline-block;float:left}.ig_action_bar .ig_powered_by img{width:2em;margin-left:1em;margin-top:1em}.ig_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}.ig_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}.ig_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}.ig_action_bar .ig_rotate{transform:rotate(180deg);-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg)}.ig_action_bar .ig_arrow_block span{cursor:pointer;display:inline-block;padding:2px;overflow:hidden}.ig_action_bar.ig_top .ig_arrow_block span,.ig_action_bar.ig_bottom .ig_arrow_block span{background-image:url(../../assets/images/arrows-sprite.png);background-repeat:no-repeat;width:28px;height:28px}.ig_action_bar.ig_top .ig_arrow_block span{background-position:-2px -5px}.ig_action_bar.ig_bottom .ig_arrow_block span{background-position:-4px -5px}div.icegram .ig_action_bar form{margin:0;padding:0}div.icegram .ig_action_bar input,div.icegram .ig_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 .ig_action_bar .ig_button{margin:.4em!important}}
message-types/action-bar/main.js CHANGED
@@ -1,16 +1 @@
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)}
1
+ 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="ig_action_bar ig_container ig_{{=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");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("ig_bottom"),this.el.css("position","fixed");break;case"01":default:this.el.addClass("ig_top")}},Icegram_Message_Type_Action_Bar.prototype.is_visible=function(){return this.el.find(".ig_arrow_block").hasClass("ig_open")},Icegram_Message_Type_Action_Bar.prototype.show=function(e,i){if(!this.is_visible()){switch(this.data.position){case"21":var a=this;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("ig_open").removeClass("ig_rotate").removeClass("ig_border").css("position","initial")}),this.el.animate({marginBottom:0},300);break;case"01":default:var t=this.el.parent().find(".ig_arrow_block"),s=this.el.parent();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("ig_open").removeClass("ig_border").css("position","initial");var a=this;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("ig_open").addClass("ig_rotate").removeClass("ig_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){"ig_air-mail"!=this.data.theme?this.el.find(".ig_content").before('<div class="ig_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="ig_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;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("ig_open").addClass("ig_border").addClass("ig_rotate").css({position:"fixed",bottom:"0"})});break;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("ig_open").removeClass("ig_rotate").addClass("ig_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(".ig_open,.ig_open span.ig_arrow,.ig_close").length?void e.data.self.hide():jQuery(e.target).filter(".ig_border,.ig_border span.ig_arrow").length?void e.data.self.show():void Icegram_Message_Type.prototype.on_click.apply(this,arguments)};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
message-types/action-bar/themes/air-mail.css CHANGED
@@ -1 +1 @@
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}
1
+ .ig_action_bar.ig_air-mail.ig_container{background-color:#F2F2F2;color:#707070;-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}.ig_action_bar.ig_air-mail.ig_container.ig_top{border-width:0 0 8px 0}.ig_action_bar.ig_air-mail.ig_container.ig_bottom{border-width:8px 0 0 0}.ig_action_bar.ig_air-mail .ig_content{position:relative;padding:1em 1em .25em 1em}.ig_action_bar.ig_air-mail .ig_headline{font-size:1.3em;font-weight:700;line-height:1.2em;padding:0 10px}.ig_action_bar.ig_air-mail .ig_message{line-height:1.2em;padding:5px 10px}.ig_action_bar.ig_air-mail img.icon{width:50px}.ig_action_bar.ig_air-mail .ig_button{float:right;margin-right:1em!important}.ig_action_bar.ig_air-mail input[type="submit"],.ig_action_bar.ig_air-mail input[type="button"],.ig_action_bar.ig_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}.ig_action_bar.ig_air-mail input[type="submit"]:hover,.ig_action_bar.ig_air-mail input[type="button"]:hover,.ig_action_bar.ig_air-mail .ig_button:hover{margin-top:-3px;border-bottom:6px solid #c0392b}.ig_action_bar.ig_air-mail input[type="submit"]:active,.ig_action_bar.ig_air-mail input[type="button"]:active,.ig_action_bar.ig_air-mail .ig_button:active{}.ig_action_bar.ig_air-mail .ig_data{max-width:75%;display:inline-block;float:left}.ig_action_bar.ig_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}.ig_action_bar.ig_air-mail .ig_close:hover{background:url(../images/chosen-sprite.png) no-repeat -43px -11px}.ig_action_bar.ig_air-mail .ig_arrow_block{display:none}.ig_action_bar.ig_air-mail .ig_powered_by img{margin:0!important}
message-types/action-bar/themes/bold.css CHANGED
@@ -1 +1 @@
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}
1
+ .ig_action_bar.ig_bold.ig_container{background-color:#BC0933;color:hsl(0,100%,100%)}.ig_action_bar.ig_bold.ig_container.ig_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}.ig_action_bar.ig_bold.ig_container.ig_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}.ig_action_bar.ig_bold .ig_content{padding:1em 0 0 1em}.ig_action_bar.ig_bold .ig_headline{font-size:1.3em;font-weight:700;line-height:1.2em;padding:0 10px}.ig_action_bar.ig_bold .ig_message{line-height:1.2em;padding:5px 10px}.ig_action_bar.ig_bold img.icon{width:50px}.ig_action_bar.ig_bold .ig_data{max-width:75%;display:inline-block;float:left}.ig_action_bar.ig_bold input[type="submit"],.ig_action_bar.ig_bold input[type="button"],.ig_action_bar.ig_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}.ig_action_bar.ig_bold input[type="submit"]:active,.ig_action_bar.ig_bold input[type="button"]:active,.ig_action_bar.ig_bold .ig_button:active{position:relative;top:3px;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.ig_action_bar.ig_bold .ig_button{float:right;margin-right:1em!important;margin-bottom:.5em}.ig_action_bar.ig_bold .ig_arrow_block.ig_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 +1 @@
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}
1
+ .ig_action_bar.ig_hello.ig_container{background-color:#EB5B31;color:hsl(0,100%,100%);line-height:1.5em}.ig_action_bar.ig_hello.ig_container.ig_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}.ig_action_bar.ig_hello.ig_container.ig_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}.ig_action_bar.ig_hello .ig_content{padding:.5em}.ig_action_bar.ig_hello .ig_content p{margin:0;line-height:1.2em}.ig_action_bar.ig_hello .ig_headline{display:inline-block;font-weight:bold;margin-right:1.5em}.ig_action_bar.ig_hello .ig_message{display:inline-block;margin-right:1.5em}.ig_action_bar.ig_hello .ig_icon{width:32px;height:32px}.ig_action_bar.ig_hello .ig_data{text-align:center}.ig_action_bar.ig_hello .ig_embed_form input[type="submit"],.ig_action_bar.ig_hello .ig_embed_form input[type="button"]{line-height:1.5em}.ig_action_bar.ig_hello .ig_button,.ig_action_bar.ig_hello input[type="submit"],.ig_action_bar.ig_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}.ig_action_bar.ig_hello .ig_button:hover,.ig_action_bar.ig_hello input[type="submit"]:hover,.ig_action_bar.ig_hello input[type="button"]:hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";filter:alpha(opacity=80);opacity:0.8}.ig_action_bar.ig_hello .ig_embed_form{position:relative;bottom:-1.2em}.ig_action_bar.ig_hello .ig_valign_form_fix{position:relative;bottom:.5em;margin-right:4%}.ig_action_bar.ig_hello .ig_valign_form_fix .ig_button{margin:10px 0 0 10px}.ig_action_bar.ig_hello .ig_arrow_block.ig_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}.ig_action_bar.ig_hello .ig_powered_by{margin-top:0;height:32px}.ig_action_bar.ig_hello .ig_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 +1 @@
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}
1
+ .ig_action_bar.ig_solid.ig_container{background-color:#4E3363;color:hsl(0,100%,100%)}.ig_action_bar.ig_solid .ig_content{padding:1em 0 1em 1em}.ig_action_bar.ig_solid .ig_headline{font-size:1.2em;line-height:1em;padding:0 10px}.ig_action_bar.ig_solid .ig_message{line-height:1em;padding:5px 10px}.ig_action_bar.ig_solid img.icon{width:50px}.ig_action_bar.ig_solid .ig_data{max-width:75%;display:inline-block;float:left}.ig_action_bar.ig_solid .ig_button,.ig_action_bar.ig_solid input[type="submit"],.ig_action_bar.ig_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}.ig_action_bar.ig_solid .ig_button{float:right;margin-right:1em!important}.ig_action_bar.ig_solid .ig_button:hover,.ig_action_bar.ig_solid input[type="submit"]:hover,.ig_action_bar.ig_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)}.ig_action_bar.ig_solid .ig_arrow_block.ig_border{background-color:#4E3363;border:none}
message-types/messenger/default.css CHANGED
@@ -1 +1 @@
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}
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 .ig_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,12 +1 @@
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")}}
1
+ 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 ig_{{=theme}} ig_{{=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("ig_left");break;case"22":default:this.el.css({left:jQuery(window).width()-this.el.outerWidth()-5,bottom:0}),this.el.addClass("ig_right")}},Icegram_Message_Type_Messenger.prototype.show=function(e,s){if(!this.is_visible()){var i=s!==!0?1e3:0;switch(this.data.animation){case"appear":this.el.fadeIn(i);break;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="ig_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;switch(this.data.animation){case"appear":this.el.fadeOut(i);break;case"slide":this.el.slideUp(i)}s!==!0&&this.track("closed")}};
 
 
 
 
 
 
 
 
 
 
 
message-types/messenger/themes/canvas.css CHANGED
@@ -1 +1 @@
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}
1
+ .ig_messenger.ig_canvas.ig_container{max-height:80%;max-width:400px;font-family:inherit}.ig_messenger.ig_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.ig_canvas .ig_header{}.ig_messenger.ig_canvas .ig_header_image{display:none}.ig_messenger.ig_canvas .ig_header_text{line-height:1.2em}.ig_messenger.ig_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.ig_canvas .ig_header2_image{display:none}.ig_messenger.ig_canvas .ig_body{}.ig_messenger.ig_canvas .ig_message{color:#444;line-height:1.2em;display:inline}.ig_messenger.ig_canvas .ig_no_icon.ig_message{width:98%}.ig_messenger.ig_canvas .ig_separator{display:none}.ig_messenger.ig_canvas .ig_footer{}.ig_messenger.ig_canvas .ig_footer_image{display:none}.ig_messenger.ig_canvas .ig_close{background:no-repeat url(../images/clear-header.png) 0 -195px;right:10px;top:20px;width:21px;height:13px}.ig_messenger.ig_canvas .ig_powered_by{margin:-0.5em 10px 0.5em 10px}.ig_messenger.ig_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 +1 @@
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}
1
+ .ig_messenger.ig_clear.ig_container{width:250px;height:260px}.ig_messenger.ig_clear .ig_content{}.ig_messenger.ig_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.ig_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.ig_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.ig_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.ig_clear .ig_header2_image{background-image:url(../images/clear-option.png)}.ig_messenger.ig_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.ig_clear .ig_message{color:#3E454C;line-height:1.28em;width:180px;margin-left:.5em}.ig_messenger.ig_clear .ig_no_icon.ig_message{width:97%}.ig_messenger.ig_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.ig_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.ig_clear .ig_footer_image{}.ig_messenger.ig_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.ig_clear .ig_powered_by{top:-20px;left:120px}.ig_messenger.ig_clear .ig_icon{border-radius:2px}
message-types/messenger/themes/social.css CHANGED
@@ -1 +1 @@
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}
1
+ .ig_messenger.ig_social.ig_container{width:250px;height:260px;-webkit-background-clip:padding-box;background-clip:padding-box}.ig_messenger.ig_social .ig_content{}.ig_messenger.ig_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.ig_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.ig_social .ig_header_text{font-size:11px;vertical-align:top;zoom:1;margin:3px 7px 4px}.ig_messenger.ig_social .ig_headline{margin-left:5px;margin-right:40px;line-height:20px;width:195px;text-overflow:ellipsis}.ig_messenger.ig_social .ig_header2_image{display:none}.ig_messenger.ig_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.ig_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.ig_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.ig_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.ig_social .ig_no_icon.ig_message{width:91%}.ig_messenger.ig_social .ig_no_icon.ig_message:after,.ig_messenger.ig_social .ig_no_icon.ig_message:before{content:none}.ig_messenger.ig_social .ig_separator{display:none}.ig_messenger.ig_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.ig_social .ig_footer_image{background-image:url(../images/social-img.png);background-position:-269px -137px;width:24px;height:24px;left:221px}.ig_messenger.ig_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.ig_social .ig_powered_by{top:-16px;left:130px}.ig_messenger.ig_social .ig_icon{border-radius:2px}
message-types/messenger/themes/talk.css CHANGED
@@ -1 +1 @@
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{}
1
+ .ig_messenger.ig_talk.ig_container{width:210px;height:260px}.ig_messenger.ig_talk .ig_content{background:transparent!important}.ig_messenger.ig_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.ig_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.ig_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.ig_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.ig_talk .ig_header2_image{background-image:url(../images/talk-header-2.png)}.ig_messenger.ig_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.ig_talk .ig_message{color:#3E454C;width:142px;margin-left:7px}.ig_messenger.ig_talk .ig_no_icon.ig_message{width:98%}.ig_messenger.ig_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.ig_talk .ig_footer{background-image:url(../images/talk-footer-1.png);height:33px;border:1px solid #BFBFBF;border-bottom:none}.ig_messenger.ig_talk .ig_footer_image{margin-top:.8px}.ig_messenger.ig_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.ig_talk .ig_powered_by{top:-24px;left:93px}.ig_messenger.ig_talk .ig_icon{}
message-types/popup/default.css CHANGED
@@ -1,2 +1,2 @@
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}}
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 .ig_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,92 +1 @@
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">&times;</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()})
1
+ 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 ig_{{=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;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="ig_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;jQuery.magnificPopup.close({items:{src:i,type:"inline"}})}},void 0!==typeof jQuery.magnificPopup&&!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");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"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};y.prototype={constructor:y,init:function(){var i=navigator.appVersion;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;if(i.isObj===!1){t.items=i.items.toArray(),t.index=0;var s,r=i.items;for(o=0;o<r.length;o++)if(s=r[o],s.parsed&&(s=s.el[0]),s===i.el[0]){t.index=o;break}}else t.items=e.isArray(i.items)?i.items:[i.items],t.index=i.index||0;if(t.isOpen)return void t.updateItemHTML();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));var l=e.magnificPopup.modules;for(o=0;o<l.length;o++){var c=l[o];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);var p=t.wH=b.height(),m={};if(t.fixedContentPos&&t._hasScrollBar(p)){var f=t._getScrollbarSize();f&&(m.marginRight=f)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):m.overflow="hidden");var h=t.st.mainClass;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);var i=h+" "+v+" ";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:""};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;t.wrap.css("height",n),t.wH=n}else t.wH=e||b.height();t.fixedContentPos||t.wrap.css("height",t.wH),T("Resize")},updateItemHTML:function(){var i=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),i.parsed||(i=t.parseEl(t.index));var n=i.type;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;T("FirstMarkupParse",a),a?t.currTemplate[n]=e(a):t.currTemplate[n]=!0}o&&o!==i.type&&t.container.removeClass("mfp-"+o+"-holder");var s=t["get"+n.charAt(0).toUpperCase()+n.slice(1)](i,t.currTemplate[n]);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];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];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)};i||(i={});var o="click.magnificPopup";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;if(a||2!==i.which&&!i.ctrlKey&&!i.metaKey){var s=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(s)if(e.isFunction(s)){if(!s.call(t))return!0}else if(b.width()<s)return!0;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);var o={status:e,text:n};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;if(n&&o)return!0;if(!t.content||e(i).hasClass("mfp-close")||t.preloader&&i===t.preloader[0])return!0;if(i===t.content[0]||e.contains(t.content[0],i)){if(n)return!0}else if(o&&e.contains(document,i))return!0;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;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;if(o=e.split("_"),o.length>1){var n=t.find(g+"-"+o[0]);if(n.length>0){var a=o[1];"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");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">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(i){k();var n=e(this);if("string"==typeof i)if("open"===i){var o,a=C?n.data("magnificPopup"):n[0].magnificPopup,s=parseInt(arguments[1],10)||0;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));else i=e.extend(!0,{},i),C?n.data("magnificPopup",i):n[0].magnificPopup=i,t.addGroup(n,i);return n};var E,O,x,z="inline",M=function(){x&&(O.after(x.addClass(E)).detach(),x=null)};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);if(a.length){var s=a[0].parentNode;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>");return i.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(n,{},i),n}}});var B,H=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var n=t.st.image.titleSrc;if(n){if(e.isFunction(n))return n.call(t,i);if(i.el)return i.el.attr(n)||""}return""};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";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;if(e&&e.img&&t.st.image.verticalFit){var i=0;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)};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");if(l.length){var c=document.createElement("img");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)}}});var F,A=function(){return void 0===F&&(F=void 0!==document.createElement("p").style.MozTransform),F};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";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";return o["-webkit-"+a]=o["-moz-"+a]=o["-o-"+a]=o[a]=n,t.css(o),t},p=function(){t.content.css("visibility","visible")};I("BuildControls"+n,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return void p();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;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;n=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var o=n.offset(),a=parseInt(n.css("padding-top"),10),s=parseInt(n.css("padding-bottom"),10);o.top-=e(window).scrollTop()-a;var r={width:n.width(),height:(C?n.innerHeight():n[0].offsetHeight)-s-a};return A()?r["-moz-transform"]=r.transform="translate("+o.left+"px,"+o.top+"px)":(r.left=o.left,r.top=o.top),r}}});var j="retina";e.magnificPopup.registerModule(j,{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;i=isNaN(i)?i():i,i>1&&(I("ImageHasSize."+j,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})}),I("ElementParse."+j,function(t,n){n.src=e.replaceSrc(n,i)}))}}}}),k()});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
message-types/popup/themes/air-mail.css CHANGED
@@ -1 +1 @@
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}}
1
+ .ig_popup.ig_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.ig_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.ig_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.ig_air-mail .ig_image{float:right}.ig_popup.ig_air-mail .ig_message{padding:.2em 1.2em;font-size:1.2em}.ig_popup.ig_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.ig_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.ig_air-mail .ig_button,div.ig_popup.ig_air-mail input[type="submit"],div.ig_popup.ig_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.ig_air-mail .ig_button:hover,div.ig_popup.ig_air-mail input[type="submit"]:hover,div.ig_popup.ig_air-mail input[type="button"]:hover{margin:7px auto 17px auto;border-top:3px solid #c0392b;border-bottom:3px solid #c0392b}.ig_popup.ig_air-mail .ig_button:active,div.ig_popup.ig_air-mail input[type="submit"]:active,div.ig_popup.ig_air-mail input[type="button"]:active{margin:10px auto 20px auto;border:none}@media only screen and (max-device-width:319px){.ig_popup.ig_air-mail .ig_button,.ig_popup.ig_air-mail input[type="submit"],.ig_popup.ig_air-mail input[type="button"]{width:90%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.ig_air-mail .ig_button,.ig_popup.ig_air-mail input[type="submit"],.ig_popup.ig_air-mail input[type="button"]{width:90%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.ig_air-mail .ig_button,.ig_popup.ig_air-mail input[type="submit"],.ig_popup.ig_air-mail input[type="button"]{width:90%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.ig_air-mail .ig_button,.ig_popup.ig_air-mail input[type="submit"],.ig_popup.ig_air-mail input[type="button"]{width:90%!important}}
message-types/popup/themes/amaze.css CHANGED
@@ -1 +1 @@
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}}
1
+ .ig_popup.ig_amaze .ig_container{border:.3em solid #444;background-color:#444;color:#FFF}.ig_popup.ig_amaze .ig_container .ig_bg_overlay{display:block;background-image:url(../images/popup-amaze-bg.jpg);opacity:.5}.ig_popup.ig_amaze .ig_headline{padding:.5em;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.5);font-size:2em}.ig_popup.ig_amaze .ig_image{float:left}.ig_popup.ig_amaze .ig_message{font-size:1.2em;padding:0 1.2em;font-family:Georgia,Times,"Times New Roman",serif;margin:0 2em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_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.ig_amaze .ig_button:active,.ig_popup.ig_amaze input[type="submit"]:active,.ig_popup.ig_amaze input[type="button"]:active{border:none;margin:.4em auto 1em auto}@media only screen and (max-device-width:319px){.ig_popup.ig_amaze{font-size:10px}.ig_popup.ig_amaze .ig_message{margin:0 1em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.ig_amaze{font-size:12px}.ig_popup.ig_amaze .ig_message{margin:0 1em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.ig_amaze{font-size:14px}.ig_popup.ig_amaze .ig_message{margin:0 1em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.ig_amaze{font-size:16px}.ig_popup.ig_amaze .ig_message{margin:0 1em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_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.ig_amaze{font-size:18px}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:landscape){.ig_popup.ig_amaze{font-size:12px}}@media only screen and (min-width:768px) and (max-device-width:992px){.ig_popup.ig_amaze{font-size:14px}}
message-types/popup/themes/compel.css CHANGED
@@ -1 +1 @@
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}}
1
+ .ig_popup.ig_compel .ig_container{background:hsl(0,0%,100%);color:hsl(0,0%,44%);border:4px dashed #c0392b}.ig_popup.ig_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.ig_compel .ig_image{float:left;padding-right:1em}.ig_popup.ig_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.ig_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.ig_compel .ig_close:hover{background:url(../images/chosen-sprite.png) no-repeat -43px -11px;height:10px;width:10px;top:7px;right:7px}.ig_popup.ig_compel .ig_button,.ig_popup.ig_compel input[type="submit"],.ig_popup.ig_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.ig_compel .ig_button:hover,.ig_popup.ig_compel input[type="submit"]:hover,.ig_popup.ig_compel input[type="button"]:hover{margin-top:-3px;margin-bottom:1em;border-bottom:6px solid #c0392b}.ig_popup.ig_compel .ig_button:active,div.ig_popup.ig_compel input[type="submit"]:active,div.ig_popup.ig_compel input[type="button"]:active{border-top:none;margin:0 auto;margin-bottom:1em}@media only screen and (max-device-width:319px){.ig_popup.ig_compel .ig_button,.ig_popup.ig_compel input[type="submit"],.ig_popup.ig_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.ig_compel .ig_button,.ig_popup.ig_compel input[type="submit"],.ig_popup.ig_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.ig_compel .ig_button,.ig_popup.ig_compel input[type="submit"],.ig_popup.ig_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.ig_compel .ig_button,.ig_popup.ig_compel input[type="submit"],.ig_popup.ig_compel input[type="button"]{width:90%!important;padding:16px 4px 13px}}
message-types/popup/themes/convert.css CHANGED
@@ -1 +1 @@
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}}
1
+ .ig_popup.ig_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.ig_convert .ig_headline{font-size:2.5em;padding:.8em .8em .3em .8em;letter-spacing:0;text-align:left}.ig_popup.ig_convert .ig_image{float:right}.ig_popup.ig_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.ig_convert .ig_button,.ig_popup.ig_convert input[type="submit"],.ig_popup.ig_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.ig_convert .ig_button,.ig_popup.ig_convert input[type="submit"],.ig_popup.ig_convert input[type="button"]{width:75%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.ig_convert .ig_button,.ig_popup.ig_convert input[type="submit"],.ig_popup.ig_convert input[type="button"]{width:75%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.ig_convert .ig_button,.ig_popup.ig_convert input[type="submit"],.ig_popup.ig_convert input[type="button"]{width:75%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.ig_convert .ig_button,.ig_popup.ig_convert input[type="submit"],.ig_popup.ig_convert input[type="button"]{width:75%!important}}
message-types/popup/themes/inspire.css CHANGED
@@ -1 +1 @@
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}}
1
+ .ig_popup.ig_inspire .ig_container{background:hsl(0,100%,100%);color:#333;padding-bottom:1.5em}.ig_popup.ig_inspire .ig_headline{text-align:center;padding:.8em .8em .3em .8em;font-size:2.5em}.ig_popup.ig_inspire .ig_image{float:left}.ig_popup.ig_inspire .ig_message{padding:0.5em 1.25em;font-size:1.25em;font-weight:400;text-align:justify}.ig_popup.ig_inspire .ig_button,.ig_popup.ig_inspire input[type="submit"],.ig_popup.ig_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.ig_inspire .ig_button:active,.ig_popup.ig_inspire input[type="submit"]:active,.ig_popup.ig_inspire input[type="button"]:active{border-top:none}@media only screen and (max-device-width:319px){.ig_popup.ig_inspire .ig_button,.ig_popup.ig_inspire input[type="submit"],.ig_popup.ig_inspire input[type="button"]{width:90%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.ig_inspire .ig_button,.ig_popup.ig_inspire input[type="submit"],.ig_popup.ig_inspire input[type="button"]{width:90%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.ig_inspire .ig_button,.ig_popup.ig_inspire input[type="submit"],.ig_popup.ig_inspire input[type="button"]{width:90%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.ig_inspire .ig_button,.ig_popup.ig_inspire input[type="submit"],.ig_popup.ig_inspire input[type="button"]{width:90%!important}}
message-types/popup/themes/persuade.css CHANGED
@@ -1 +1 @@
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}
1
+ .ig_popup.ig_persuade .ig_container{background:hsl(1,83%,62%);color:#FFF;border:.4em dashed hsl(0,100%,100%);padding-bottom:.1em}.ig_popup.ig_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.ig_persuade .ig_image{float:left}.ig_popup.ig_persuade .ig_message{padding:0.5em 1.5em;font-size:1.5em;font-weight:300;text-align:center;-webkit-font-smoothing:antialiased}.ig_popup.ig_persuade .ig_button,.ig_popup.ig_persuade input[type="submit"],.ig_popup.ig_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.ig_persuade .ig_button:hover,.ig_popup.ig_persuade input[type="submit"]:hover,.ig_popup.ig_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.ig_persuade .ig_button:active,.ig_popup.ig_persuade input[type="submit"]:active,.ig_popup.ig_persuade input[type="button"]:active{border-top:none;margin:.4em auto .5em auto}
message-types/toast/default.css CHANGED
@@ -1 +1 @@
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 )}}
1
+ .ig_toast.ig_container{display:none}.ig_toast .ig_wrapper{overflow:hidden;padding:5px 5px 5px 50px;position:relative;min-height:34px}.ig_toast .ig_content{overflow:hidden}.ig_toast.ig_container:hover{}.ig_toast .ig_headline{display:inline-block;margin:0;text-align:left;position:relative}.ig_toast .ig_icon{overflow:hidden;display:block;max-height:32px;max-width:32px;left:10px;top:10px;position:absolute}.ig_toast .ig_icon img{max-width:32px;max-height:32px;margin:0;padding:0}.ig_toast .ig_message{margin:-3px 0 0 -2px}.ig_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 .ig_bang .ig_icon{-webkit-animation:MainMoveIcon 1s}.ig_toast_block .ig_bang .ig_base{-webkit-animation:MainMove 1s}.ig_toast_block .ig_bang .ig_headline,.ig_toast_block .ig_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 .ig_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 .ig_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 .ig_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 .ig_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 .ig_pop.ig_container{-webkit-animation:BangTidy 1s ease forwards}.ig_toast_block .ig_pop .ig_icon{-webkit-animation:BangTidyIcon 1s 0.5s ease both}.ig_toast_block .ig_pop .ig_headline,.ig_toast_block .ig_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 .ig_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 .ig_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,8 +1 @@
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"))}
1
+ 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 ig_toast ig_container ig_{{=animation}} ig_{{=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);else{var t=jQuery('<ul id="'+this.data.position+'"></ul>').addClass("ig_toast_block").appendTo(this.root_container).hide();t.width(this.width),"00"==this.data.position?t.css({top:"0",left:"0"}).addClass("ig_left"):"01"==this.data.position?t.css({top:"0",left:"50%",margin:"5px 0 0 -"+this.width/2+"px"}).addClass("ig_center"):"02"==this.data.position?t.css({top:"0",right:"0"}).addClass("ig_right"):"20"==this.data.position?t.css({bottom:"0",left:"0"}).addClass("ig_left"):"21"==this.data.position?t.css({bottom:"0",left:"50%",margin:"5px 0 0 -"+this.width/2+"px"}).addClass("ig_center"):"22"==this.data.position?t.css({bottom:"0",right:"0"}).addClass("ig_right"):"11"==this.data.position&&t.css({top:"50%",left:"50%",margin:"-"+this.width/2+"px 0 0 -"+this.width/2+"px"}).addClass("ig_center")}this.root_container=t},Icegram_Message_Type_Toast.prototype.show=function(t,i){if(!this.is_visible()){!this.root_container.hasClass("active")&&this.root_container.addClass("active").show();var s=this;setTimeout(function(){s.el.show(),s.el.fadeIn("slow")},this.data.delay_time),i!==!0&&s.track("shown"),!this.sticky&&this.duration>0&&setTimeout(function(){s.el.fadeOut("slow"),s.hide(),s.root_container.children().length||s.root_container.removeClass("active").hide()},this.duration)}},Icegram_Message_Type_Toast.prototype.hide=function(t,i){this.is_visible()&&(this.el.hide(),i!==!0&&this.track("closed"))};
 
 
 
 
 
 
 
message-types/toast/themes/announce.css CHANGED
@@ -1 +1 @@
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)}
1
+ .ig_toast.ig_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)}.ig_toast.ig_announce.ig_container:hover{border-color:rgba(0,0,0,1)}.ig_toast.ig_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)}.ig_toast.ig_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)}.ig_toast.ig_announce .ig_headline{color:rgba(67,76,89,0.9)}
message-types/toast/themes/balance.css CHANGED
@@ -1 +1 @@
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}
1
+ .ig_toast.ig_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}.ig_toast.ig_balance .ig_content{background:transparent!important}.ig_toast.ig_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%}.ig_toast.ig_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 +1 @@
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}
1
+ .ig_toast.ig_burnt.ig_container{min-height:64px;position:relative;-moz-box-sizing:border-box;box-sizing:border-box;background-color:transparent!important}.ig_toast.ig_burnt .ig_content{background-color:transparent!important}.ig_toast.ig_burnt .ig_wrapper{padding:5px 5px 5px 65px}.ig_toast.ig_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}.ig_toast.ig_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))}.ig_toast.ig_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))}.ig_toast.ig_burnt .ig_headline{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.5);z-index:1}.ig_toast.ig_burnt .ig_icon{max-height:42px;max-width:42px;left:8px;top:5px}.ig_toast.ig_burnt .ig_icon img{width:40px;height:40px;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.ig_toast.ig_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 +1 @@
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}
1
+ .ig_toast.ig_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}.ig_toast.ig_clear .ig_content{background-color:transparent!important}.ig_toast.ig_clear .ig_headline{color:#222;letter-spacing:0.7pt;line-height:16px;text-shadow:0 1px 0 rgba(255,255,255,0.6)}.ig_toast.ig_clear .ig_icon{}.ig_toast.ig_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 +1 @@
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)}
1
+ .ig_toast.ig_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}.ig_toast.ig_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}.ig_toast.ig_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}.ig_toast.ig_night-glow .ig_headline{color:rgba(255,255,255,0.9)}.ig_toast.ig_night-glow .ig_message{color:rgba(255,255,255,0.9)}
message-types/toast/themes/stand-out.css CHANGED
@@ -1 +1 @@
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}
1
+ .ig_toast.ig_stand-out .ig_wrapper{padding:5px 50px 5px 10px}.ig_toast.ig_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}.ig_toast.ig_stand-out .ig_content{background-color:transparent!important}.ig_toast.ig_stand-out .ig_icon{right:10px;left:auto;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.ig_toast.ig_stand-out .ig_message,.ig_toast.ig_stand-out .ig_headline{color:rgba(255,255,255,0.7);line-height:15px}
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Icegram ===
2
- Contributors: storeapps, niravmehta, putler, icegram
3
  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.9
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.9 =
157
  Many small changes. Plus major changes for caching compatibility.
158
 
@@ -215,6 +218,11 @@ Initial Release
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
1
  === Icegram ===
2
+ Contributors: icegram, storeapps, niravmehta, putler
3
  Donate link: http://www.icegram.com/
4
+ Tags: popup, window, hellobar, optin, lead capture, marketing, form, notification, messenger, targeting, monster, ninja ,wordpress lead generation, wordpress lightbox optin, wordpress lightbox optin form, wordpress lightbox optins, wordpress mobile optin forms, wordpress mobile popup, wordpress mobile popups, wordpress optin form, wordpress overlay popup, wordpress popup, wordpress popup form, wordpress popup plugin, wordpress popup solution, wordpress popups , popups, subscribe, wp popups, optin bars, action grabber, constant contact, toast notifications, leads, lists, builder, action bar, floating bar, footer bar, hellobar alternative, pop over, Popup plugin, aweber, campaign monitor, constant contact, email list, exit-intent, getresponse, analytics, Hubspot, icontact, infusionsoft, newsletter, Mailing list pop-up, retargeting, Responsive Popup, split testing, AB testing
5
  Requires at least: 3.9
6
  Tested up to: 4.1.1
7
+ Stable tag: 1.8.10
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.10 =
157
+ Fixes for minified js and css. Changes for WP themes compatibility.
158
+
159
  = 1.8.9 =
160
  Many small changes. Plus major changes for caching compatibility.
161
 
218
 
219
 
220
  == Changelog ==
221
+ = 1.8.10 =
222
+ * Fix: Comapatibility for themes with CSS class name conflicts
223
+ * Fix: Comaptibility with "autoptimize" and other minification plugins
224
+ * Fix: Local site targeting not working without wildcard character
225
+
226
  = 1.8.9 =
227
  * New: Both body and button colors (background and foreground) can now be set
228
  * Update: Brought back CTA Buttons default colors