1var showCuMessage = true; // cấu hình hiá»n thá» arCuMessages 2var arCuMessages = ["..."]; 3var arCuPromptClosed = false; 4var arCuDelayFirst = 500; 5var _arCuTimeOut = null; 6var arCuDelayFirst = 2000; 7var arCuTypingTime = 3000; 8var arCuMessageTime = 4000; 9var arCuCloseLastMessage = false; 10var arCuLoop = false; 11function arCuShowMessage(index){ 12 if (arCuPromptClosed){ 13 return false; 14 } 15 if (typeof arCuMessages[index] !== 'undefined' && showCuMessage){ 16 jQuery('#contact').contactUs('showPromptTyping'); 17 18 _arCuTimeOut = setTimeout(function(){ 19 if (arCuPromptClosed){ 20 return false; 21 } 22 jQuery('#contact').contactUs('showPrompt', { 23 content: arCuMessages[index] 24 }); 25 index ++; 26 _arCuTimeOut = setTimeout(function(){ 27 if (arCuPromptClosed){ 28 return false; 29 } 30 arCuShowMessage(index); 31 }, arCuMessageTime); 32 }, arCuTypingTime); 33 }else{ 34 if (arCuCloseLastMessage){ 35 jQuery('#contact').contactUs('hidePrompt'); 36 } 37 if (arCuLoop){ 38 arCuShowMessage(0); 39 } 40 } 41}; 42function arCuShowMessages(){ 43 setTimeout(function(){ 44 clearTimeout(_arCuTimeOut); 45 arCuShowMessage(0); 46 }, arCuDelayFirst); 47} 48window.addEventListener('load', function(){ 49 jQuery('#contact').on('arcontactus.init', function(){ 50 jQuery('#contact').addClass('arcuAnimated').addClass('flipInY'); 51 setTimeout(function(){ 52 jQuery('#contact').removeClass('flipInY'); 53 }, 1000); 54 arCuShowMessages(); 55 }); 56 jQuery('#contact').contactUs({ 57 drag: false, 58 //mode: 'callback', 59 align: 'left', 60 reCaptcha: false, 61 menuSize: 'small', 62 buttonSize: 'small', 63 buttonText: false, //'contact<br/>us', 64 iconsAnimationSpeed: 800, 65 menuHeaderText: 'Chúng tôi sẵn sà ng há» trợ bạn:', 66 itemsIconType: 'rounded', 67 countdown: 0, 68 showMenuHeader: true, 69 showHeaderCloseBtn: true, 70 headerCloseBtnColor: '#ffffff', 71 headerCloseBtnBgColor: '#d60024', 72 promptPosition: 'side', 73 theme: '#d60024', 74 callbackFormFields: { 75 name: { 76 name: 'name', 77 enabled: true, 78 required: false, 79 type: 'text', 80 label: "", 81 placeholder: "Enter your name (optional)" 82 }, 83 email: { 84 name: 'email', 85 enabled: true, 86 required: false, 87 type: 'text', 88 label: "", 89 placeholder: "Enter your email (optional)" 90 }, 91 select: { 92 name: 'select', 93 enabled: true, 94 required: false, 95 type: 'dropdown', 96 label: "Select field", 97 values: [ 98 { 99 value: 1, 100 label: 'One' 101 }, 102 { 103 value: 2, 104 label: 'Two' 105 } 106 ], 107 placeholder: "Enter your email (optional)" 108 }, 109 phone: { 110 name: 'phone', 111 enabled: true, 112 required: true, 113 type: 'tel', 114 label: '', 115 placeholder: "+XXX-XX-XXX-XX-XX" 116 }, 117 gdpr: { 118 name: 'gdpr', 119 enabled: true, 120 required: true, 121 type: 'checkbox', 122 label: "I accept GDPR rules", 123 } 124 }, 125 items: [ 126 { 127 title: '1900588878', 128 subTitle: 'Hotline', 129 icon: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
129<path fill="currentColor" d="M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"></path></svg>', 130 href: 'tel:1900588878', 131 color: '#F00000' 132 }, 133 { 134 title: 'Messenger', 135 subTitle: 'Nhắn tin/gá»i qua Messenger', 136 icon: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224 32C15.9 32-77.5 278 84.6 400.6V480l75.7-42c142.2 39.8 285.4-59.9 285.4-198.7C445.8 124.8 346.5 32 224 32zm23.4 278.1L190 250.5 79.6 311.6l121.1-128.5 57.4 59.6 110.4-61.1-121.1 128.5z"></path></svg>', 137 href: 'https://www.messenger.com/t/kingcoffeeglobal/', 138 color: '#0084FF' 139 } 140 ] 141 }); 142});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.