html
html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Stopwatch</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>Stopwatch</h1>
<div id="time">
<span class="digit" id="hr">
00</span>
<span class="txt">Hr</span>
<span class="digit" id="min">
00</span>
<span class="txt">Min</span>
<span class="digit" id="sec">
00</span>
<span class="txt">Sec</span>
<span class="digit" id="count">
00</span>
</div>
<div id="buttons">
<button class="btn" id="start">
Start</button>
<button class="btn" id="stop">
Enter to Rename, Shift+Enter to Preview
css
css
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
body {
padding: 0;
margin: 0;
font-family: verdana;
}
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100vh;
background-color: rgb(0, 61, 61);
}
h1 {
color: white;
text-align: center;
font-size: 35px;
margin-top:-70px;
}
.digit {
font-size: 30px;
color: #fff;
}
Enter to Rename, Shift+Enter to Preview
js
js
1
alert ("Pls subscribe my channel 😄🫶")
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Запуск