-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
307 lines (289 loc) · 10.2 KB
/
index.html
File metadata and controls
307 lines (289 loc) · 10.2 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
<!DOCTYPE html>
<html>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- this is the code that will allow icon to be visible in the title bar of the brower -->
<link rel="icon" type="image/ico" href="WebsiteLogo2.png" />
<!-- you can also say this: <link rel="icon" type="image/png" href="location/image.png" /> -->
<style>
div.advertisement {
text-align: right;
font-family: 'Consolas';
font-size: 20px;
color: grey;
position: sticky;
top: 0;
padding-top: 10px;
padding-bottom: 10px;
}
::selection {
background: #eeb005da;
/* WebKit/Blink Browsers */
}
::-moz-selection {
background: #eeb005da;
/* Gecko Browsers */
}
body {
background-color: #E5E4E2;
}
div.top {
text-align: center;
font-family: 'Consolas';
font-size: 40px;
padding-top: 0px;
}
div.updateHeader {
text-align: center;
font-family: 'Consolas';
font-size: 30px;
}
div.update {
text-align: left;
font-family: 'Consolas';
font-size: 20px;
}
div.updateDate {
font-weight: bold;
color: #cc9900;
}
div.buttons {
text-align: center;
/* position: -webkit-sticky; */
position: sticky;
top: 0;
padding-top: 10px;
padding-bottom: 20px;
background-color: #E5E4E2;
/* padding: 20px; */
}
div.links {
text-align: center;
padding: 20px;
}
button {
background-color: #bbb;
padding: .2em;
margin-left: 1em;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 10px;
color: #fff;
font-family: 'Consolas';
/*Oswald is a great font*/
font-size: 20px;
text-decoration: none;
border: none;
}
button:hover {
background-color: rgb(172, 122, 15);
}
a {
color: #2c87f0;
}
a:visited {
color: #636;
}
a:hover,
a:active,
a:focus {
color: #636;
}
</style>
<div class="top">
<h1 id="title">A to Z Programming</h1>
<img src="WebsiteLogo.png" id="icon" style="position: relative">
</div>
<div class="buttons">
<button id="tools">Tools</button>
<button id="games">Games</button>
<button id="education">Education</button>
</div>
<div class="links">
<a href="" id="link1"> <img src="" id="image1"> </a>
<a href="" id="link2"> <img src="" id="image2"> </a>
<a href="" id="link3"> <img src="" id="image3"> </a>
<a href="" id="link4"> <img src="" id="image4"> </a>
<a href="" id="link5"> <img src="" id="image5"> </a>
<a href="" id="link6"> <img src="" id="image6"> </a>
<a href="" id="link7"> <img src="" id="image7"> </a>
<a href="" id="link8"> <img src="" id="image8"> </a>
<a href="" id="link9"> <img src="" id="image9"> </a>
</div>
<div class="links">
<p id="instructions">Click on any button above to access website content!</p>
</div>
<p></p>
<p></p>
<p></p>
<img src="./updatePhotos/ColorLegend.png">
<a href="./Spanish3Project.html"><img src="./updatePhotos/Spanish3MS.png"></a>
<a href="./EditorJS.html"><img src="./updatePhotos/JSsandbox.png"></a>
<a href="./TankBattle2Player.html"><img src="./updatePhotos/TankBattle.png"></a>
<div class="updateHeader">
<h1>Update Log</h1>
</div>
<div class="update">
<p></p>
<p>
<div class="updateDate">3/9/2020: Spanish3 Project</div>Just made a project for my Spanish 3 class...you can check it out right
<a href="https://atozprogramming.github.io/Spanish3Project">here</a>!
</p>
<p>
<div class="updateDate">7/29/2019: JS sandbox</div> For those who want to experiment with Javascript but not waste time creating useless
files, try our new Code Sandbox, listed in the education section!
</p>
<p>
<div class="updateDate">7/27/2019: TankBattle</div> Prepare your tank for battle! This sandbox 1v1 arena
features a 2-player split-screen
gameplay, with a computer tank in the middle, known as a dominator. If you defeat the dominator, you get to
control it, and destroy your virtual enemies!
Well, what are you waiting for? Play TankBattle, located in the game section!
</p>
<p>
<div class="updateDate">7/23/2019: Script</div> Script has been completely redone! You can now copy and paste,
undo, and insert images! Tables are also being developed.
</p>
<p>
<div class="updateDate">7/8/2019: Website</div> Same content, new look! The website layout was completely
changed, as home page language is now HTML, instead of Markdown.
</p>
<p>
<div class="updateDate">6/26/2019: Chess</div> Prepare to rev up your chess skills, as an assortment of chess
puzzles has now been released! Use tactics to bring the enemy king down, and
play ONLY the best moves! The Chess Puzzles application is located in the Tools category.
</p>
<p>
<div class="updateDate">6/14/2019: Calculator</div> A fresh break from snake, the Calculator is released,
featuring the 4 basic operations, with exponents and roots.
</p>
<p>
<div class="updateDate">6/2/2019: Snake Patch</div> Mass-transfer glitch patched in Snake Unlimited
</p>
<p>
<div class="updateDate">6/1/2019: Snake Addition</div> 1-player Snake Battle Royale released
</p>
<p>
<div class="updateDate">5/28/2019: Snake Addition</div> 1-player Snake Unlimited released
</p>
<p>
<div class="updateDate">5/25/2019: Snake Addition</div> Snake Unlimited released
</p>
<p>
<div class="updateDate">5/22/2019: 3 kings</div> 3 Kings game released, began uploading screenshots of games
</p>
<p>
<div class="updateDate">5/20/2019: Simulations</div> Planental Orbit(s) and Earth Cannon simulations released
</p>
<p>
<div class="updateDate">5/19/2019: Snake</div> Snake Battle Royale released
</p>
<p>
<div class="updateDate">5/18/2019</div> Website created
</p>
</div>
</div>
<script>
//Getting the date
n = new Date();
y = n.getFullYear();
m = n.getMonth() + 1;
d = n.getDate();
//document.getElementById("date").innerHTML = m + "/" + d + "/" + y;
console.log('Month: ' + m + ' Day: ' + d);
if ((d == 25 || d == 24) && m == 12) {
//Christmas
document.getElementById("icon").src = "WebsiteLogoChristmas.png";
} else if (d == 4 && m == 7) {
//4th of July
document.getElementById("icon").src = "WebsiteLogoJuly4th.png";
} else if ((d == 1 && m == 1) || (d == 31 && m == 12)) {
//New Year
document.getElementById("icon").src = "WebsiteLogoNewYear.png";
} else if (d = 17 && m == 3) {
//St. Patrick's
document.getElementById("icon").src = "WebsiteLogoPatrick.png";
} else if (d = 31 && m == 10) {
//Halloween
document.getElementById("icon").src = "WebsiteLogo.png";
}
//Registering the buttons
let toolsButton = document.getElementById("tools");
let gamesButton = document.getElementById("games");
let educationButton = document.getElementById("education");
//Button event listeners
toolsButton.addEventListener("click", () => {
console.log("Tools clicked.");
tools();
});
gamesButton.addEventListener("click", () => {
console.log("Games clicked.");
games();
});
educationButton.addEventListener("click", () => {
console.log("Education clicked.");
education();
});
function tools() {
info();
clearLinks();
//Calculator
document.getElementById('image1').src = "CalculatorIcon.png";
document.getElementById('link1').href = "MathCalculator.html";
//Chess
document.getElementById('image2').src = "Chess.png";
document.getElementById('link2').href = "Chess.html";
//Script
document.getElementById('image3').src = "Script.png";
document.getElementById('link3').href = "Script_V22.html";
}
function games() {
clearLinks();
info();
//Tanks
document.getElementById('image1').src = "Tank.png";
document.getElementById('link1').href = "TankBattle2Player.html";
//Snake
document.getElementById('image2').src = "Snake.png";
document.getElementById('link2').href = "CompactStandardSnake.html";
//3 kings
document.getElementById('image3').src = "3Kings.png";
document.getElementById('link3').href = "3kingsBoardGame.html";
}
function education() {
clearLinks();
info();
//Solar System
document.getElementById('image1').src = "Solar.png";
document.getElementById('link1').href = "Physics2.html";
//Earth Cannon
document.getElementById('image2').src = "Cannon.png";
document.getElementById('link2').href = "Physics.html";
//Code Sandbox
document.getElementById('image3').src = "Code.png";
document.getElementById('link3').href = "EditorJS.html";
}
function info() {
document.getElementById('instructions').textContent = "Click on any Icon above to access its content!"
}
function clearLinks() {
document.getElementById('image1').src = "";
document.getElementById('link1').href = "";
document.getElementById('image2').src = "";
document.getElementById('link2').href = "";
document.getElementById('image3').src = "";
document.getElementById('link3').href = "";
document.getElementById('image4').src = "";
document.getElementById('link4').href = "";
document.getElementById('image5').src = "";
document.getElementById('link5').href = "";
document.getElementById('image6').src = "";
document.getElementById('link6').href = "";
document.getElementById('image7').src = "";
document.getElementById('link7').href = "";
document.getElementById('image8').src = "";
document.getElementById('link8').href = "";
document.getElementById('image9').src = "";
document.getElementById('link9').href = "";
}
</script>
</html>