From fd3286ce8fcdc9582be370611057f33932e65335 Mon Sep 17 00:00:00 2001 From: caternuson Date: Wed, 3 Aug 2016 10:26:22 -0700 Subject: [PATCH] preload nyan.gif --- templates/configure.html | 4 +++- templates/powerdown.html | 4 ++-- templates/timelapse.html | 1 - 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/templates/configure.html b/templates/configure.html index c9371ab..b4dbd14 100755 --- a/templates/configure.html +++ b/templates/configure.html @@ -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 %}')); }); @@ -229,4 +231,4 @@ }); - \ No newline at end of file + diff --git a/templates/powerdown.html b/templates/powerdown.html index f7d106c..f774c64 100755 --- a/templates/powerdown.html +++ b/templates/powerdown.html @@ -15,8 +15,8 @@ POWERING DOWN

- +

- \ No newline at end of file + diff --git a/templates/timelapse.html b/templates/timelapse.html index 5aaefb6..5a74b8e 100755 --- a/templates/timelapse.html +++ b/templates/timelapse.html @@ -170,6 +170,5 @@

00:00:00

return h + ":" + m + ":" + s; } - \ No newline at end of file