This file contains 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
// Select all links with hashes | |
$('a[href*="#"]') | |
// Remove links that don't actually link to anything | |
.not('[href="#"]') | |
.not('[href="#0"]') | |
.click(function(event) { | |
// On-page links | |
if ( | |
location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') | |
&& |
This file contains 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> | |
var getUrlParameter = function getUrlParameter(sParam) { | |
var sPageURL = decodeURIComponent(window.location.search.substring(1)), | |
sURLVariables = sPageURL.split('&'), | |
sParameterName, | |
i; | |
for (i = 0; i < sURLVariables.length; i++) { | |
sParameterName = sURLVariables[i].split('='); |
This file contains 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> | |
window.oldSetTimeout = window.setTimeout; | |
window.setTimeout = function(code, delay) { | |
if (delay == 5000) { | |
delay = 7000; | |
} | |
var retval = window.oldSetTimeout(code, delay); | |
return retval; | |
}; | |
window.oldSetInterval = window.setInterval; |
This file contains 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> | |
var insertThis = "<h1>Thank you, your order is confirmed.</h1><p>Order Number: <strong>#000{orderId}</strong></p><p>Thank you for your order! Your payment of <strong>${orderGrandTotal}</strong> has been confirmed. A confirmation email has been sent to you at <a href='mailto:{customerEmailAddress}'>{customerEmailAddress}</a>.</p>" | |
$("#confirmed-page").after(insertThis).css("display","none"); | |
$(document).ready(function() { | |
// redirect based on order value | |
var whichPackage = {orderGrandTotal} | |
setTimeout(function(){ | |
if(whichPackage > 1000 ){ |