-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
172 lines (163 loc) · 4.98 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Лабораторная работа №1 по веб-программированию</title>
<link rel="stylesheet" href="style.css" />
<script src="grapher.js"></script>
<script src="https://cdn.jsdelivr.net/npm/superagent@8.0.0/dist/superagent.min.js"></script>
<!-- JavaScript Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script>
<script src="index.js"></script>
</head>
<body>
<table>
<tr>
<td colspan="3">
<header>
<h1>
<span>Abulfatov</span>
Ruslan
</h1>
<h2>P32312, var: 3201</h2>
</header>
</td>
</tr>
<tr>
<td>
<div id="parameters" class="bordered">
<div id="xBlock">
<!-- элемент, содержащий текст, при нажатии на который меняется фокус на другой элемент -->
<label for="x">X:</label>
<div>
<input title="enter a value x" class="inputX" id="x" type="text" placeholder="range from -5 to 5" maxlength="8" />
</div>
</div>
<div id="yTable">
<label for="y">Y:</label>
<table title="enter a value y" id="y">
<tr>
<td>
<button onClick="setY(-2, this)">-2</button>
</td>
<td>
<button onClick="setY(-1.5, this)">-1.5</button>
</td>
<td>
<button onClick="setY(-1, this)">-1</button>
</td>
</tr>
<tr>
<td>
<button onClick="setY(-0.5, this)">-0.5</button>
</td>
<td>
<button onClick="setY(0, this)">0</button>
</td>
<td>
<button onClick="setY(0.5, this)">0.5</button>
</td>
</tr>
<tr>
<td>
<button onClick="setY(1, this)">1</button>
</td>
<td>
<button onClick="setY(1.5, this)">1.5</button>
</td>
<td>
<button onClick="setY(2, this)">2</button>
</td>
</tr>
</table>
</div>
<div style="height: 115px" ;id="rBlock">
<label id="labelR" for="r">R:</label>
<table title="enter a value r" id="r">
<tr>
<td>
<button onClick="setR(1, this)">1</button>
</td>
<td>
<button onClick="setR(2, this)">2</button>
</td>
<td>
<button onClick="setR(3, this)">3</button>
</td>
</tr>
<tr>
<td>
<button onClick="setR(4, this)">4</button>
</td>
<td>
<button onClick="setR(5, this)">5</button>
</td>
</tr>
</table>
</div>
<div>
<button id="check" class="actionButton" onclick="checkPoint()">check point</button>
</div>
<div>
<button class="actionButton" onclick="clean()">clean</button>
</div>
</div>
</td>
<td style="width: 400px;">
<div class="bordered canvasContainer">
<canvas style="margin-left: 4.4%;" id="graph" width="350" height="350">
<span>
<img src="./static/task_graph.png" alt="Task grpah" width="350" height="350" />
</span>
</canvas>
</div>
</td>
<td>
<table id="results" style="width: 128%;">
<thead id="thead">
<th id="attemptRow">
Attempt #
</th>
<th id="xRow">
X
</th>
<th id="yRow">
Y
</th>
<th id="rRow">
R
</th>
<th id="resultRow">
Result
</th>
<th id="attempttimeRow" style="width: 185px">
Attempt time
</th>
<th id="processingtimeRow">
Processing time
</th>
</thead>
<tbody>
</tbody>
</table>
</td>
</tr>
</table>
<img class="cat" src="./static/VeC.gif">
<!-- <table>
<tr>
<td colspan="" rowspan="">
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table> -->
</body>
</html>