-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (54 loc) · 1.44 KB
/
index.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
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
<!--Author: Kishin Karra
github: https://github.com/killroywashere
-->
<script src="scripts.js"></script>
<div class="main">
<style>
body {
margin: 0;
}
.main {
width: 100vw;
height: 100vh;
overflow: hidden;
display: flex;
justify-content: center;
background-color: #b1b1b1;
align-items: center;
flex-direction: column;
}
.download-button,
.cancel-button {
background: #1b1b1b;
border: none;
border-radius: 10px;
width: 300px;
height: 100px;
color: #b1b1b1;
display: block;
margin: 10px;
cursor: pointer;
font-size: larger;
outline: none;
}
.cancel-button {
display: none;
}
.title {
color: #1b1b1b;
}
.description {
color: #1b1b1b;
}
</style>
<div class="title">
<h1>Fetch request API Demo</h1>
</div>
<div class="description">
<h3>Open network and observe actions after start and cancel button click</h3>
</div>
<button class="download-button" id="startBtn" onclick="startClicked()">Start Download</button>
<button class="cancel-button" id="cancelBtn" onclick="cancelClicked()"> Cancel Download</button>
<div id="error">
</div>
</div>