Skip to content

Commit

Permalink
preload nyan.gif
Browse files Browse the repository at this point in the history
  • Loading branch information
caternuson committed Aug 3, 2016
1 parent b888ffe commit fd3286c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion templates/configure.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@
return power_down();
});
$("#preview").attr("src","static/test_pattern.jpg")
img = new Image();
img.src = "static/nyan.gif";
update_ui(JSON.parse('{% raw config %}'));
});

Expand Down Expand Up @@ -229,4 +231,4 @@
});
</script>
</body>
</html>
</html>
4 changes: 2 additions & 2 deletions templates/powerdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<strong>POWERING DOWN</strong>
</div>
<br/><br/>
<img class="img-responsive center-block" src={{ static_url("nyan.gif") }}/>
<img class="img-responsive center-block" src="static/nyan.gif"/>
</p>
</div>
</body>
</html>
</html>
1 change: 0 additions & 1 deletion templates/timelapse.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,5 @@ <h1 id="remaining_time">00:00:00</h1>
return h + ":" + m + ":" + s;
}
</script>

</body>
</html>

0 comments on commit fd3286c

Please sign in to comment.