Skip to content

Instantly share code, notes, and snippets.

@jsvine
Created November 5, 2012 16:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsvine/4018023 to your computer and use it in GitHub Desktop.
Save jsvine/4018023 to your computer and use it in GitHub Desktop.
Raspberry Ketone Javascript
var areYouReallySure = false;
var internalLink = false;
function areYouSure() {
if (!areYouReallySure && !internalLink) {
areYouReallySure = true;
$("#w").css('display', 'block');
return 'Hello. Do you need help? Click cancel to get assistance.';
}
}
window.onbeforeunload = areYouSure;
<p style="color:#ff0000;">Offer Expires: <script language="Javascript">
var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var monthNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
var now = new Date();
now.setDate(now.getDate() +1);
document.write(dayNames[now.getDay()] + ", " + monthNames[now.getMonth()] + " " + (now.getDate()) + ", " + now.getFullYear());
// -->
</script></p>
<h5><img src="index_files/calendar.png" alt=""> <strong>
<script type="text/javascript">
var month = new Array();
month[0] = "January";month[1] = "February";month[2] = "March";month[3] = "April";month[4] = "May";
month[5] = "June";month[6] = "July";month[7] = "August";month[8] = "September";month[9] = "October";month[10] = "November";
month[11] = "December";
//Array starting at 0 since javascript dates start at 0 instead of 1
var mydate= new Date()
mydate.setDate(mydate.getDate()-3)
document.write("Comment Left on: "+(mydate.getMonth()+1)+"/"+mydate.getDate()+"/"+mydate.getFullYear());
</script>
</strong> at 8:15 PM</h5>
<p>
My friends and I have all been waiting for the raspberry ketone pills
to hit the web. At least 5 of us have all taken the raspberry ketone
pills and we all lost a bunch of weight. This stuff truley is
incredible and has changed all of our lives. Good luck to everyone who
takes advantage of this wonderful opportunity </p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment