-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
157 lines (147 loc) · 5.92 KB
/
index.php
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!DOCTYPE html>
<?php
require_once 'include/container_list.php';
?>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Algorithm and structure visualisation</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="menu_style.css" />
<link rel="stylesheet" href="footer_style.css" />
<link rel="stylesheet" href="context_menu.css" />
<link rel="stylesheet" href="scene_buttons.css" />
<link rel="stylesheet" href="modal_add.css" />
<link rel="stylesheet" href="modal_style.css" />
<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">
</head>
<body>
<!--Student mode-->
<div class="operator noselect">
<div id="header">
<a href="https://docs.google.com/document/d/1XLAZdkhXMICz04Prm55il91juayJTq0PcrHI58SgI8U/edit?usp=sharing" id="info-symbol" target="_blank">Инструкция пользователя</a>
</div>
<!--Drawing window-->
<div id="drawing">
<div class="menu-draw" id="menu-draw">
<div class="column">
<button class="btn btn2" id="btn-prev-scene">Назад</button>
</div>
<div class="showing-scene" id="show-scene">
<!--img class="editor" id="current-scene" border-image="none"-->
</div>
<div class="column">
<button class="btn btn2" id="btn-next-scene">Вперёд</button>
</div>
</div>
<!--Structures menu-->
<div id="structures-col">
<ul class="menu" id="available-containers">
<?php foreach ($containers as $container):
$id = strval($container["id"]);
?>
<li class="one-container" id=<?=$id?>><?=$container["container_name"]?></li>
<ul class="algorithm-list" id=<?="alg".$id?>></ul>
<?php endforeach; ?>
</ul>
</ul>
</div>
</div>
<!--Footer-->
<div id="footer">
<div class="container">
<button class="btn btn2" id="watch-scenes">Посмотреть алгоритм</button>
<button class="btn btn2" id="no-alg2">Сбросить</button>
<button class="btn btn4" id="op_button"> <a href="login.html" class="btn-ref">Войти в режим оператора</a></button>
</div>
</div>
<!--Context menu for show info-->
<nav class="context-menu" id="my-menu-student">
<ul class="context-menu__items">
<li class="context-menu__item">
<a href="#" class="context-menu__link" id="show-info">
<i class="fa fa-eye"></i> Посмотреть информацию
</a>
</li>
</ul>
</nav>
<!--Context menu for a scene-->
<nav class="context-menu" id="scene-menu">
<ul class="context-menu__items">
<li class="context-menu__item">
<a href="#" class="context-menu__link" id="show-scene-button">
<i class="fa fa-eye"></i> Показать сцену
</a>
</li>
</ul>
</div>
<!--Modal window for displaying info about structures-->
<div id="list1Modal" class="modal">
<div class="modal-content">
<div class="modal-header">
<span class="closeBtn" id="cross0">×</span>
<h2 id="cont-name"></h2>
</div>
<div class="modal-body">
<p id="cont-descr"></p>
</div>
<div class="modal-footer">
<h3> </h3>
</div>
</div>
</div>
<!--Modal window for displaying info about an algorithm-->
<div id="modal-alg-info" class="modal">
<div class="modal-content" id="modal-alg-info-content">
<div class="modal-header">
<span class="closeBtn" id="cross5">×</span>
<h2 id="alg-name-info"></h2>
</div>
<div class="modal-body">
<p id="alg-descr"></p>
<h4>Сложность алгоритма:</h4>
<p id="alg-diff"></p>
</div>
<div class="modal-footer">
<h3> </h3>
</div>
</div>
</div>
<!--Dialog window for showing a scene-->
<div class="modal" id="modal-show-scene">
<div class="modal-content">
<div class="modal-header">
<span class="cross" id="cross6">×</span>
<h2>Просмотр сцены</h2>
</div>
<div class="show-scene-wrap">
<p class="modal-body" id="show-scene"></p></div>
<div class="modal-footer">
<h3> </h3>
</div>
</div>
</div>
<!--Modal window for telling the user there are no scenes in algorithm-->
<div id="modal-no-scenes" class="modal">
<div class="modal-content">
<div class="modal-header">
<span class="closeBtn" id="cross7">×</span>
<h2>Ошибка</h2>
</div>
<div class="modal-body">
<p>Нет сцен для показа!</p>
</div>
<div class="modal-footer">
<h3> </h3>
</div>
</div>
</div>
<!--Scripts-->
<script src="student_alg_list.js" type="text/javascript"></script>
<script src="student_modal.js" type="text/javascript"></script>
<script src="student_context_menu.js" type="text/javascript"></script>
<script src="student_scene_list.js" type="text/javascript"></script>
</body>
</html>