-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
57 lines (43 loc) · 1.95 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Huffman</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<script src="script.js" type="module"></script>
</head>
<body onload="process()">
<nav class="navbar navbar-light" style="font-size: 25px; font-family: sans-serif; background-color: whitesmoke; text-align: center;">
<p style="margin: 0 auto;">Huffman Encoding</p>
</nav>
<div id="container">
<div class="text_box1" style="overflow-y: scroll;overflow-x: scroll;">
<canvas id="myCanvas"></canvas>
</div>
<div class="text_box2" style="overflow-y: scroll">
<span id="temptext" style="width: 100%; text-align: center; font-size: x-large;">
Operation info will be shown here !!
</span>
</div>
</div>
<div>
<br>
<div style="display: flex; justify-content: center; align-items: center; ">
<form method="post" enctype="multipart/form-data" style="display: inline-block;">
<input type="file" id="uploadedFile" />
</form>
</div>
<br>
<div style="display: flex; justify-content: center;">
<button type="button" class="btn btn-success center_buttons" id="encode">
Encode
</button>
<button type="button" class="btn btn-danger center_buttons" id="decode">
Decode
</button>
</div>
</div>
</body>
</html>