-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (71 loc) · 2.43 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
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- <link rel="stylesheet" href="https://pyscript.net/latest/pyscript.css" />
<script defer src="https://pyscript.net/latest/pyscript.js"></script>
<py-env>
- requests
- bs4
- tabulate
</py-env> -->
</head>
<body>
<div style="width: 350px">
<h2 class="text-center">Current Wait Time</h2>
<form action="scrape_from_hp.py" method="post">
<input type="submit" value="Submit">
</form>
<!-- <form action="/result" class="runpython" method="POST">
<center>
<input type="button" class="run_python" value="Refresh/更新" onClick="window.location.reload();">
</center>
</form> -->
<!-- <py-script src="./scrape_from_hp.py"></py-script>
<py-script src="test.py"></py-script> -->
</div>
<!-- <input type="button" id="script" name="" value="Refresh/更新" onclick="runPython()">
<script src="http://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script>
function runPython(){
$.ajax({
url: "scrape_from_hp.py",
context: document.body
}).done(function() {
alert('finished python script');;
});
}
</script> -->
<div class="container mt-3" style="width: 350px">
<table class="table table-bordered">
<thead>
<tr>
<th>階数</th>
<th>待ち時間</th>
</tr>
</thead>
<tbody>
<tr>
<td id="firstFloor"></td>
<td id="fisrtWaitTime"></td>
</tr>
</tbody>
<tbody>
<tr>
<td id="secondFloor"></td>
<td id="secondWaitTime"></td>
</tr>
</tbody>
<tbody>
<tr>
<td id="thirdFloor"></td>
<td id="thirdWaitTime"></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>