-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvstupcalc2023.html
134 lines (114 loc) · 6.88 KB
/
vstupcalc2023.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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet" />
<link rel="icon" type="image/x-icon" href="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQTivZcu4GqtivrgSK95k66R3Uj_twqChSSVXuP2UdE1RhZsRXfZ1Y8MHY3d8jAHio0RFs&usqp=CAU">
<title>Розрахувати КБ НМТ-2023</title>
<style>
body {
font-family: Ubuntu;
}
code {
color: #007bff;
}
</style>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-QLT0S2L96S"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-QLT0S2L96S');
</script>
</head>
<body>
<div class="text-center mt-4 mb-4 ml-4 mr-4">
<h3 class="mb-0">РОЗРАХУНОК КОНКУРСНОГО БАЛУ</h3>
<h2 class="mb-0"><b>НМТ-2023</b></h2>
<p class="text-muted"><code><b>Галузь 12 — Інформаційні технології</b></code></p>
<form class="mt-4 mb-4" id="calcKB">
<div class="form-group">
<label for="p1">Українська мова <b>(К1 = 0,3)</b></label>
<input type="number" min="0" max="200" step="1" class="form-control" id="p1" required="true" placeholder="Оцінка (П1)">
</div>
<div class="form-group">
<label for="p2">Математика <b>(К2 = 0,5)</b></label>
<input type="number" min="0" max="200" step="1" class="form-control" id="p2" required="true" placeholder="Оцінка (П2)">
</div>
<div class="form-group">
<label for="k3">Третій предмет</label>
<select class="form-control" id="k3" required="true">
<option value="0.2">Історія України (К3 = 0,2)</option>
<option value="0.3">Іноземна мова (К3 = 0,3)</option>
<option value="0.2">Біологія (К3 = 0,2)</option>
<option value="0.4">Фізика (К3 = 0,4)</option>
<option value="0.2">Хімія (К3 = 0,2)</option>
</select>
</div>
<div class="form-group">
<input type="number" min="0" max="200" step="1" class="form-control" id="p3" required="true" placeholder="Оцінка (П3)">
</div>
<div class="form-group">
<code><b>Конкурсний бал (КБ) = (К1 × П1 + К2 × П2 + К3 × П3) / (К1 + К2 + К3)</b></code>
</br>
<small><b><code>Не враховує регіональний та галузевий коефіцієнти!</code></b></small>
</div>
<button type="submit" class="btn btn-warning btn-block"><b>Розрахувати</b></button>
</form>
<div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="modalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modalLabel">Конкурсний бал НМТ-2023</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p class="h4">Орієнтовний конкурсний бал:</p>
<p class="h3" id="kb" style="color: #dc3545; font-weight: bold;">0</p>
<p class="mb-0">Без урахування регіонального та галузевого коефіцієнтів!</p>
<p class="text-muted">Використовуйте тільки для ознайомчих цілей! Остаточний конкурсний бал може відрізнятись!</p>
</div>
</div>
</div>
</div>
<p class="mt-4 mb-0">
<a href="https://web.kpi.kharkov.ua/asu/uk/" target="_blank">Кафедра програмної інженерії та інтелектуальних технологій управління</a>
</br>
<b>НТУ "ХПІ"</b>
</p>
<p class="text-muted">
<small><b><u>УВАГА! Тільки для ознайомчих цілей! Остаточний конкурсний бал може відрізнятись!</u></b></small>
</br>
<small>Розроблено на основі <a href="https://mon.gov.ua/storage/app/media/vishcha-osvita/vstup-2023/15.03.2023/Nakaz.MON.276.vid.15-03-2023-yustovanyy.pdf" target="_blank">Порядку прийому на навчання для здобуття вищої освіти в 2023 році</a></small>
</p>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js" integrity="sha512-3gJwYpMe3QewGELv8k/BX9vcqhryRdzRMxVfq6ngyWXwo03GFEzjsUm8Q7RZcHPHksttq7/GFoxjCVUjkjvPdw==" crossorigin=" anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<script>
$("#calcKB").on("submit", function() {
try {
const k1 = 0.3;
const k2 = 0.5;
const k3 = Number.parseFloat($("#k3").val().trim());
const p1 = Number.parseFloat($("#p1").val().trim());
const p2 = Number.parseFloat($("#p2").val().trim());
const p3 = Number.parseFloat($("#p3").val().trim());
const kb = (k1 * p1 + k2 * p2 + k3 * p3) / (k1 + k2 + k3);
$("#kb").text(kb.toFixed(3));
$("#modal").modal("show");
} catch {
$("#kb").text("Упс! Помилка :(");
}
return false;
});
</script>
</body>
</html>