mirror of https://github.com/xfarrow/blink
new pics
This commit is contained in:
parent
a94703acf8
commit
a7afce27e3
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
Binary file not shown.
After Width: | Height: | Size: 33 KiB |
|
@ -112,16 +112,18 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadImage(){
|
function loadImage() {
|
||||||
const random = Math.floor(Math.random() * 2);
|
const random = Math.floor(Math.random() * 4);
|
||||||
if(random == 0){
|
if (random == 0) {
|
||||||
document.getElementById('image').src = '../content/stock_photo_1.png';
|
document.getElementById('image').src = '../content/stock_photo_1.png';
|
||||||
}
|
} else if (random == 1) {
|
||||||
else if(random == 1){
|
|
||||||
document.getElementById('image').src = '../content/stock_photo_2.png';
|
document.getElementById('image').src = '../content/stock_photo_2.png';
|
||||||
|
} else if (random == 2) {
|
||||||
|
document.getElementById('image').src = '../content/stock_photo_3.png';
|
||||||
|
} else if (random == 3) {
|
||||||
|
document.getElementById('image').src = '../content/stock_photo_4.png';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue