lazy loading certifiaction images

This commit is contained in:
2020-03-27 19:27:08 +01:00
parent 1d18344f38
commit 231772d4f8
6 changed files with 478 additions and 476 deletions

14
js/cert.js Normal file
View File

@@ -0,0 +1,14 @@
//Certification show
var modal = document.getElementById("myModal");
var modalImg = document.getElementById("modalImage1");
function modalImg() {
modal.style.display = "block";
modalImg.src = this.src;
}
// When the user clicks on <span> (x), close the modal
var span = document.getElementsByClassName("close")[0];
span.onclick = function () {
modal.style.display = "none";
};