tml 5 months ago
parent
commit
b2970a4682
1 changed files with 11 additions and 0 deletions
  1. 11 0
      nngkxxdp/src/main/resources/static/naxsb/indexbmhq.html

+ 11 - 0
nngkxxdp/src/main/resources/static/naxsb/indexbmhq.html

@@ -433,4 +433,15 @@
   });
 </script>
 
+<script>
+  function isMobileUserAgent() {
+      return /iphone|ipod|android.*mobile|windows.*phone|blackberry.*mobile/i.test(
+          window.parent.navigator.userAgent.toLowerCase("")
+      );
+  }
+
+  if (isMobileUserAgent()) {
+      window.location = 'https://www.cqna.gov.cn/syygapi/naxsb/indexbmhqMobile.html'
+  }
+</script>
 </html>