Created
August 7, 2012 03:38
-
-
Save leewardbound/3281238 to your computer and use it in GitHub Desktop.
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 src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$(function() { | |
$('#Table_03a').hide(); | |
changeCheckBox(137); | |
}); | |
var internal = 0; | |
function bunload() { | |
if (internal != 1) { | |
window.onbeforeunload = null; | |
alert("****************************************************************************************\n\WAIT! WAIT! WAIT! WAIT! WAIT! WAIT! WAIT! WAIT! WAIT! \n\nFor a Limited Time - Get a FREE blah blah blah, FREE!\n\nIf you are wondering why we are doing this, the simple answer is because we know once you see results, you will refer friends and family. \n\nDon't Miss Out on this LIMITED TIME SPECIAL OFFER!\n\****************************************************************************************"); | |
$('#Table_01, #Table_02, #Table_03').hide(); | |
$('#Table_03a').show().addClass('grey'); | |
$('#total, #subtotal, #itemtotal').html('$48'); | |
$('#product').val('141'); | |
changeCheckBox('141'); | |
savecustomer(); | |
return "\nLIMITED TIME SPECIAL OFFER!\n\nFor a Limited Time - Get a FREE blah blah blah blah, FREE!\n\nClick *Cancel* or *Stay* below to activate coupon.\n\n"; | |
} else { | |
internal = 0; | |
} | |
} | |
if (internal != 1) { | |
setTimeout(function(){window.onbeforeunload = bunload;},2000); | |
} else { | |
internal = 0; | |
} | |
function savecustomer(){ | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment