JS open the PC on your phone automatically jump to the specified site H5

The <head> add a js code inside. Https://i.998.com which is designated H5 jump address corresponding to the number of how many H5 site configuration.

<script>
        var isAndroid = (/android/gi).test(navigator.appVersion);
        var isIPadDevice = (/ipad/gi).test(navigator.appVersion);
        var isIDevice = (/iphone/gi).test(navigator.appVersion);
        var isPlaybook = (/playbook/gi).test(navigator.appVersion);
        var isTouchPad = (/hp-tablet/gi).test(navigator.appVersion);
        var isWindowsPhone = (/ windows phone / gi) .test (navigator.appVersion);
        var isHasLinux = (/linux/gi).test(navigator.appVersion);
        var isGecko = (/gecko/gi).test(navigator.appVersion);
        if (isAndroid || isIDevice || isWindowsPhone || (isHasLinux && isGecko)) {
            window.location.href = 'https://i.998.com';
        }
    </script>

Published 224 original articles · won praise 14 · views 40000 +

Guess you like

Origin blog.csdn.net/xulong5000/article/details/105052241