Update index.html

This commit is contained in:
Innovation Inc 2019-09-18 14:11:32 -05:00 committed by GitHub
parent 1aa2712526
commit 0d05a1d8b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,18 +64,18 @@
<tr> <tr>
<td> <td>
<script> <script>
var current= new Date() var current= new Date();
var month=current.getMonth() var month=current.getMonth();
var date=current.getDate() var date=current.getDate();
document.write("DEBUG DATA: " + month) function loadImage(image) {
document.write("DEBUG DATA: " + date) var x = document.createElement("IMG");
x.setAttribute("src", image);
document.body.appendChild(x);
}
if (month=4 && date=13) { if (month=4 && date=13) {
document.write("DEBUG DATA: condition was true") loadImage("gate.gif");
show_image('gate.gif', 100, 100, 'Load');
document.write("<img src='gate.gif'>")
} else { } else {
document.write("DEBUG DATA: condition was false") loadImage("load.png");
document.write("<img src='load.png'>")
} }
</script> </script>
</td> </td>