-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (63 loc) · 4.84 KB
/
index.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
<!DOCTYPE html>
<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"/>
<link rel="stylesheet" href="styles.css"/>
<title>Тестовое Задание</title>
</head>
<body>
Задача: отобразить таблицу размером 5 на 4. По оси X ячейки именуются буквами, по оси Y числами.<br></br>
Следом требуется заполнить таблицу результатами выражений, которые в свою очередь будут демонстрироваться после решения покинуть ячейку.<br></br>
Итогом должна быть возможность использовать результаты выражений из ячеек таблицы в других ячейках этой таблицы.<br></br>
<br></br>
<table class="tg">
<thead>
<tr>
<td class="tg-letters"></td>
<td class="tg-letters">A</td>
<td class="tg-letters">B</td>
<td class="tg-letters">C</td>
<td class="tg-letters">D</td>
<td class="tg-letters">F</td>
</tr>
</thead>
<tbody>
<tr>
<td class="tg-numbers">1</th>
<th class="tg-js-script" contenteditable="true" onmouseenter="showResult(this)" onmouseleave="showExpression(this)" id="A1"></th>
<th class="tg-js-script" contenteditable="true" onmouseenter="showResult(this)" onmouseleave="showExpression(this)" id="B1"></th>
<th class="tg-js-script" contenteditable="true" onmouseenter="showResult(this)" onmouseleave="showExpression(this)" id="C1"></th>
<th class="tg-js-script" contenteditable="true" onmouseenter="showResult(this)" onmouseleave="showExpression(this)" id="D1"></th>
<th class="tg-js-script" contenteditable="true" onmouseenter="showResult(this)" onmouseleave="showExpression(this)" id="F1"></th>
</tr>
<tr>
<td class="tg-numbers">2</th>
<th class="tg-js-script" contenteditable="true" onmouseenter="showResult(this)" onmouseleave="showExpression(this)" id="A2"></th>
<th class="tg-js-script" contenteditable="true" onmouseenter="showResult(this)" onmouseleave="showExpression(this)" id="B2"></th>
<th class="tg-js-script" contenteditable="true" onmouseenter="showResult(this)" onmouseleave="showExpression(this)" id="C2"></th>
<th class="tg-js-script" contenteditable="true" onmouseenter="showResult(this)" onmouseleave="showExpression(this)" id="D2"></th>
<th class="tg-js-script" contenteditable="true" onmouseenter="showResult(this)" onmouseleave="showExpression(this)" id="F2"></th>
</tr>
<tr>
<td class="tg-numbers">3</th>
<th class="tg-js-script" contenteditable="true" onmouseenter="showResult(this)" onmouseleave="showExpression(this)" id="A3"></th>
<th class="tg-js-script" contenteditable="true" onmouseenter="showResult(this)" onmouseleave="showExpression(this)" id="B3"></th>
<th class="tg-js-script" contenteditable="true" onmouseenter="showResult(this)" onmouseleave="showExpression(this)" id="C3"></th>
<th class="tg-js-script" contenteditable="true" onmouseenter="showResult(this)" onmouseleave="showExpression(this)" id="D3"></th>
<th class="tg-js-script" contenteditable="true" onmouseenter="showResult(this)" onmouseleave="showExpression(this)" id="F3"></th>
</tr>
<tr>
<td class="tg-numbers">4</th>
<th class="tg-js-script" contenteditable="true" onmouseenter="showResult(this)" onmouseleave="showExpression(this)" id="A4"></th>
<th class="tg-js-script" contenteditable="true" onmouseenter="showResult(this)" onmouseleave="showExpression(this)" id="B4"></th>
<th class="tg-js-script" contenteditable="true" onmouseenter="showResult(this)" onmouseleave="showExpression(this)" id="C4"></th>
<th class="tg-js-script" contenteditable="true" onmouseenter="showResult(this)" onmouseleave="showExpression(this)" id="D4"></th>
<th class="tg-js-script" contenteditable="true" onmouseenter="showResult(this)" onmouseleave="showExpression(this)" id="F4"></th>
</tr>
</tbody>
</table>
<script src="test-table.js"></script>
</body>
</html>