File tree 4 files changed +102
-5
lines changed
4 files changed +102
-5
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ <h3>Keyboard Input</h3>
77
77
< nav id ="nav " class ="navbar navbar-default ">
78
78
< div class ="container-fluid ">
79
79
< 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 >
81
81
< a class ="navbar-link " onclick = "play_music() "> < i style ="margin-top:20px; "class = "fa fa-play fa-lg "> </ i > </ a >
82
82
</ div >
83
83
Original file line number Diff line number Diff line change @@ -102,10 +102,8 @@ $(document).ready(function(){
102
102
return ;
103
103
}
104
104
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
+
109
107
if ( nx == food . x && ny == food . y )
110
108
{
111
109
var tail = { x : nx , y : ny } ;
Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change
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 >
You can’t perform that action at this time.
0 commit comments