-
Notifications
You must be signed in to change notification settings - Fork 0
/
sorting.html
93 lines (93 loc) · 2.41 KB
/
sorting.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>UI Testing Simulator</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" type="text/css" href="sorting/style.css" />
<link rel="stylesheet" type="text/css" href="theme/style.css" />
<link rel="icon" type="image/x-icon" href="theme/favicon.ico" />
<link
href="https://fonts.googleapis.com/css?family=Open+Sans|Roboto+Condensed&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div class="toggle-container">
<span>Day/Night</span>
<label class="toggle-switch">
<input type="checkbox" id="toggle-theme" />
<span class="toggle-slider round"></span>
</label>
</div>
<h1>Sorting</h1>
<h3>Sort data in below table by columns</h3>
<table id="myTable">
<thead>
<tr>
<th onclick="sortTable(0)">Name</th>
<th onclick="sortTable(1)">Age</th>
<th onclick="sortTable(2)">Role</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>25</td>
<td>Developer</td>
</tr>
<tr>
<td>Helene</td>
<td>26</td>
<td>AQA</td>
</tr>
<tr>
<td>Mark</td>
<td>35</td>
<td>PM</td>
</tr>
<tr>
<td>Maria</td>
<td>28</td>
<td>DevOps</td>
</tr>
<tr>
<td>Will</td>
<td>27</td>
<td>BA</td>
</tr>
<tr>
<td>Antoine</td>
<td>24</td>
<td>Developer</td>
</tr>
<tr>
<td>Justin</td>
<td>22</td>
<td>QA</td>
</tr>
<tr>
<td>Sergio</td>
<td>36</td>
<td>Lead Developer</td>
</tr>
</tbody>
</table>
<div class="button-container">
<button
onclick="location.href='hover_and_select.html'"
class="back-button"
>
Back
</button>
</div>
<script type="text/javascript" src="sorting/script.js"></script>
<script type="text/javascript" src="theme/script.js"></script>
<footer>
<div class="footer-container">
<div class="footer-content">By Toghrul Mirzayev</div>
</div>
</footer>
</body>
</html>