Cookie Clicker Ripoff
by wizviper
HTML
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<div id="container">
<h1>Cookie Clicker Ripoff- </h1>
<h1>An idle game</h1>
<img src="http://vignette1.wikia.nocookie.net/creepypasta/images/8/81/Panel-cookie-choc-cookie.png/revision/latest?cb=20160111144002" style=width:300px;height:300px; id="powercookie">
<p id="cookieCounter">
Cookies:0
</p>
<div id="upgradeMenu">
<!-- Cursor Upgrades -->
<img src="http://vignette2.wikia.nocookie.net/cookieclicker/images/e/eb/CursorNew.png/revision/latest?cb=20160213145400" style="height:50px;visibility:hidden;" id="reinforcedFingerShop" title="Reinforced Index Finger:100
Double your click power and cursor cps!">
<img src="http://vignette4.wikia.nocookie.net/cookieclicker/images/0/01/PinkCursorNew.png/revision/latest?cb=20160213150246" id="carpalShop" style="visibility:hidden;height:50;width:50;" title="Carpal Tunnel Prevention Cream:500
Double your clicks and cursors again!">
<!-- Grandma Upgrades -->
<img src="http://vignette3.wikia.nocookie.net/cookieclicker/images/f/fb/RollingPinNew.png/revision/latest?cb=20160213150535"style="height:50;width:50;visibility:hidden;" title="Forwards From Grandma:1000
Double your grandma's production!" id="forwardsShop">
<img src="http://vignette3.wikia.nocookie.net/cookieclicker/images/5/5a/PinkRollingPinNew.png/revision/latest?cb=20160213150435" style="visibility:hidden;height:50;width:50;" title="Steel Plated Rolling Pins:5000
Double your grandma's production again!" id="steelPlatedShop">
<!-- Farm Upgrades -->
<img src="http://vignette1.wikia.nocookie.net/cookieclicker/images/6/67/WateringCanNew.png/revision/latest?cb=20160213151046" style="visibility:hidden;width:50;height" title="Chocolate Seeds:11000
Double...
CSS
body {
background-image: url("https://i2.wp.com/gandok.website/wp-content/uploads/2016/04/cooking-kitchen-background-bb-bbackgroundb-images-for-bb.jpg")
}
h1 {
color: white;
font-family: "Aster", Times, Serif;
font-size: 30px;
}
p {
color: white;
font-size: 24px;
margin-left: 100px;
margin-top: 25px;
}
button {
display: block;
}
JavaScript
//Define the variables
var cookies = 0;
var clickPower = 1;
var reinforcedFingerActive = 0;
var carpalActive = 0
var forwardsActive = 0;
var steelPlatedActive = 0;
var cheapHoesActive = 0;
var sugarGasActive = 0;
var cursorAmount = 0;
var grandmaAmount = 0;
var farmAmount = 0;
var mineAmount = 0;
var factoryAmount = 0;
var bankAmount = 0;
var templeAmount = 0;
var wizardAmount = 0;
var shipAmount = 0;
var alchemyAmount = 0;
var cursorPrice = 15;
var cursorCookies = 0.1;
var grandmaPrice = 100;
var grandmaCookies = 1;
var farmPrice = 1100;
var farmCookies = 8;
var minePrice = 12000;
var mineCookies = 47;
var factoryPrice = 130000;
var factoryCookies = 260;
var bankPrice = 1400000;
var templePrice = 20000000;
var wizardPrice = 330000000;
var shipPrice = 5100000000;
var alchemyPrice = 75000000000;
//Pays cookies every tenth second
setInterval(payCookies, 1000);
//Function to update prices and cookies
function updateValue() {
var e = document.getElementById("cookieCounter");
e.innerHTML = "Cookies: " + Math.round(cookies);
compressCookies();
var c = document.getElementById("cursorShop");
c.innerHTML = 'Cursor: ' + Math.round(cursorPrice);
compressCursors();
var g = document.getElementById("grandmaShop");
g.innerHTML = 'Grandma: ' + Math.round(grandmaPrice)
compressGrandmas();
var f = document.getElementById("farmShop");
f.innerHTML = 'Farm: ' + Math.round(farmPrice)
compressFarms();
var m = document.getElementById("mineShop");
m.innerHTML = 'Mine:' + Math.round(minePrice)
compressMines();
var fa = document.getElementById("factoryShop");
fa.innerHTML = 'Factory: ' + Math.round(factoryPrice);
compressFactories();
var b = document.getElementById("bankShop");
b.innerHTML = 'Bank: ' + Math.round(bankPrice);
compressBanks();
var t = document.getElementById("templeShop");
t.innerHTML = 'Temple: ' + Math.round(templePrice);
Math.round(templePrice);
compressTemples();
var w = document.getElementById("wizardShop");
...