Dockerized app
This commit is contained in:
parent
10d491fa96
commit
9ee36727ef
10 changed files with 23 additions and 1 deletions
30
app/templates/random.html
Normal file
30
app/templates/random.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
<html>
|
||||
<head>
|
||||
<style>
|
||||
img {
|
||||
width: 100%;
|
||||
height: 98%;
|
||||
object-fit: contain;
|
||||
background: url({{ url_for("static", filename="loading.gif") }}) 50% no-repeat;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body bgcolor="black">
|
||||
<img id="slider" src="{{ url_for("static", filename="clear.gif") }}" />
|
||||
<script>
|
||||
var downloadingImage = new Image();
|
||||
downloadingImage.onload = function()
|
||||
{
|
||||
document.getElementById("slider").src = this.src;
|
||||
};
|
||||
|
||||
function updateImage()
|
||||
{
|
||||
downloadingImage.src = "{{ url_for("random_image") }}?" + new Date().getTime();
|
||||
}
|
||||
|
||||
updateImage();
|
||||
setInterval(updateImage, {{ refresh * 1000 }});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue