Import legacy nurinda.co.id website
This commit is contained in:
1 parent
3f59bb9038
commit
6e21646ac4
13389 files changed
+3246690
No files matched your search
@@ -0,0 +1 @@
|
||||
function check_for_number_chaty(t,e){return!!(""!=t&&("+"==t[0]&&(t=t.substr(1,t.length)),"Phone"==e&&"*"==t[0]&&(t=t.substr(1,t.length)),isNaN(t)))}function check_for_preview_pos(){if(jQuery(".chaty-setting-form").length){if(jQuery(window).width()>1179){var t=parseInt(jQuery(".chaty-setting-form").offset().top);jQuery(".btn-save-sticky").css("top",t+58),jQuery(".btn-help, .preview-help-btn").css("top",t+58+145),jQuery("a.remove-chaty-widget-sticky").css("top",t+58+145+119)}else jQuery(".btn-save-sticky").attr("style",""),jQuery(".btn-help, .preview-help-btn").attr("style",""),jQuery("a.remove-chaty-widget-sticky").attr("style","")}}jQuery(function(t){"use strict";var e,a=!1,c=!1,i=!1,o=!1,n=!1,s=!1,l=!1;function r(){if(t(".chaty-popup").hide(),0==t("#cht-form .js-chanel-desktop").length||0==t("#cht-form .js-chanel-mobile").length)return t("#no-device-popup").show(),!1;if(0==t("#cht-form .js-chanel-desktop:checked").length&&0==t("#cht-form .js-chanel-mobile:checked").length)return t("#device-popup").show(),!1;var e=0;return(t("#channels-selected-list > li:not(#chaty-social-close)").find(".channels__input").each(function(){""==jQuery.trim(t(this).val())&&e++}),e!=t("#channels-selected-list > li:not(#chaty-social-close)").find(".channels__input").length||t("#chaty-social-Contact_Us").length)?h():(t("#no-device-value").show(),!1)}function h(){return(t(".chaty-popup").hide(),t("#trigger_on_time").is(":checked")||t("#chaty_trigger_on_exit").is(":checked")||t("#chaty_trigger_on_scroll").is(":checked"))?d():(t("#trigger-popup").show(),!1)}function d(){return(t(".chaty-popup").hide(),t(".cht_active").is(":checked"))?(a=!0,t("#cht-form").trigger("submit"),!0):(t("#status-popup").show(),!1)}function p(){if(c){if(i){if(o){if(n){if(s)!l&&(l=!0,t("#channels-selected-list .phone-number").length&&t("#channels-selected-list .phone-number").each(function(){if(""!=jQuery.trim(t(this).val())&&jQuery.trim(t(this).val()).length>13)return t("#custom-message-popup .chaty-popup-header").text(t(this).data("label")+" number is not valid"),t("#custom-message-popup .chaty-popup-body").text("Seems like the "+t(this).data("label")+" number you're trying to enter isn't valid. Would you like to publish it anyway?"),t("#custom-message-popup").show(),!1}));else if(s=!0,t("#cht-form #Viber").length&&""!=t("#cht-form #Viber").val()){var a=jQuery.trim(t("#cht-form #Viber").val());if(e=check_for_number_chaty(a,"Viber"))return t("#custom-message-popup .chaty-popup-header").text("Viber number is not valid"),t("#custom-message-popup .chaty-popup-body").text("Seems like the Viber number you're trying to enter isn't in the right syntax. Would you like to publish it anyway?"),t("#custom-message-popup").show(),!1}}else if(n=!0,t("#cht-form #SMS").length&&""!=t("#cht-form #SMS").val()){var a=jQuery.trim(t("#cht-form #SMS").val());if(e=check_for_number_chaty(a,"SMS"))return t("#custom-message-popup .chaty-popup-header").text("SMS number is not valid"),t("#custom-message-popup .chaty-popup-body").text("Seems like the SMS number you're trying to enter isn't in the right syntax. Would you like to publish it anyway?"),t("#custom-message-popup").show(),!1}}else if(o=!0,t("#cht-form #Facebook_Messenger").length&&""!=t("#cht-form #Facebook_Messenger").val()){var a=jQuery.trim(t("#Facebook_Messenger").val());if(t("#cht-form #Facebook_Messenger").val(a),!/(?:http:\/\/)?facebook\.com\/(?:(?:\w)*#!\/)?(?:pages\/)?(?:[\w\-]*\/)*([\w\-]*)/.test(a)&&!/(?:http:\/\/)?m\.me\/(?:(?:\w)*#!\/)?(?:pages\/)?(?:[\w\-]*\/)*([\w\-]*)/.test(a))return t("#custom-message-popup .chaty-popup-header").text("Facebook page's URL is not valid"),t("#custom-message-popup .chaty-popup-body").text("Please make sure your Facebook page's URL looks like, <br/>https://m.me/YOURPAGE"),t("#custom-message-popup").show(),!1}}else if(i=!0,t("#cht-form #Phone").length&&""!=t("#cht-form #Phone").val()){var a=jQuery.trim(t("#cht-form #Phone").val());if(e=check_for_number_chaty(a,"Phone"))return t("#custom-message-popup .chaty-popup-header").text("Phone number is not valid"),t("#custom-message-popup .chaty-popup-body").text("Seems like the phone number you're trying to enter isn't in the right syntax. Would you like to publish it anyway?"),t("#custom-message-popup").show(),!1}}else if(c=!0,t("#cht-form #Whatsapp").length&&""!=t("#cht-form #Whatsapp").val()){var a=jQuery.trim(t("#cht-form #Whatsapp").val());if(e=check_for_number_chaty(a,"Whatsapp"))return t("#custom-message-popup .chaty-popup-header").text("Whatsapp number is not valid"),t("#custom-message-popup .chaty-popup-body").text("Seems like the WhatsApp number you're trying to enter isn't in the right syntax. Would you like to publish it anyway?"),t("#custom-message-popup").show(),!1}return r()}t(window).on("load",function(){setTimeout(()=>{t(".wp-editor-container iframe").contents().find("body").css({backgroundColor:"#fff",margin:0,padding:"0px 10px"})},500)}),t(document).ready(function(){t(document).on("change","input[name='cta_type']:checked"Line truncated
|
||||
Reference in new issue
Block a user