From ac5e21d8ac4a5255956d5fa2b385f38a00cf8f5b Mon Sep 17 00:00:00 2001 From: Sangbum Kim Date: Sun, 13 Mar 2016 04:08:54 +0900 Subject: [PATCH] graceful + 404 improved removed unneeded log --- asset/static/error/404.js | 8 ++++++- asset/template/index.html | 4 ++-- asset/template/layout/header.html | 35 ++++++++++++++++--------------- asset/template/page_404.html | 12 ++++++----- main.go | 18 +++++++++++----- util/logger.go | 4 ++-- util/renderer.go | 3 --- 7 files changed, 49 insertions(+), 35 deletions(-) diff --git a/asset/static/error/404.js b/asset/static/error/404.js index 150f9d2..116ae31 100644 --- a/asset/static/error/404.js +++ b/asset/static/error/404.js @@ -1,5 +1,11 @@ +$(window).on("backstretch.before", function () { + window.NProgress.start(); +}); +$(window).on("backstretch.after", function () { + window.NProgress.done(); +}); jQuery(document).ready(function () { var pageImage = "/static/error/404.jpg"; - jQuery.backstretch(pageImage); + jQuery.backstretch(pageImage, {speed: 400}); }); diff --git a/asset/template/index.html b/asset/template/index.html index 1e9a323..bde468a 100755 --- a/asset/template/index.html +++ b/asset/template/index.html @@ -2,8 +2,8 @@ {% block body %}