Authored by hf

modify layout header add script code to complete computer and mobile adaptive di…

…splay; refs YBG-5681 YBG-5683
{{#if pop}}
<div class="pop-container" style="position:relative;">
<span class="pop-text">#POP</span>
<div class="swiper-container3">
... ... @@ -21,3 +22,4 @@
<span class="button next-button"></span>
</span>
</div>
{{/if}}
\ No newline at end of file
... ...
{{#if pop}}
<div class="pop-container" style="position:relative;">
<span class="pop-text">#POP</span>
<div class="swiper-container3">
... ... @@ -21,3 +22,4 @@
<span class="button next-button"></span>
</span>
</div>
{{/if}}
\ No newline at end of file
... ...
... ... @@ -15,6 +15,7 @@
<meta name="googlebot" content="index, follow"/>
<meta name="google-site-verification" content="6IS8pD7H0L0FBqjE6XZIx-x02Pa2fmG0P2ZEb3xNiVY" />
<meta property="wb:webmaster" content="5ffc4cd75e724a17" />
<script type="text/javascript">if(window.location.href.indexOf(".html")!==-1){var ua=navigator.userAgent;var ipad=ua.match(/(iPad).*OS\s([\d_]+)/),isIphone=!ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/),isAndroid=ua.match(/(Android)\s+([\d.]+)/),isPc=!ipad&&!isIphone&&!isAndroid;if(isPc){window.location.href=window.location.href.replace("mobile","index");}}</script>
{{# isDetail}}
<meta property="fb:app_id" content="{{app_id}}"/>
<meta property="og:site_name" content="{{site_name}}"/>
... ...
... ... @@ -15,6 +15,7 @@
<meta name="googlebot" content="index, follow"/>
<meta name="google-site-verification" content="6IS8pD7H0L0FBqjE6XZIx-x02Pa2fmG0P2ZEb3xNiVY" />
<meta property="wb:webmaster" content="5ffc4cd75e724a17" />
<script type="text/javascript">if(window.location.href.indexOf(".html")!==-1){var ua=navigator.userAgent;var ipad=ua.match(/(iPad).*OS\s([\d_]+)/),isIphone=!ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/),isAndroid=ua.match(/(Android)\s+([\d.]+)/),isPc=!ipad&&!isIphone&&!isAndroid;if(isPc){window.location.href=window.location.href.replace("mobile","index");}}</script>
{{# isDetail}}
<meta property="fb:app_id" content="{{app_id}}"/>
<meta property="og:site_name" content="{{site_name}}"/>
... ...
... ... @@ -15,6 +15,7 @@
<meta name="googlebot" content="index,follow" />
<meta name="google-site-verification" content="6IS8pD7H0L0FBqjE6XZIx-x02Pa2fmG0P2ZEb3xNiVY" />
<meta property="wb:webmaster" content="5ffc4cd75e724a17" />
<script type="text/javascript">if(window.location.href.indexOf(".html")!==-1){var ua=navigator.userAgent;var ipad=ua.match(/(iPad).*OS\s([\d_]+)/),isIphone=!ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/),isAndroid=ua.match(/(Android)\s+([\d.]+)/),isPc=!ipad&&!isIphone&&!isAndroid;if(isPc){window.location.href=window.location.href.replace("mobile","index");}}</script>
{{# isDetail}}
<meta property="fb:app_id" content="{{app_id}}"/>
<meta property="og:site_name" content="{{site_name}}"/>
... ...
... ... @@ -15,6 +15,7 @@
<link rel="dns-prefetch" href="//img01.yohoboys.com" />
<link rel="dns-prefetch" href="//img02.yohoboys.com" />
<link rel="dns-prefetch" href="//video.yohoboys.com" />
<script type="text/javascript">if(window.location.href.indexOf(".html")!==-1){var ua=navigator.userAgent;var ipad=ua.match(/(iPad).*OS\s([\d_]+)/),isIphone=!ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/),isAndroid=ua.match(/(Android)\s+([\d.]+)/),isMobile=isIphone||isAndroid;if(isMobile){window.location.href=window.location.href.replace("index","mobile");}}</script>
{{# isDetail}}
<meta property="fb:app_id" content="{{app_id}}"/>
<meta property="og:site_name" content="{{site_name}}"/>
... ...
... ... @@ -15,6 +15,7 @@
<meta name="googlebot" content="index, follow"/>
<meta name="google-site-verification" content="6IS8pD7H0L0FBqjE6XZIx-x02Pa2fmG0P2ZEb3xNiVY" />
<meta property="wb:webmaster" content="5ffc4cd75e724a17" />
<script type="text/javascript">if(window.location.href.indexOf(".html")!==-1){var ua=navigator.userAgent;var ipad=ua.match(/(iPad).*OS\s([\d_]+)/),isIphone=!ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/),isAndroid=ua.match(/(Android)\s+([\d.]+)/),isPc=!ipad&&!isIphone&&!isAndroid;if(isPc){window.location.href=window.location.href.replace("mobile","index");}}</script>
{{# isDetail}}
<meta property="fb:app_id" content="{{app_id}}"/>
<meta property="og:site_name" content="{{site_name}}"/>
... ...
... ... @@ -15,6 +15,7 @@
<link rel="dns-prefetch" href="//img01.yohoboys.com" />
<link rel="dns-prefetch" href="//img02.yohoboys.com" />
<link rel="dns-prefetch" href="//video.yohoboys.com" />
<script type="text/javascript">if(window.location.href.indexOf(".html")!==-1){var ua=navigator.userAgent;var ipad=ua.match(/(iPad).*OS\s([\d_]+)/),isIphone=!ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/),isAndroid=ua.match(/(Android)\s+([\d.]+)/),isMobile=isIphone||isAndroid;if(isMobile){window.location.href=window.location.href.replace("index","mobile");}}</script>
{{# isDetail}}
<meta property="fb:app_id" content="{{app_id}}"/>
<meta property="og:site_name" content="{{site_name}}"/>
... ...