Minor Performance Improvements
This commit is contained in:
parent
6fb7b73097
commit
114cccb9f2
3 changed files with 24 additions and 10 deletions
|
|
@ -26,12 +26,6 @@ window.addEventListener("DOMContentLoaded", (evt) => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// document.querySelectorAll("[for-modal]").forEach((modalTrigerEl) => {
|
|
||||||
// let modal = document.getElementById(modalTrigerEl.getAttribute("for-modal"));
|
|
||||||
// modal.classList.remove("visible");
|
|
||||||
// modal.removeAttribute("active");
|
|
||||||
// });
|
|
||||||
|
|
||||||
document.body.addEventListener('keydown', (evt) => {
|
document.body.addEventListener('keydown', (evt) => {
|
||||||
if (evt.key == "Escape") {
|
if (evt.key == "Escape") {
|
||||||
let modal = document.querySelector(".modal[active]");
|
let modal = document.querySelector(".modal[active]");
|
||||||
|
|
|
||||||
|
|
@ -115,8 +115,7 @@
|
||||||
Defending my research of 1 <sup>1</sup>/<sub>2</sub> years in video analytics on the MLK Smart
|
Defending my research of 1 <sup>1</sup>/<sub>2</sub> years in video analytics on the MLK Smart
|
||||||
Corridor Testbed.
|
Corridor Testbed.
|
||||||
</p>
|
</p>
|
||||||
<img class="rounded large centered"
|
<img class="rounded large centered" src="/Resources/img/Vis.png">
|
||||||
src="https://visualization.utccuip.com/video_feeds/mlk-lindsay-cam-2">
|
|
||||||
</div>
|
</div>
|
||||||
<div class="card" for-modal="themekit">
|
<div class="card" for-modal="themekit">
|
||||||
<h3 class="header">Juice-UI Theme Kit</h3>
|
<h3 class="header">Juice-UI Theme Kit</h3>
|
||||||
|
|
@ -308,10 +307,31 @@
|
||||||
time</b>. This algorithm allows for many data analytics in the future, and has already
|
time</b>. This algorithm allows for many data analytics in the future, and has already
|
||||||
revealed many trends that can be addressed by the city or its members.
|
revealed many trends that can be addressed by the city or its members.
|
||||||
<h3 class="centered">
|
<h3 class="centered">
|
||||||
You can also watch an anonymized live stream below!
|
You can also watch an anonymized live stream by clicking the image below!
|
||||||
</h3>
|
</h3>
|
||||||
</p>
|
</p>
|
||||||
<img class="rounded" src="https://video-feeds.utccuip.com/mlk-houston-cam-1">
|
<script>
|
||||||
|
let streamRunning = false;
|
||||||
|
const toggleStream = (el) => {
|
||||||
|
streamRunning = !streamRunning;
|
||||||
|
if (streamRunning) {
|
||||||
|
el.src = "https://video-feeds.utccuip.com/mlk-houston-cam-1";
|
||||||
|
} else {
|
||||||
|
el.src = "/Resources/img/Anonymous.png"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<img style="cursor: pointer" class="rounded" src="/Resources/img/Anonymous.png"
|
||||||
|
onclick="toggleStream(this)">
|
||||||
|
|
||||||
|
<div class="centered" style="padding-top: 1rem; padding-bottom: 1rem">
|
||||||
|
<a href="https://video-feeds.utccuip.com/mlk-houston-cam-1" target="_blank">
|
||||||
|
<button>
|
||||||
|
<i class="fa fa-external-link"></i> Open Stream
|
||||||
|
</button>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
BIN
Resources/img/Vis.png
Normal file
BIN
Resources/img/Vis.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.5 MiB |
Loading…
Reference in a new issue