2018-11-05 20:57:26 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
2018-11-09 07:27:26 +00:00
|
|
|
<style>
|
|
|
|
img {
|
|
|
|
width: 100%;
|
|
|
|
height: 98%;
|
|
|
|
object-fit: contain;
|
|
|
|
background: url({{ url_for("static", filename="loading.gif") }}) 50% no-repeat;
|
|
|
|
}
|
|
|
|
</style>
|
2018-11-05 20:57:26 +00:00
|
|
|
</head>
|
2018-11-08 20:51:43 +00:00
|
|
|
<body bgcolor="black">
|
2018-11-09 15:51:01 +00:00
|
|
|
<img id="slider" src="{{ url_for("static", filename="clear.gif") }}" />
|
|
|
|
<script>
|
|
|
|
var downloadingImage = new Image();
|
|
|
|
downloadingImage.onload = function()
|
|
|
|
{
|
|
|
|
document.getElementById("slider").src = this.src;
|
|
|
|
};
|
|
|
|
|
2018-11-10 19:32:06 +00:00
|
|
|
function updateImage()
|
|
|
|
{
|
|
|
|
downloadingImage.src = "{{ url_for("random_image") }}?" + new Date().getTime();
|
|
|
|
}
|
|
|
|
|
|
|
|
updateImage();
|
|
|
|
setInterval(updateImage, {{ refresh * 1000 }});
|
2018-11-09 15:51:01 +00:00
|
|
|
</script>
|
2018-11-08 20:51:43 +00:00
|
|
|
</body>
|
2018-11-05 20:57:26 +00:00
|
|
|
</html>
|