-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.html
More file actions
145 lines (133 loc) · 4.94 KB
/
index.html
File metadata and controls
145 lines (133 loc) · 4.94 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE HTML>
<html lang = "en">
<head>
<link rel="stylesheet" type="text/css" href="interface.css" />
<link rel='shortcut icon' type='image/x-icon' href='favicon.ico' />
<!-- basic.html -->
<title>TypeFun!</title>
<meta charset = "UTF-8" />
</head>
<body onload="setup(); updateWord();">
<div id="bd">
<div id="yui-main" >
<div class="yui-b">
<div class="yui-gb">
<!-- <h1>TypingGame!</h1> -->
<a href='https://postimg.org/image/oqudralmx/' target='_blank'><img src='assets/Typefun.png' border='0' alt='TypeGame'/><br /></a>
<p>
Type in the current word to get points! Then, when you have enough, buy stuff to do the typing for you =)
</p>
<div style="font-size:30px">
Current word: <span id="curword"></span>
<span id="notification-area">
<img id='good-notification' src='assets/correct-mark.png'>
<img id='bad-notification' src="assets/error-mark.png">
</span>
</div>
<br />
<input id="textinput" type="text" value=" " oninput="if(this.value.trim() == curword ) { this.value=''; inputEntered(wordpoints); setNotification('good'); updateWord();} else{ if(this.value.trim().length >= curword.length){ setNotification('bad');} }">
<br />
Points per word: <span id="wordpoints">1</span>
<br />
Points: <span id="points">0</span>
<br />
<div class="yui-u first" >
<div class="content">
<br />
<a href='https://upload.wikimedia.org/wikipedia/commons/thumb/1/18/Creative-Tail-Animal-monkey.svg/480px-Creative-Tail-Animal-monkey.svg.png' target='_blank'><img src='assets/monkey.png' border='0' alt='Monkey pic' height='100px' width='100px'/></a>
<br />
Monkeys: <span id="monkeys[0]">0</span>
<br />
Monkey cost: <span id="monkeyCost[0]">10</span>
<br />
<button onclick="buyMonkey(0)">Buy monkey</button>
<br />
Super monkeys: <span id="monkeys[1]">0</span>
<br />
Super monkey cost: <span id="monkeyCost[1]">50000</span>
<br />
<button onclick="buyMonkey(1)">Buy super monkey</button>
</div>
</div>
<div class="yui-u">
<div class="content">
<br />
<a href='http://i.imgur.com/oiaS6tT.png' target='_blank'><img src='assets/typist.png' border='0' alt='computer pic' height='100px' width='100px'/></a>
<br />
Typists: <span id="typists[0]">0</span>
<br />
Typist cost: <span id="typistCost[0]">1000</span>
<br />
<button onclick="buyTypist(0)">Buy typist</button>
<br />
Super typists: <span id="typists[1]">0</span>
<br />
Super typist cost: <span id="typistCost[1]">500000</span>
<br />
<button onclick="buyTypist(1)">Buy super typist</button>
</div>
</div>
<div class="yui-u">
<div class="content">
<br />
<a href='http://i.imgur.com/nuSCENt.png' target='_blank'><img src='assets/computer.png' border='0' alt='computer pic' height='100px' width='100px'/></a>
<br />
Computers: <span id="computers[0]">0</span>
<br />
Computer cost: <span id="computerCost[0]">10000</span>
<br/>
<button onclick="buyComputer(0)">Buy computer</button>
<br />
Super computers: <span id="computers[1]">0</span>
<br />
Super computers cost: <span id="computerCost[1]">5000000</span>
<br />
<button onclick="buyComputer(1)">Buy super computer</button>
</div>
</div>
</div>
</div>
<div class="yui-b">
<div id="secondary">Autotyper upgrades! <br/>
Monkey upgrade cost: <span id="upgradecost[0]">12500</span>
<button onclick="upgradeUnits(0);">Upgrade monkey</button>
Typist upgrade cost: <span id="upgradecost[1]">125000</span>
<button onclick="upgradeUnits(1);">Upgrade typist</button>
Computer upgrade cost: <span id="upgradecost[2]">937500</span>
<button onclick="upgradeUnits(2);">Upgrade computer</button>
<br />
<p> Manual typing upgrades! </p>
Keyboard upgrade cost: <span id="keyboardupgradecost">100000</span>
<button onclick="upgradeType();">Upgrade keyboard</button>
<br>
</div>
</div>
</div>
<div id="ft">
<div id="footer">Achievements earned
<p id='achieveText' text-align='center'> </p>
<button onclick="saveGame();">Save Game</button>
<button onclick="deleteSave();">Delete Save</button>
</div>
</div>
</div>
</div>
<br/>
<br />
<style type="text/css">
#good-notification, #bad-notification{
/* start our notification icons as hidden and give them
more opacity on certain input.
CSS transitions will give their appearance a "smooth" effect
*/
opacity: 0;
-webkit-transition: opacity 0.1s linear;
-moz-transition: opacity 0.1s linear;
-ms-transition: opacity 0.1s linear;
-o-transition: opacity 0.1s linear;
transition: opacity 0.1s linear;
}
</style>
<script type="text/javascript" src="main.js"></script>
</body>
</html>