Skip to content

Commit

Permalink
Merge pull request #381 from HyunjunA/infvisfrontendmlbackend
Browse files Browse the repository at this point in the history
Update web
  • Loading branch information
HyunjunA authored Nov 3, 2022
2 parents 3e406cd + 9a0f06d commit d21e39f
Show file tree
Hide file tree
Showing 154 changed files with 119,259 additions and 0 deletions.
1,814 changes: 1,814 additions & 0 deletions raspberrypi /JSfiles/Aliro copy.js

Large diffs are not rendered by default.

4,159 changes: 4,159 additions & 0 deletions raspberrypi /JSfiles/Aliro.js

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions raspberrypi /JSfiles/backgroundOverlayeffect.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
function on() {
document.getElementById("overlay").style.display = "block";
}

function off() {
document.getElementById("overlay").style.display = "block";
}







// wait until document.getElementById("overlay") is loaded
// then run the on() function

document.getElementById("overlay").addEventListener("load", on());
36 changes: 36 additions & 0 deletions raspberrypi /JSfiles/carousel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
let slideIndex = 1;
showSlides(slideIndex);

// Next/previous controls
function plusSlides(n) {
showSlides(slideIndex += n);
}

// Thumbnail image controls
function currentSlide(n) {
showSlides(slideIndex = n);
}

function showSlides(n) {
let i;
let slides = document.getElementsByClassName("mySlides");
console.log("slides",slides);
let dots = document.getElementsByClassName("dot");
if (n > slides.length) {slideIndex = 1}
if (n < 1) {slideIndex = slides.length}
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}

// wait until slides[(slideIndex - 1)] is defined
if (slides[(slideIndex - 1)]) {
slides[(slideIndex - 1)].style.display = "block";
dots[(slideIndex - 1)].className += " active";
}

// slides[slideIndex-1].style.display = "block";
// dots[slideIndex-1].className += " active";
}
1 change: 1 addition & 0 deletions raspberrypi /JSfiles/d3-3d.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d21e39f

Please sign in to comment.