-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTest.js
56 lines (53 loc) · 2.07 KB
/
Test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// //Lets create lifetime counter and current balance as const
// const lifeTimeCount = 0;
// const curBal =0;
// //create simple add function line that +1 to balances
// function addDonut(){
// lifeTimeCount += 1;
// curBal +=1;
// document.getElementById("curCount").style.display="curBal";
// document.getElementById("totCount").style.display="lifeTimeCount";
// }
// //lets create the first main click function and add to both balances
// // function donutclick(){
// var doClick= document.getElementById('adocli');
// doClick.onclick = addDonut();
// //function to gray out buttons
// var nuClick = document.getElementById('donutClick');
// nuClick.onclick = function darkClick(){
// if(curBal<oven){
// //change button background
// document.querySelector("buttona").style.backgroundColor="slate";
// }else {
// //change background
// document.getElementById("easy").style.backgroundColor="white";
// }
// if(curBal<homemade){
// //change button background
// document.getElementById("home").style.backgroundColor="slate";
// }else {
// //change background
// document.getElementById("home").style.backgroundColor="white";
// }
// if(curBal<influence){
// //change button background
// document.getElementById("tuber").style.backgroundColor="slate";
// }else {
// //change background
// document.getElementById("tube").style.backgroundColor="white";
// }
// if(curBal<store){
// //change button background
// document.getElementById("comm").style.backgroundColor="slate";
// }else {
// //change background
// document.getElementById("comm").style.backgroundColor="white";
// }
// if(curBal<legend){
// //change button background
// document.getElementById("fred").style.backgroundColor="slate";
// }else {
// //change background
// document.getElementById("fred").style.backgroundColor="white";
// }
// }