-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
105 lines (104 loc) · 4.24 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Object Detection</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="style/micromodal.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js"></script>
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js"></script>
<script src="https://unpkg.com/micromodal/dist/micromodal.min.js"></script>
<script>
MicroModal.init({
onShow: modal => console.info(`${modal.id} is shown`), // [1]
onClose: modal => console.info(`${modal.id} is hidden`), // [2]
openTrigger: 'data-custom-open', // [3]
closeTrigger: 'data-custom-close', // [4]
openClass: 'is-open', // [5]
disableScroll: true, // [6]
disableFocus: false, // [7]
awaitOpenAnimation: false, // [8]
awaitCloseAnimation: false, // [9]
debugMode: true // [10]
});
</script>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="style/index.css">
</head>
<body>
<div class="container">
<nav class="navbar navbar-expand navbar-light bg-light">
<div class="nav navbar-nav">
<a class="nav-item nav-link active" href="#">Surveillance Dashboard</a>
<a class="nav-item nav-link" href="#">Start</a>
</div>
</nav>
<div class="row">
<div class="col">
<div id="state"><h3>Current camera:</h3></div>
</div>
<div class="col-sm">
<h3 style="margin-top: 24px;">Latest Detections:</h3>
<table class="table">
<thead class="">
<tr class>
<th>ID:</th>
<th>Objects:</th>
<th>Confidences:</th>
<th>Date:</th>
<th>Time:</th>
</tr>
</thead>
<tbody id="latest">
</tbody>
</table>
</div>
</div>
<div>
<div class="row">
<div class="col">
<h2>More Cameras:</h2>
<div class="row" id="cameras">
</div>
</div>
</div>
</div>
</div>
<div class="modal micromodal-slide" id="latestDetectionModal" aria-hidden="true">
<div class="modal__overlay" tabindex="-1" data-micromodal-close>
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="latestDetectionModal-title">
<header class="modal__header">
<h2 class="modal__title" id="latestDetectionModal-title">
Micromodal
</h2>
<button class="modal__close" aria-label="Close modal" data-micromodal-close></button>
</header>
<main class="modal__content" id="latestDetectionModal-content">
<p>
Try hitting the <code>tab</code> key and notice how the focus stays within the modal itself. Also, <code>esc</code> to close modal.
</p>
</main>
<footer class="modal__footer">
<!--<button class="modal__btn modal__btn-primary">Continue</button>-->
<button class="modal__btn" data-micromodal-close aria-label="Close this dialog window">Close</button>
</footer>
</div>
</div>
</div>
<script src="src/domain/model/Camera/CameraConfiguration.js"></script>
<script src="src/domain/model/Camera/Camera.js"></script>
<script src="src/domain/model/Frontend/CameraListRenderer.js"></script>
<script src="src/domain/model/Frontend/LatestDetectionRenderer.js"></script>
<script src="src/domain/model/Detection/DetectionDate.js"></script>
<script src="src/domain/model/mockDatabase/MockDatabase.js"></script>
<script src="src/domain/model/Repositories/DetectionRepository.js"></script>
<script src="src/domain/model/Detection/Detection.js"></script>
<script src="src/SecurityCam.js"></script>
</body>
</html>