Ver 1.2
This commit is contained in:
+30
-38
@@ -5,7 +5,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Лабораторная работа №1</title>
|
<title>Лабораторная работа №1</title>
|
||||||
<style>
|
<style>
|
||||||
/* Демонстрация наследования (Inheritance) - шрифт наследуется всеми элементами */
|
|
||||||
body {
|
body {
|
||||||
font-family: Arial, sans-serif;
|
font-family: Arial, sans-serif;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
@@ -14,80 +14,74 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Селектор идентификатора (ID Selector) */
|
|
||||||
#layout-table {
|
#layout-table {
|
||||||
width: 800px;
|
width: 800px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Селектор элементов (Element selector) */
|
|
||||||
table, th, td {
|
table, th, td {
|
||||||
border: 1px solid #000000;
|
border: 1px solid #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Оформление шапки: Явным образом задать шрифт (monospace), цвет и размер */
|
|
||||||
#header {
|
#header {
|
||||||
background-color: #eeeeee;
|
background-color: #eeeeee;
|
||||||
color: #000000; /* Каскадирование */
|
color: #000000; /* Каскадирование */
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Каскадирование (Cascading) */
|
|
||||||
#header span.variant {
|
#header span.variant {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #cc0000;
|
color: #cc0000;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Селектор классов (Class selector) */
|
|
||||||
.content-cell {
|
.content-cell {
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Селектор дочерних элементов (Child Selector `>`) */
|
|
||||||
#point-form > .form-group {
|
#point-form > .form-group {
|
||||||
margin-bottom: 20px; /* Отступы в px */
|
margin-bottom: 20px;
|
||||||
padding: 10px; /* Отступы в px */
|
padding: 10px;
|
||||||
border: 1px dashed #aaaaaa;
|
border: 1px dashed #aaaaaa;
|
||||||
}
|
}
|
||||||
|
|
||||||
.checkbox-group label {
|
.checkbox-group label {
|
||||||
margin-right: 15px; /* Отступ в px */
|
margin-right: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#point-form input[type="text"] {
|
#point-form input[type="text"] {
|
||||||
margin-left: 10px; /* Отступ в px */
|
margin-left: 10px;
|
||||||
padding: 4px; /* Отступ в px */
|
padding: 4px;
|
||||||
width: 120px;
|
width: 120px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.r-button {
|
.r-button {
|
||||||
margin-right: 10px; /* Отступ в px */
|
margin-right: 10px;
|
||||||
padding: 5px 10px; /* Отступ в px */
|
padding: 5px 10px;
|
||||||
background-color: #dddddd;
|
background-color: #dddddd;
|
||||||
border: 1px solid #888888;
|
border: 1px solid #888888;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.r-button.active {
|
.r-button.active {
|
||||||
background-color: #888888;
|
background-color: #888888;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
#submit-btn {
|
#submit-btn {
|
||||||
margin-top: 15px; /* Отступ в px */
|
margin-top: 15px;
|
||||||
padding: 8px 16px; /* Отступ в px */
|
padding: 8px 16px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clear-history-btn {
|
#clear-history-btn {
|
||||||
padding: 5px 10px; /* Отступ в px */
|
padding: 5px 10px;
|
||||||
margin-bottom: 10px; /* Отступ в px */
|
margin-bottom: 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -95,13 +89,13 @@
|
|||||||
color: red;
|
color: red;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 5px; /* Отступ в px */
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.global-error {
|
.global-error {
|
||||||
color: red;
|
color: red;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-bottom: 10px; /* Отступ в px */
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-scroll-container {
|
.table-scroll-container {
|
||||||
@@ -111,11 +105,11 @@
|
|||||||
|
|
||||||
#results-table th {
|
#results-table th {
|
||||||
background-color: #eeeeee;
|
background-color: #eeeeee;
|
||||||
padding: 8px; /* Отступ в px */
|
padding: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#results-table td {
|
#results-table td {
|
||||||
padding: 8px; /* Отступ в px */
|
padding: 8px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -123,7 +117,6 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Пасхалка */
|
|
||||||
#oscar-easter-egg {
|
#oscar-easter-egg {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: -350px;
|
bottom: -350px;
|
||||||
@@ -142,8 +135,8 @@
|
|||||||
<table id="layout-table">
|
<table id="layout-table">
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" id="header">
|
<td colspan="2" id="header">
|
||||||
<span>ФИО: <b>Кливцов Александр Александрович</b></span> |
|
<span>ФИО: <b>Кливцов Александр Александрович</b></span> |
|
||||||
<span>Группа: <b>P3215</b></span> |
|
<span>Группа: <b>P3215</b></span> |
|
||||||
<span class="variant">Вариант: 12729</span>
|
<span class="variant">Вариант: 12729</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -156,7 +149,7 @@
|
|||||||
<td class="content-cell">
|
<td class="content-cell">
|
||||||
<h3>Форма проверки</h3>
|
<h3>Форма проверки</h3>
|
||||||
<form id="point-form">
|
<form id="point-form">
|
||||||
|
|
||||||
<div class="global-error" id="global-error"></div>
|
<div class="global-error" id="global-error"></div>
|
||||||
|
|
||||||
<div class="form-group" id="x-group">
|
<div class="form-group" id="x-group">
|
||||||
@@ -173,13 +166,13 @@
|
|||||||
<label><input type="checkbox" name="xval" value="2"> 2</label>
|
<label><input type="checkbox" name="xval" value="2"> 2</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group" id="y-group">
|
<div class="form-group" id="y-group">
|
||||||
<label for="y-input"><b>Изменение Y:</b></label>
|
<label for="y-input"><b>Изменение Y:</b></label>
|
||||||
<input type="text" id="y-input" name="yval" placeholder="-3 ... 5">
|
<input type="text" id="y-input" name="yval" placeholder="-3 ... 5">
|
||||||
<span class="error" id="y-error"></span>
|
<span class="error" id="y-error"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group" id="r-group">
|
<div class="form-group" id="r-group">
|
||||||
<label><b>Изменение R:</b></label><br>
|
<label><b>Изменение R:</b></label><br>
|
||||||
<button type="button" class="r-button" data-val="1">1</button>
|
<button type="button" class="r-button" data-val="1">1</button>
|
||||||
@@ -190,7 +183,7 @@
|
|||||||
<input type="hidden" id="r-hidden" name="rval" value="">
|
<input type="hidden" id="r-hidden" name="rval" value="">
|
||||||
<span class="error" id="r-error"></span>
|
<span class="error" id="r-error"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button type="submit" id="submit-btn" disabled>Проверить попадание</button>
|
<button type="submit" id="submit-btn" disabled>Проверить попадание</button>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
@@ -199,7 +192,7 @@
|
|||||||
<td colspan="2" class="content-cell">
|
<td colspan="2" class="content-cell">
|
||||||
<h3>История проверок</h3>
|
<h3>История проверок</h3>
|
||||||
<button type="button" id="clear-history-btn">Очистить историю</button>
|
<button type="button" id="clear-history-btn">Очистить историю</button>
|
||||||
|
|
||||||
<div class="table-scroll-container">
|
<div class="table-scroll-container">
|
||||||
<table id="results-table">
|
<table id="results-table">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -220,8 +213,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<!-- Пасхалка -->
|
|
||||||
<img id="oscar-easter-egg" src="assets/oscar.png" alt="Toasty">
|
<img id="oscar-easter-egg" src="assets/oscar.png" alt="Toasty">
|
||||||
<script src="script.js"></script>
|
<script src="script.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user