-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (46 loc) · 1.76 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
61
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Multilevel Line Encoding</title>
<!-- Stylesheets -->
<link rel="stylesheet" href="styles.css">
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet">
</head>
<body>
<!-- Main container -->
<div class="container">
<h1 id="header">
Multilevel Line Encoding
</h1>
<!-- tabs for encoding schemes -->
<div class="tabs">
<button class="tablinks active" onclick="selectEncoding(event, '2B1Q')">2B1Q</button>
<button class="tablinks" onclick="selectEncoding(event, '8B6T')">8B6T</button>
</div>
<!-- Tab area -->
<div id="tab-area">
<!-- Take input -->
<div id="input-data">
<input id="bitstream-input" type="text" name="bitstream" placeholder="Enter Bit Stream" size="35">
<button id="plot-button" onclick="getBitStreamAndPlot(event, document.getElementById('bitstream-input').value)">PLOT</button>
</div>
<!-- tab content area containing th graph -->
<div id="graph-area">
</div>
<!-- Explanation for the encoding -->
<div id="explanation-area">
<p id="explanation"> </p>
<img id="table" src="">
</div>
</div>
</div>
<!-- JavaScripts -->
<script rel="script" src="javascripts/main.js"></script>
<script rel="script" src="javascripts/encoding_2b1q.js"></script>
<script rel="script" src="javascripts/encoding_8b6t.js"></script>
<!-- External library for plotting graphs -->
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</body>
</html>