WebSlider/templates/random.html

24 lines
581 B
HTML
Raw Normal View History

<html>
<head>
2018-11-09 07:27:26 +00:00
<meta http-equiv="refresh" content="{{ refresh }};url={{ url_for("random") }}" />
<style>
img {
width: 100%;
height: 98%;
object-fit: contain;
background: url({{ url_for("static", filename="loading.gif") }}) 50% no-repeat;
}
</style>
<script>
var downloadingImage = new Image();
downloadingImage.onload = function(){
document.images[0].src = this.src;
};
downloadingImage.src = "{{ url_for("random_image") }}";
</script>
</head>
2018-11-08 20:51:43 +00:00
<body bgcolor="black">
2018-11-09 07:27:26 +00:00
<img src="{{ url_for("static", filename="clear.gif") }}" />
2018-11-08 20:51:43 +00:00
</body>
</html>