//=== viewid:customForm_form_1681134672556 ===// $(function(){ $("#form_customForm_form_1681134672556 input,select,textarea").each(function(){ var typename = $(this).attr("type"); if(typename=="hidden") return; $(this).attr('tabindex', $(this).offset().top); }); }); window.addEventListener('pageshow', function(event) { var historyTraversal = event.persisted || (typeof window.performance != 'undefined' && window.performance.navigation.type === 2); if (historyTraversal) { // 閫氳繃杩斿洖涓婁竴椤佃繘鍏ユ椂瑙﹀彂 hideFormTipView(); $('.style_verification_01 .input_view img').attr('src','//s143js.nicebox.cn/exusers/codeimg.php?sign=customForm&rnd=' + Date.parse(new Date())); } }); function submitForm(form){ showFormTipView(); if (!CheckForm(form)){ hideFormTipView(); return false; } return true; } function showFormTipView(){ if($(".showFormTipView").length > 0){ $(".showFormTipView").show(); $("#showFormTipOverlay").show(); }else{ let html = `
璇ヨ〃鍗曟鍦ㄦ彁浜や腑锛岃绋嶇瓑骞朵笖涓嶈閲嶅鎻愪氦銆侟/span>
`; $('body').append(html); } } function hideFormTipView(){ $(".showFormTipView").hide(0); $("#showFormTipOverlay").hide(0); } //=== viewid:clock_style_1_1662516122036,video_style_02_1681184982194 ===// $(document).ready(function(){ }); //=== viewid:video_style_02_1681184982194 ===// $(function(){ if('false' == 'true' || '0' == '1'){ //鑷姩鎾斁鎴栭€夋嫨棣栧抚鍋氬皝闈 let u = navigator.userAgent; let isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android缁堢 let isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios if(isAndroid){ setTimeout(function(){ document.getElementById("myVideovideo_style_02_1681184982194").addEventListener("durationchange", androidShow());},300); }else if(isiOS){ iosShow(); } } function androidShow(){ let $videovideo_style_02_1681184982194 = $("#myVideovideo_style_02_1681184982194"); setTimeout(function(){ $videovideo_style_02_1681184982194[0].play(true); if('false' != 'true'){ //閫夋嫨棣栧抚鍋氬皝闈㈡椂鍊欐殏鍋滐紝鑷姩鎾斁涓嶇敤鏆傚仠 let time = 0; let timer = setInterval(function(){ $videovideo_style_02_1681184982194[0].pause(true); time++; if($videovideo_style_02_1681184982194[0].paused && time>=6 ){ clearInterval(timer); } },100); } },50); } function iosShow(){ if (window.WeixinJSBridge) { doPlayvideo_style_02_1681184982194(); if('false' != 'true'){ //閫夋嫨棣栧抚鍋氬皝闈㈡椂鍊欐殏鍋滐紝鑷姩鎾斁涓嶇敤鏆傚仠 setTimeout(function(){ doPausevideo_style_02_1681184982194(); },50); } } else { document.addEventListener("WeixinJSBridgeReady", function(){ doPlayvideo_style_02_1681184982194(); if('false' != 'true'){ //閫夋嫨棣栧抚鍋氬皝闈㈡椂鍊欐殏鍋滐紝鑷姩鎾斁涓嶇敤鏆傚仠 setTimeout(function(){ doPausevideo_style_02_1681184982194(); },50); } }, false); } } function doPlayvideo_style_02_1681184982194(){ WeixinJSBridge.invoke('getNetworkType', {}, function (e) { let $videovideo_style_02_1681184982194 = $("#myVideovideo_style_02_1681184982194") $videovideo_style_02_1681184982194[0].play(true) }) } function doPausevideo_style_02_1681184982194(){ WeixinJSBridge.invoke('getNetworkType', {}, function (e) { let $videovideo_style_02_1681184982194 = $("#myVideovideo_style_02_1681184982194") $videovideo_style_02_1681184982194[0].pause(true) }) } $("#myVideovideo_style_02_1681184982194")[0].addEventListener("play", function(){//鎾斁浜嬩欢 $("#myVideovideo_style_02_1681184982194")[0].setAttribute('poster', ''); }); }) //=== viewid:video_style_02_1681184982194 ===// var video = $("#video_style_02_1681184982194 video")[0]; if(video) { video.addEventListener('playing',function(){ var this1 = this; this1.play(); for(var j=$('video').length-1; j>=0; j--) { var this2 = $('video')[j]; if(this1 !== this2) { this2.pause(); } } }); }