-
Notifications
You must be signed in to change notification settings - Fork 1
/
sequence.html
147 lines (137 loc) · 6.44 KB
/
sequence.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
135
136
137
138
139
140
141
142
143
144
145
146
147
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css">
<link rel="icon" href="img/icon.png" type="image/png">
<title>สุ่มในห้องเรียน | สุ่มลำดับ</title>
</head>
<body class="bg-light">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark" aria-label="Eighth navbar example">
<div class="container">
<a class="navbar-brand" href="index.html">
<img class="mr-2" src="img/icon.png" height="32">
สุ่มในห้องเรียน
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarsExample07"
aria-controls="navbarsExample07" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarsExample07">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item active">
<a class="nav-link" aria-current="page" href="index.html">หน้าแรก</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="dropdown07" data-bs-toggle="dropdown"
aria-expanded="false">สุ่ม</a>
<ul class="dropdown-menu" aria-labelledby="dropdown07">
<li><a class="dropdown-item" href="seat.html">สุ่มที่นั่ง</a></li>
<li><a class="dropdown-item" href="group.html">สุ่มการจับกลุ่ม</a></li>
<li><a class="dropdown-item" href="sequence.html">สุ่มลำดับ</a></li>
<li><a class="dropdown-item" href="keywordChallenge.html" target="_blank">Keyword
challenge</a></li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link" href="about.html">ผู้จัดทำ</a>
</li>
<li class="nav-item">
<a class="nav-link" href="en/index.html">english</a>
</li>
</ul>
</div>
</div>
</nav>
<main>
<section class="py-5 container-fluide bg-white">
<div class="row py-lg-5 section-header">
<div class="col">
<div class="row justify-content-md-center">
<div class="col-lg-5 col-md-5 text-left align-self-center">
<h1 class="font-weight-light display-3">สุ่มลำดับ</h1>
<p class="lead text-muted">สำหรับการจัดลำดับการนำเสนอโดยสามารถกำหนดเงื่อนไข เช่น
ต้องการนำเสนอก่อน ต้องการนำเสนอหลัง หรือไม่ต้องการนำเสนอ
รูปแบบผลลัพธ์จะออกมาตามลำดับการนำเสนอที่ถูกกำหนดเงื่อนไขไว้</p>
</div>
<div class="col-lg-3 col-md-3">
<img src="img/6.gif" width="100%">
</div>
</div>
</div>
</div>
</section>
<div class="container">
<div class="row">
<div class="col-md-6">
<form class="needs-validation" action="#result">
<div class="mb-3 mt-3">
<label for="quantityStudents" class="form-label">จำนวนคนในห้อง</label>
<input class="form-control" id="quantityStudents" value="24" required="">
</div>
<div class="mb-3 form-check">
<input class="form-check-input" type="checkbox" value="" id="showIndex" checked="">
<label class="form-check-label" for="showIndex">
ใส่ลำดับ
</label>
</div>
<div class="mb-3 form-check">
<input class="form-check-input" type="checkbox" value="" id="checkCondition"
onclick="checkConditionFunc()">
<label class="form-check-label" for="checkCondition">
มีเงื่อนไข
</label>
</div>
<div id="conditionCheckedDiv" style="display:none">
<div class="mb-3">
<label for="startSequence" class="form-label">เลขที่ที่ต้องการเริ่มก่อน</label>
<input class="form-control" id="startSequence" placeholder="เลขที่ เช่น 1,2,3...">
</div>
<div class="mb-3">
<label for="endSequence" class="form-label">เลขที่ที่ต้องการเริ่มหลัง</label>
<input class="form-control" id="endSequence" placeholder="เลขที่ เช่น ...22,23,24">
</div>
<div class="mb-3">
<label for="unuseSequence" class="form-label">เลขที่ที่ไม่พร้อมนำเสนอ</label>
<input class="form-control" id="unuseSequence" placeholder="เลขที่ เช่น 2,4,8...">
</div>
</div>
<div class="mt-3">
<button type="button" class="btn btn-primary" onclick="randomFunc()">สุ่ม</button>
<button type="button" class="btn btn-secondary" onclick="clearResult()">ล้าง</button>
</div>
</form>
</div>
<div class="col-md-6">
<div class="mb-3 mt-3 h-100">
<label for="result" class="form-label">ผลลัพธ์</label>
<textarea class="form-control h-100" aria-label="result" id="result" disabled=""></textarea>
</div>
</div>
</div>
</div>
</main>
<footer class="container my-5 pt-5 text-muted text-center text-small">
<hr class="footer-divider">
<p class="mb-1">© 2020 TulipTGR and Team</p>
<ul class="list-inline">
<li class="list-inline-item"><a href="https://github.com/tuliptgr/randominclass" target="_blank">Github</a>
</li>
<li class="list-inline-item"><a href="https://github.com/tuliptgr/randominclass/issues"
target="_blank">รายงานปัญหา</a></li>
</ul>
</footer>
<!-- Optional JavaScript -->
<!-- Popper.js first, then Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
<script src="js/sequence.js"></script>
<script src="js/script.js"></script>
</body>
</html>