Created
December 17, 2014 23:04
-
-
Save colormono/432103bbb91034900fdb to your computer and use it in GitHub Desktop.
Adobe Muse Redirect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript"> | |
| if (screen.width < 574) { | |
| var ref = document.referrer; | |
| var urls = new Array("http://www.mmagoa.com","http://www.mmagoa.com/phone/"); | |
| var n = ref.match(urls[0]); | |
| var m = ref.match(urls[1]); | |
| if ((m!==null) || (n!==null)) { | |
| stop; | |
| } | |
| else if (ref=='') { | |
| var r = confirm("Redireccionar el sitio mobile?"); | |
| if (r==true) { | |
| window.location = "http://www.mmagoa.com/phone/"; | |
| } else { | |
| stop ; | |
| } | |
| } else { | |
| window.location = "http://www.mmagoa.com/phone/"; | |
| } | |
| } | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment