Skip to content

Commit 763d10d

Browse files
committed
spin-commit
1 parent c7cbe87 commit 763d10d

File tree

2 files changed

+45
-12
lines changed

2 files changed

+45
-12
lines changed

Fidget spinner Game/popup.html

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,17 @@
44
<head>
55
<meta charset="UTF-8">
66
<title>Fidget Spinner</title>
7-
8-
9-
10-
<link rel="stylesheet" href="css/style.css">
11-
12-
7+
<link rel="stylesheet" href="style.css">
138
</head>
14-
159
<body>
10+
<h1>Fidget Spinner</h1>
1611
<b>
1712
<font color="#fa8072">Current Speed : <span class="corner" id="svalue"></span></font>
1813
</b><br>
19-
&nbsp;<input type="text" maxlength="3" style="width: 30px" name="value" id='value' />
20-
<input type="button" value="set speed" onclick="verifyorder()" /><br>
14+
&nbsp;<input type="text" maxlength="3" name="value" id='value' class="enter"/>
15+
<input type="button" value="Set Speed" onclick="verifyorder()" class="but" style="cursor: pointer;"/><br>
2116
<b>
22-
<font color="#fa8072">--------------------</font>
17+
<font color="#fa8072" class="line">--------------------</font>
2318
</b><br>
2419

2520

Fidget spinner Game/style.css

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,53 @@
11
body {
22
margin: 0;
33
background: #000;
4+
text-align: center;
45
}
56

67
canvas {
78
display: block;
89
margin: 0 auto;
10+
position: relative;
911
}
10-
11-
corner {
12+
h1{
13+
color: #fa8072;
14+
font-size: 2rem;
15+
}
16+
/* .corner{
1217
position: absolute;
1318
top: 5px;
1419
right: 10px;
20+
} */
21+
.enter{
22+
width: 98px;
23+
border: none;
24+
/* position: relative;
25+
top: 60px; */
26+
margin-right: 270px;
27+
margin-top: 50px;
28+
}
29+
font{
30+
position: relative;
31+
top: 47px;
32+
font-size: 1.25rem;
33+
margin-right: 267px;
34+
}
35+
.line{
36+
top: -12px;
37+
}
38+
.but{
39+
width: 100px;
40+
height: 50px;
41+
border-radius: 5px;
42+
background-color: black;
43+
color: #fa8072;
44+
position: absolute;
45+
border: 1px solid white;
46+
cursor: pointer;
47+
left: 782px;
48+
top: 130px;
49+
}
50+
.but:hover{
51+
background-color: #fa8072;
52+
color: black;
1553
}

0 commit comments

Comments
 (0)