From 5af77dae25a1691d4eefa59cf7cf692275c7e398 Mon Sep 17 00:00:00 2001 From: A1Gard Date: Sat, 28 Oct 2017 02:15:59 +0330 Subject: [PATCH] add preloader to app --- assets/css/style.css | 8 ++++++++ www/index.html | 10 ++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 96c797f..d15e04a 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -20,4 +20,12 @@ body{ .container{ background: #fff ; +} + +#loader{ + text-align: center; +} + +#loader img{ + height: 128px; } \ No newline at end of file diff --git a/www/index.html b/www/index.html index 1881450..d39d931 100644 --- a/www/index.html +++ b/www/index.html @@ -53,7 +53,11 @@

- + + + [] + + @@ -69,6 +73,7 @@

var newDate = new Date(); vue.processes = e; vue.now = Math.floor(newDate.getTime()); + $("#loader").slideUp(100); }); } var now = 0; @@ -89,7 +94,8 @@

$(function () { GetData(); $("#refresh").click(function () { - + $("#loader").slideDown(100); + GetData(); }); });