-
Notifications
You must be signed in to change notification settings - Fork 5
/
script.js
23 lines (20 loc) · 780 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//player data
var money = "";
var AutoPrinters = "";
var AutoPrinterCost = 10;
//incrementing the money and illegal money.
function getrich() {
money++;
document.getElementById('TotalMoney').innerHTML = money;
}
function tab(tab) {
//hide all your tabs, then show the one the user selected.
document.getElementById("optionsMenu").style.display = "none";
document.getElementById("shopMenu").style.display = "none";
document.getElementById(tab).style.display = "inline-block";
}
//go to a tab for the first time, so not all show
tab("shopMenu");
document.getElementById('TotalMoney').innerHTML = money;
document.getElementById('AutoPrinterCost').innerHTML = AutoPrinterCost;
document.getElementById('TotalAutoPrinters').innerHTML = AutoPrinters;