8000 AndyCodes · ICS4U-DASA/myosnake.github.io@826c459 · GitHub
[go: up one dir, main page]

Skip to content

Commit 826c459

Browse files
author
AndyCraig1
committed
AndyCodes
1 parent 7ec8225 commit 826c459

File tree

4 files changed

+102
-5
lines changed

4 files changed

+102
-5
lines changed

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ <h3>Keyboard Input</h3>
7777
<nav id="nav" class="navbar navbar-default">
7878
<div class="container-fluid">
7979
<div class="navbar-left">
80-
<a class="navbar-brand"> <img src= "img/logo.png" width=25vw height=25vh alt = "logo"> </a>
80+
<a class="navbar-brand"> <img src= "img/logo.png" width=30vw height=30vh alt = "logo"> </a>
8181
<a class="navbar-link" onclick= "play_music()"><i style="margin-top:20px;"class = "fa fa-play fa-lg"></i></a>
8282
</div>
8383

js/snake.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,8 @@ $(document).ready(function(){
102102
return;
103103
}
104104

105-
//Lets write the code to make the snake eat the food
106-
//The logic is simple
107-
//If the new head position matches with that of the food,
108-
//Create a new head instead of moving the tail
105+
106+
109107
if(nx == food.x && ny == food.y)
110108
{
111109
var tail = {x: nx, y: ny};

test.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<html>
2+
<header>
3+
<style>
4+
</style>
5+
</header>
6+
<body>
7+
<h1 style = "text-align:center;">
8+
Test Preparation
9+
</h1>
10+
<button id="button" onclick="change()"> Test Button </button>
11+
</body>
12+
<script>
13+
function change(){
14+
document.getElementById("button").innerHTML = "Button Test" ;
15+
}
16+
</script>
17+
</html>

testprep.html

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<html>
2+
<head>
3+
4+
<style>
5+
body {
6+
background-color : green;
7+
}
8+
h1{
9+
font-family: 'Enriqueta', arial, serif;
10+
text-align:center;
11+
font-size: 30px;
12+
}
13+
p{
14+
font-family: 'Enriqueta', arial, serif;
15+
}
16+
button{
17+
font-family: 'Enriqueta', arial, serif;
18+
font-size: 20px;
19+
border-radius: 10px;
20+
background-color :red;
21+
font-weight: bolder;
22+
padding: 10px;
23+
24+
border-style: dotted;
25+
border-radius: 50px;
26+
27+
28+
29+
}
30+
input{
31+
margin-top : 100px;
32+
padding: 10px;
33+
border-style: hidden;
34+
border-radius: 50px;
35+
36+
37+
38+
}
39+
40+
41+
</style>
42+
</head>
43+
<title>TestPrep</title>
44+
<body>
45+
46+
<h1>Boo</h1>
47+
<h1>
48+
<input type="password" id="tfq" name="q" size="21" maxlength="120" value="Button">
49+
</h1>
50+
<br>
51+
<h1>
52+
<button id = "change" type = "button" onclick = "change()"> Type Text To Display Here </button>
53+
</h1>
54+
55+
56+
57+
58+
59+
60+
61+
62+
63+
64+
65+
</body>
66+
<script>
67+
var audio = new Audio('sound/music.mp3');
68+
69+
function change(){
70+
document.getElementById("change").innerHTML = document.getElementById("tfq").value;
71+
72+
73+
74+
75+
76+
77+
78+
79+
80+
}
81+
</script>
82+
</html>

0 commit comments

Comments
 (0)
0