Update plot_ph_week.html
Browse files- plot_ph_week.html +21 -5
plot_ph_week.html
CHANGED
@@ -9,12 +9,27 @@
|
|
9 |
/* Центрирование и растягивание графиков */
|
10 |
body {
|
11 |
display: flex;
|
12 |
-
justify-content: center;
|
13 |
-
align-items: center;
|
14 |
flex-direction: column;
|
|
|
15 |
margin: 0;
|
16 |
padding: 0;
|
17 |
height: 100vh;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
}
|
19 |
|
20 |
.graph-container {
|
@@ -33,8 +48,10 @@
|
|
33 |
|
34 |
<h1>Графики за <span id="week_number">{{ week_number }}</span>-ю неделю</h1>
|
35 |
|
36 |
-
<
|
37 |
-
|
|
|
|
|
38 |
|
39 |
{% if data %}
|
40 |
<div class="graph-container">
|
@@ -157,4 +174,3 @@
|
|
157 |
|
158 |
</body>
|
159 |
</html>
|
160 |
-
|
|
|
9 |
/* Центрирование и растягивание графиков */
|
10 |
body {
|
11 |
display: flex;
|
|
|
|
|
12 |
flex-direction: column;
|
13 |
+
align-items: center;
|
14 |
margin: 0;
|
15 |
padding: 0;
|
16 |
height: 100vh;
|
17 |
+
justify-content: flex-start;
|
18 |
+
}
|
19 |
+
|
20 |
+
h1 {
|
21 |
+
margin-top: 20px;
|
22 |
+
font-size: 24px;
|
23 |
+
}
|
24 |
+
|
25 |
+
.buttons {
|
26 |
+
margin: 20px 0;
|
27 |
+
}
|
28 |
+
|
29 |
+
button {
|
30 |
+
margin: 0 10px;
|
31 |
+
padding: 10px 20px;
|
32 |
+
font-size: 16px;
|
33 |
}
|
34 |
|
35 |
.graph-container {
|
|
|
48 |
|
49 |
<h1>Графики за <span id="week_number">{{ week_number }}</span>-ю неделю</h1>
|
50 |
|
51 |
+
<div class="buttons">
|
52 |
+
<button id="prev_week" onclick="navigateWeek(-1)">Предыдущая неделя</button>
|
53 |
+
<button id="next_week" onclick="navigateWeek(1)">Следующая неделя</button>
|
54 |
+
</div>
|
55 |
|
56 |
{% if data %}
|
57 |
<div class="graph-container">
|
|
|
174 |
|
175 |
</body>
|
176 |
</html>
|
|