This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Detect mobile screen size and Redirect (if so) to mobile.

By: a guest on Apr 8th, 2013  |  syntax: None  |  size: 0.17 KB  |  views: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.     <script type="text/javascript" language="Javascript">
  2.       if (screen.width <= 699) {
  3.       document.location = "http://kimerick.com/mobile.html";
  4.       }
  5.     </script>
clone this paste RAW Paste Data