Skip to content

Instantly share code, notes, and snippets.

@JOPHESTUS
Created February 25, 2014 07:28
Show Gist options
  • Save JOPHESTUS/9204437 to your computer and use it in GitHub Desktop.
Save JOPHESTUS/9204437 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<head><style> body {
text-align: center;
background: url("https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-prn1/t1/1620417_10201637204715174_536095418_n.jpg");;
color: white;
font-family: Comic sans MS;
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
}
p {
font-size: 24px;
}
input {
border: 0;
padding: 12px;
font-size: 18px;
}
input[type="submit"] {
background: limegreen;
color: black;
}
</style>
<title>Harry's Petrol</title></head>
<body>
<img src="https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-ash2/t1/1004603_603975536310018_2048219884_n.jpg" height="250" width="250">
<p> I am the BOONG </p>
<input type="number" id="petrol" placeholder="Free Petrol">
<input id="sub" type="submit">
<script>
// this stuff just loads the jQuery stuff so it can do the magic stuff
var oldieCheck = Boolean(document.getElementsByTagName('html')[0].className.match(/\soldie\s/g));
if (!oldieCheck) {
document.write('<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"><\/script>');
} else {
document.write('<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"><\/script>');
}
</script>
<script>
if (!window.jQuery) {
// this stuff just loads the jQuery stuff so it can do the magic stuff
if (!oldieCheck) {
document.write('<script src="http://lol768.com/IRCHelp/bower_components/gumby/js/libs/jquery-2.0.2.min.js"><\/script>');
} else {
document.write('<script src="http://lol768.com/IRCHelp/bower_components/gumby/js/libs/jquery-1.10.1.min.js"><\/script>');
}
}
</script>
<script type="text/JavaScript" src="http://lol768.com/IRCHelp/js/gumby.min.js">// this stuff just loads the jQuery stuff so it can do the magic stuff </script>
<script>
// this stuff is the magic stuff
jQuery(function () {
$("#sub").click(function() {
var amt = $("#petrol").val();
var cost = amt * 2;
alert("That'll be " + cost + " Centrelink cheques");
});
});
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment