/* headjs 1.03 */ /*! head.core - v1.0.2 */ (function(n,t){"use strict";function r(n){a[a.length]=n}function k(n){var t=new RegExp(" ?\\b"+n+"\\b");c.className=c.className.replace(t,"")}function p(n,t){for(var i=0,r=n.length;in?(i.screensCss.gt&&r("gt-"+n),i.screensCss.gte&&r("gte-"+n)):tt);u.feature("landscape",fe?(i.browserCss.gt&&r("gt-"+f+e),i.browserCss.gte&&r("gte-"+f+e)):h2&&this[u+1]!==t)u&&r(this.slice(u,u+1).join("-").toLowerCase()+i.section);else{var f=n||"index",e=f.indexOf(".");e>0&&(f=f.substring(0,e));c.id=f.toLowerCase()+i.page;u||r("root"+i.section)}});u.screen={height:n.screen.height,width:n.screen.width};tt();b=0;n.addEventListener?n.addEventListener("resize",it,!1):n.attachEvent("onresize",it)})(window); /*! head.css3 - v1.0.0 */ (function(n,t){"use strict";function a(n){for(var r in n)if(i[n[r]]!==t)return!0;return!1}function r(n){var t=n.charAt(0).toUpperCase()+n.substr(1),i=(n+" "+c.join(t+" ")+t).split(" ");return!!a(i)}var h=n.document,o=h.createElement("i"),i=o.style,s=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),c="Webkit Moz O ms Khtml".split(" "),l=n.head_conf&&n.head_conf.head||"head",u=n[l],f={gradient:function(){var n="background-image:";return i.cssText=(n+s.join("gradient(linear,left top,right bottom,from(#9f9),to(#fff));"+n)+s.join("linear-gradient(left top,#eee,#fff);"+n)).slice(0,-n.length),!!i.backgroundImage},rgba:function(){return i.cssText="background-color:rgba(0,0,0,0.5)",!!i.backgroundColor},opacity:function(){return o.style.opacity===""},textshadow:function(){return i.textShadow===""},multiplebgs:function(){i.cssText="background:url(//),url(//),red url(//)";var n=(i.background||"").match(/url/g);return Object.prototype.toString.call(n)==="[object Array]"&&n.length===3},boxshadow:function(){return r("boxShadow")},borderimage:function(){return r("borderImage")},borderradius:function(){return r("borderRadius")},cssreflections:function(){return r("boxReflect")},csstransforms:function(){return r("transform")},csstransitions:function(){return r("transition")},touch:function(){return"ontouchstart"in n},retina:function(){return n.devicePixelRatio>1},fontface:function(){var t=u.browser.name,n=u.browser.version;switch(t){case"ie":return n>=9;case"chrome":return n>=13;case"ff":return n>=6;case"ios":return n>=5;case"android":return!1;case"webkit":return n>=5.1;case"opera":return n>=10;default:return!1}}};for(var e in f)f[e]&&u.feature(e,f[e].call(),!0);u.feature()})(window); /*! head.load - v1.0.3 */ (function(n,t){"use strict";function w(){}function u(n,t){if(n){typeof n=="object"&&(n=[].slice.call(n));for(var i=0,r=n.length;ii;i++)e=b[i].split("="),g=e[0],h=e[1],"undefined"==typeof c[g]?c[g]=h:"string"==typeof c[g]?(c[g]=[c[g]],c[g].push(h)):c[g].push(h);return c}catch(k){return[]}}}}(window); var scroll_on = this.getParameters.parameters()["scroll"]; var jq_load = this.getParameters.parameters()["jq"]; var scrolltop_img_url = '//jwty168.com/'; if (window.jQuery) { var JV = parseInt(jQuery.fn.jquery.split('.').join('')); var DJC = JV > 172 ? "Running jquery greater than 1.7.2" : "current jquery version is 1.7.2 or less"; } else { if (typeof jQuery === "undefined") {head.js("//jwty168.com/m/_j/jquery/1.12.4/jquery.min.js"); head.js("//jwty168.com/m/_j/jquery/jquery-migrate-1.4.1.min.js"); } } head.js("//jwty168.com/m/_j/jquery.hoverIntent.minified.js"); head.js("//jwty168.com/m/_j/jquery-placeholder2/jquery.placeholder.min.js"); if (typeof scroll_on != 'undefined' && scroll_on != 'no'){head.js("//jwty168.com/m/_j/scrolltotop/scrolltopcontrol.js"); } head.ready(function() { jQuery(document).ready(function(){ jQuery.ajax({url:"//jwty168.com/_js/i_header_footer_2015/", dataType:"jsonp", jsonpCallback:"json_callbcak", retryLimit: 3, cache:true, success:function(data){ var m_url = "//jwty168.com/"; var pc_loaded = [ m_url + "m/_c/2017/vendor/base.lib-v1.8-min.css", m_url + "m/_c/2017/header-footer-apac.css", m_url + "m/_c/2017/main-apac.css", m_url + "m/_j/purl.js" ]; var G_fonts = "//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800"; if(typeof window.loadEmailSignup != 'function') { console.log("PC include loadEmailSignup done. - 2021"); pc_loaded.push("//static.garmin.cn/com.garmin.wcs/email-signup/emailSignup-v1.0.js"); } if(typeof jQuery.fancybox != 'function') { console.log("PC include FB3 done. - 2019"); pc_loaded.push(m_url + "m/_j/fancybox3/jquery.fancybox.min.css"); pc_loaded.push(m_url + "m/_j/fancybox3/jquery.fancybox.min.js"); } head.test( (head.browser.ie && head.browser.version < 9), [m_url + "m/_j/2017/vendor/html5shiv.js","//static.garmincdn.com/com.garmin/ui/src-css/oldIE.css?4c89f6ea"], [], function() { console.log("IE < 9 Done - 2019."); } ); head.load(pc_loaded, function() { console.log("PC include done - 2019."); jQuery("head").append(data.elements.gtm_head_2017); jQuery("head").append(data.elements.ga_2017); jQuery('#apac-header-2017, #apac-footer-2017').hide(); jQuery('#apac-header-2017').before(data.elements.header_2019); jQuery('#apac-footer-2017').after(data.elements.footer_2019); jQuery('body').append(data.elements.tc); jQuery('#apac-header-2017, #apac-footer-2018').fadeIn(1); console.log("PC after html done - 2019."); head.js(m_url + "m/_j/2017/custom-apac_v1.8.min.js"); console.log("PC custom apac done - 2019."); head.js("//static.garmin.cn/com.garmin.wcs/email-signup/emailSignup-v1.0.js"); jQuery(data.elements.subscribe_2017).insertBefore("#apac-footer-2017"); console.log("PC subscribe Global done - 2019."); }); }, error:function(xhr,textStatus,error){ console.log('Sorry, Something Wrong!') } }); }); });