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 |
|
@ -111,17 +111,19 @@
|
|||
//callbackErrors(data.errors, alert);
|
||||
}
|
||||
}
|
||||
|
||||
function loadImage(){
|
||||
const random = Math.floor(Math.random() * 2);
|
||||
if(random == 0){
|
||||
|
||||
function loadImage() {
|
||||
const random = Math.floor(Math.random() * 4);
|
||||
if (random == 0) {
|
||||
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';
|
||||
} 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>
|
||||
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue