Created
January 12, 2016 22:10
-
-
Save tranepura/f61effd9e4147d6ce8bf to your computer and use it in GitHub Desktop.
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"> | |
| var currenturl = window.location.href; | |
| var url = "p=75"; | |
| if (currenturl.indexOf("p=75") != -1) | |
| { | |
| var trimurl = currenturl.replace('p=75', ''); | |
| customAlert(); | |
| } | |
| if (currenturl.indexOf("p=399") != -1) | |
| { | |
| var trimurl = currenturl.replace('p=399', ''); | |
| customAlert(); | |
| } | |
| if (currenturl.indexOf("p=397") != -1) | |
| { | |
| var trimurl = currenturl.replace('p=397', ''); | |
| customAlert(); | |
| } | |
| if (currenturl.indexOf("p=396") != -1) | |
| { | |
| var trimurl = currenturl.replace('p=396', ''); | |
| customAlert(); | |
| } | |
| if (currenturl.indexOf("p=407") != -1) | |
| { | |
| var trimurl = currenturl.replace('p=407', ''); | |
| customAlert(); | |
| } | |
| if (currenturl.indexOf("p=395") != -1) | |
| { | |
| var trimurl = currenturl.replace('p=395', ''); | |
| customAlert(); | |
| } | |
| function customAlert() { | |
| var answer = confirm("Our supplier Spendless are currently experiencing issues with their website. Members wishing to purchase will need to call Spendless on 1800 352 600 and order over the phone."); | |
| if (answer) | |
| window.location.assign(currenturl); | |
| else | |
| window.location.assign(trimurl); | |
| } | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment