-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
104 lines (86 loc) · 4.01 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title> Расчет средней длины сообщения </title>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
</head>
<body>
<script src = "decimal.js"></script>
<script src = "workspace.js"></script>
<script src = "ui.js"></script>
<script src = "shannon_fano.js"></script>
<script src = "huffman.js"></script>
<!-- ??? Layout gets squished when generating new, longer sequences -->
<!-- !!! No clue as to why -->
<div class = "msglen_layout">
<div id = "probs_box" class = "scrollbar">
<div id = "prob_template" class = "prob_entry prob_entry_width template">
<div class = "prob_name">
<span class = "prob_op"> p( </span>
<span class = "prob_var"> x </span>
<span class = "prob_index"> 1 </span>
<span class = "prob_op"> ) </span>
</div>
<input class = "prob_input" inputmode="numeric" type="text" value="0.0">
<img src = "res/remove.svg" class = "prob_edit_icon remove_prob_button">
</div>
<div id = "add_prob_button" class = "add_prob_button prob_entry_width">
<img src = "res/add.svg" class = "prob_edit_icon">
<div class = "add_prob_button_text noselect"> Добавить p(x) </div>
</div>
<div id = "symbol_multiply" class = "prob_entry prob_entry_width">
<div class = "prob_name">
Кратность
</div>
<input class = "prob_input" id = "symbol_multiply_input" inputmode="numeric" step="1" min="1" type="text" value="1">
</div>
<div id = "error_msg" class = "add_prob_button prob_entry_width error_msg template">
<div id = "error_msg_text" class = "noselect"> ??? </div>
</div>
<div id = "mult_error_msg" class = "add_prob_button prob_entry_width error_msg template">
<div id = "mult_error_msg_text" class = "noselect"> Некорректная кратность </div>
</div>
<div id = "clear_messages_button" class = "add_prob_button prob_entry_width">
<img src = "res/clear.svg" class = "prob_edit_icon">
<div class = "add_prob_button_text noselect"> Очистить </div>
</div>
<div id = "button_template" class = "add_prob_button prob_entry_width template">
<img src = "res/ok.svg" class = "prob_edit_icon">
<div class = "add_prob_button_text noselect"> ??? </div>
</div>
<div id = "github_button" class = "add_prob_button prob_entry_width">
<img src = "res/github-mark-white.svg" class = "prob_edit_icon">
<div class = "add_prob_button_text noselect"> f3d0rov/msglen </div>
</div>
<div id = "probs_box_padder" class = "prob_entry_width"></div>
</div>
<div class = "msglen_workspace scrollbar">
<div class = "workspace_loading template" id = "loading_overlay">
<div class = "workspace_loading_bg"></div>
<img src = "res/spinner.svg" class = "workspace_spinner">
</div>
<div id = "show_messages_button" class = "">
<img src="res/back.svg" class = "show_messages_button_icon">
</div>
<span class = "workspace_indexed_var template" id = "workspace_indexed_var_template">
<span class = "ws_var"> f </span>
<span class = "ws_index"> 3 </span>
</span>
<div class = "workspace_table template" id = "workspace_table_template">
<div class = "table_title"></div>
<table class = "workspace_table_table">
</table>
</div>
<div class = "workspace_table_group template" id = "workspace_table_group_template">
<div class = "workspace_table_group_title"></div>
</div>
<div class = "workspace_space" id = "workspace_space">
</div>
</div>
</div>
</body>
</html>