1var showtextContent = true; 2var onloadCallback = function () { 3 $("div[id='free-account-g-recaptcha']").each(function () { 4 widgetId1 = grecaptcha.render('free-account-g-recaptcha', { 5 'sitekey': '6Lc-flwUAAAAAPhT4-O2RsgO_fPuncJRDXLPJBuM' 6 }); 7 }) 8 $("div[id='contact-g-recaptcha']").each(function () { 9 widgetId2 = grecaptcha.render('contact-g-recaptcha', { 10 'sitekey': '6Lc-flwUAAAAAPhT4-O2RsgO_fPuncJRDXLPJBuM' 11 }); 12 }) 13}; 14$(document).ready(function () { 15 if ($(window).width() >= 992) { 16 $('#sd_menu').addClass('smartdove-info-btn'); 17 $('#fd_menu').addClass('flydove-edm-sms-info-btn'); 18 $('#feixin_info').addClass('feature-mit-cdp-btn'); 19 } 20 21 $(window).on('hashchange', function () { 22 hashToAnchor(); 23 }); 24 25 /** 26 * ç§»åè³é¨é» + offset.top 27 */ 28 function hashToAnchor () { 29 if (location.hash && document.getElementById(location.hash.substring(1))) { 30 scrollTopAnimate(location.hash.substring(1)) 31 } 32 } 33 34 $('input[type=radio][name=source]').change(function () { 35 if (this.value == 'tester') { 36 $('#subcode_text').text('è«è¼¸å ¥å ¬å¸è±æå稱ï¼å¿ç©ºæ ¼åæ¨é»ç¬¦èãexï¼å®ç¶²çºwww.flydove.netï¼è«è¼¸å ¥flydove'); 37 $('#adText').html('ð¥ ãéæåªæ ã峿¥èµ·è³å¹´åºï¼<span style="color: red;">6,000 å°</span> EDM å è²»éï¼æ¯æ¥ 500 å°ï¼æ¯æä¸é 2,000 å°ï¼é·é 3 åæçé«é©æ©æï¼'); 38 } else if (this.value == 'ichef') { 39 $('#subcode_text').text('è«è¼¸å ¥ iCHEF Store ID'); 40 $('#adText').text('試ç¨å¸³èå è²»é«é©ï¼ï¼å¤©ï¼å¤©å¤©ï¼ï¼å°ï¼å ±å¯ç¼éï¼ï¼ï¼å°è¡é·é»åå ±ï¼'); 41 } 42 }); 43 44 $(".blog-header-height").hover( 45 function () { 46 if (typeof parent.setHeaderHeight !== "undefined") { 47 if ($(window).width() >= 992) { 48 parent.setHeaderHeight(260); 49 } else { 50 parent.setHeaderHeight(528); 51 } 52 } 53 }, function () { 54 } 55 ); 56 57 $(".dropdown-menu").hover( 58 function () { 59 }, function () { 60 if (typeof parent.setHeaderHeight !== "undefined") { 61 if ($(window).width() >= 992) { 62 parent.setHeaderHeight(80); 63 $(this).parent('li').removeClass('open'); 64 } else { 65 parent.setHeaderHeight(65); 66 } 67 68 } 69 } 70 ); 71 72 $(".container").hover( 73 function () { 74 }, function () { 75 if (typeof parent.setHeaderHeight !== "undefined") { 76 if ($(window).width() >= 992) { 77 parent.setHeaderHeight(80); 78 $(this).parent('li').removeClass('open'); 79 } else { 80 parent.setHeaderHeight(65); 81 } 82 83 } 84 } 85 ); 86 87 $('.navbar-collapse').on('shown.bs.collapse', function () { 88 if (typeof parent.setHeaderHeight !== "undefined") { 89 var height = document.getElementById('site-menu').offsetHeight; 90 parent.setHeaderHeight(height); 91 } 92 }).on('hidden.bs.collapse', function () { 93 if (typeof parent.setHeaderHeight !== "undefined") { 94 var height = document.getElementById('site-menu').offsetHeight; 95 parent.setHeaderHeight(height); 96 } 97 }); 98 99 // é»é¸åè½ç¹è²/å®¢æ¶æ¡ä¾ï¼é 颿»åå°å°æåå¡ï¼ä¸¦ééé¨è½æ ¼åå¡ 100 $(".scrollTop").on("click", function () { 101 $(".flydoveMain-js").removeClass("hide"); 102 $(".flydoveFooter-js").removeClass("hide"); 103 $(".flydoveBlog-js").addClass("hide"); 104 $(".flydoveCost-js").addClass("hide"); 105 $(".smartdoveCost-js").addClass("hide"); 106 $(".smsCost-js").addClass("hide"); 107 $(".mmsCost-js").addClass("hide"); 108 $(".contact-js").addClass("hide"); 109 $(".freeEx-js").addClass("hide"); 110 $(".offset").show(); 111 let target = $(this).data("href"); 112 let targetPos = $(target).offset().top; 113 $("html,body").animate({scrollTop: targetPos}, 800); 114 }); 115 116 //é£ä¿¡ç¹è²MIT CDP 117 $(".feature-mit-cdp-btn").on("click", function () { 118 featureMitCdp(); 119 let target = $(this).data("href").substring(1); 120 scrollTopAnimate(target); 121 }); 122 123 // é»é¸ç¢åä»ç´¹journey 124 $(".journey-btn").on("click", function () { 125 journeyInfo(); 126 $('html, body').scrollTop(0); 127 }); 128 129 // é»é¸ç¢åä»ç´¹smartdove 130 $(".smartdove-info-btn").on("click", function () { 131 smartdoveInfo(); 132 $('html, body').scrollTop(0); 133 }); 134 135 // é»é¸ç¢åä»ç´¹flydoveè¡é· 136 $(".flydove-edm-sms-info-btn").on("click", function () { 137 flydoveEdmOrSmsInfo(); 138 let target = $(this).data("href").substring(1); 139 scrollTopAnimate(target); 140 }); 141 142 // é»é¸flydoveè©¦ç®æ¹æ¡ 143 $(".flydoveCostBtn").on("click", function () { 144 flydoveToggle(); 145 $('html, body').scrollTop(0); 146 }); 147 148 // é»é¸smartdoveè©¦ç®æ¹æ¡ 149 $(".smartdoveCostBtn").on("click", function () { 150 smartdoveToggle(); 151 $('html, body').scrollTop(0); 152 }); 153 154 // é»é¸smsè©¦ç®æ¹æ¡ 155 $(".smsCostBtn").on("click", function () { 156 $('#sms_title').html($(this).data('title')) 157 smsToggle(); 158 $('html, body').scrollTop(0); 159 }); 160 161 // é»é¸mmsè©¦ç®æ¹æ¡ 162 $(".mmsCostBtn").on("click", function () { 163 mmsToggle(); 164 $('html, body').scrollTop(0); 165 }); 166 167 //é»é¸é£çµ¡æå 168 $(".contactBtn").on("click", function () { 169 contactToggle(); 170 $('html, body').scrollTop(0); 171 }); 172 173 //é»é¸å è²»é«é© 174 $(".freeExBtn").on("click", function () { 175 freeToggle(); 176 $('html, body').scrollTop(0); 177 }); 178 179 //é»é¸ä»ç´¹æ´å¤ 180 $("#moreBtnStyleA").on("click", function () { 181 window.location.href = "/#introduction"; 182 }); 183 184 $(".clickContactSuccessMsg").on("click", function (e) { 185 var msg = clickContactSuccessMsgValCheck(); 186 if (msg) { 187 showMsg(msg); 188 return; 189 } 190 191 e.preventDefault(); 192 var form = $('#contact-form')[0]; 193 var formData = new FormData(form); 194 $.ajax({ 195 url: 'bat/rd-mailform.php', 196 type: "POST", 197 data: formData, 198 contentType: false, 199 cache: false, 200 processData: false, 201 success: function (data) { 202 if (data === 'MF000') { 203 showMsg("æåå·²æ¶å°æ¨çè¨æ¯ï¼"); 204 } else { 205 showMsg("ç¼çé¯èª¤ï¼è«éæ°å¡«å¯«ï¼"); 206 } 207 removeContactVal(); 208 grecaptcha.reset(widgetId2); 209 }, error: function () { 210 showMsg("ç¼çé¯èª¤ï¼è«éæ°å¡«å¯«ï¼"); 211 removeContactVal(); 212 grecaptcha.reset(widgetId2); 213 } 214 }); 215 return; 216 }); 217 218 // æ¸ ç©ºé£çµ¡æåé¨åçinputå §å®¹ 219 function removeContactVal() { 220 $("#name").val(""); 221 $("#email").val(""); 222 $("#tel").val(""); 223 $("#company").val(""); 224 $("#message").val(""); 225 } 226 227 $(".submitFreeExBtn").on("click", function (e) { 228 var msg = submitFreeExBtnValCheck(); 229 if (msg) { 230 showMsg(msg); 231 return; 232 } 233 234 e.preventDefault(); 235 var form = $('#test-account-form')[0]; 236 var formData = new FormData(form); 237 $.ajax({ 238 url: 'bat/test_account.php', 239 type: "POST", 240 data: formData, 241 contentType: false, 242 cache: false, 243 processData: false, 244 success: function (data) { 245 if (data === 'MF000') { 246 showMsg("æè¬æ¨ä½¿ç¨é£ä¿¡è³è¨ï¼æ¨å°æå¨æ¨å¡«å¯«çEmailä¾åºæ¶
246å°\n" + 247 "1. ä¿¡ç®±é©èéç¥\n" + 248 "2. 帳èéééç¥(å §å«å¯ç¢¼)"); 249 removeFreeExVal(); 250 } else if (data === '') {return; 251 } else { 252 showMsg(data); 253 } 254 grecaptcha.reset(widgetId1); 255 }, error: function () { 256 showMsg("é£ç·ç¼çç°å¸¸ï¼è«éæ´é 颿鿰é»é¸ã確å®éåºãã"); 257 grecaptcha.reset(widgetId1); 258 } 259 }); 260 return; 261 }); 262 263 // æ¸ ç©ºå è²»é«é©é¨åçinputå §å®¹ 264 function removeFreeExVal() { 265 $("#companyName").val(""); 266 $("#userID").val(""); 267 $("#userContact").val(""); 268 $("#userEmail").val(""); 269 $("#userPhone").val(""); 270 $("#companyURL").val(""); 271 // $("#freeExmessage").val(""); 272 } 273 274 // 表å®é©èé¡¯ç¤ºè¨æ¯ 275 const swalShowMsg = Swal.mixin({ 276 customClass: { 277 popup: 'sweet_popupImportant', 278 title: 'sweet_titleImportant', 279 confirmButton: 'sweet_confirmbuttonImportant' 280 }, 281 buttonsStyling: false 282 }); 283 function showMsg(message) { 284 swalShowMsg.fire({ 285 title: message 286 }); 287 } 288 function scrollTopAnimate(id) { 289 let targetPos = $(`#${id}`).offset().top - 65; 290 $("html,body").animate({scrollTop: targetPos}, 800); 291 } 292 function submitFreeExBtnValCheck() { 293 var msg = ''; 294 $("#companyName").val() == "" ? msg += "å ¬å¸å稱æªå¡«å¯«\n" : msg; 295 $("#userID").val() == "" ? msg += "å¸³èæªå¡«å¯«\n" : msg; 296 $("#userContact").val() == "" ? msg += "é£çµ¡äººæªå¡«å¯«\n" : msg; 297 $("#userEmail").val() == "" ? msg += "é£çµ¡ä¿¡ç®±æªå¡«å¯«\n" : msg; 298 $("#userPhone").val() == "" ? msg += "é£çµ¡é»è©±æªå¡«å¯«\n" : msg; 299 return msg; 300 } 301 function clickContactSuccessMsgValCheck() { 302 var msg = ''; 303 $("#name").val() == "" ? msg = msg + "å§åæªå¡«å¯«\n" : msg; 304 $("#email").val() == "" ? msg = msg + "ä¿¡ç®±æªå¡«å¯«\n" : msg; 305 $("#tel").val() == "" ? msg = msg + "é»è©±æªå¡«å¯«\n" : msg; 306 $("#company").val() == "" ? msg = msg + "å ¬å¸æªå¡«å¯«\n" : msg; 307 $("#message").val() == "" ? msg = msg + "å §å®¹æªå¡«å¯«\n" : msg; 308 return msg; 309 } 310 311 // RWDæï¼é»é¸é¸å®ééæ¼¢å ¡ååé¸å®èªèº« 312 $(".closeHamburgerForRWD").on("click", function () { 313 $(".nav-bars.nav-bars-style").removeClass("is-active"); 314 $(".navbar-collapse.collapse").attr("aria-expanded", false); 315 $(".navbar-collapse.collapse").removeClass("in"); 316 }); 317});
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.