From eb7c50735920e87c3146ad607d8fe5fbded1945b Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Wed, 17 Sep 2014 22:37:49 +0200 Subject: [PATCH] (WIP) Added spinner (#39) --- public_html/css/core.css | 19 +++++ public_html/index.html | 9 +++ public_html/js/PresenterManager.js | 52 ++++++++---- .../js/Presenters/CommentListPresenter.js | 3 +- public_html/js/Presenters/HelpPresenter.js | 3 +- public_html/js/Presenters/HomePresenter.js | 3 +- public_html/js/Presenters/LoginPresenter.js | 20 ++--- public_html/js/Presenters/LogoutPresenter.js | 19 +++-- .../js/Presenters/PagedCollectionPresenter.js | 79 ++++++++++--------- .../js/Presenters/PostListPresenter.js | 25 +++--- .../js/Presenters/PostUploadPresenter.js | 35 ++++---- .../js/Presenters/RegistrationPresenter.js | 12 +-- public_html/js/Presenters/TagListPresenter.js | 3 +- .../js/Presenters/TopNavigationPresenter.js | 14 ++-- .../Presenters/UserAccountRemovalPresenter.js | 19 +++-- .../UserAccountSettingsPresenter.js | 45 ++++++----- .../js/Presenters/UserActivationPresenter.js | 68 ++++++++-------- .../UserBrowsingSettingsPresenter.js | 24 +++--- .../js/Presenters/UserListPresenter.js | 25 +++--- public_html/js/Presenters/UserPresenter.js | 50 ++++++------ public_html/js/Router.js | 4 +- 21 files changed, 310 insertions(+), 221 deletions(-) diff --git a/public_html/css/core.css b/public_html/css/core.css index 3777b025..05681fcd 100644 --- a/public_html/css/core.css +++ b/public_html/css/core.css @@ -52,3 +52,22 @@ hr { background: #f3f7f8; color: #7a9 !important; } + +#wait-cover { + display: flex; + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + width: 100%; + height: 100%; + background: rgba(255, 255, 255, 0.9); + z-index: 100; +} +#wait .spinner { + margin: auto; +} +#wait .spinner .fa { + font-size: 40px; +} diff --git a/public_html/index.html b/public_html/index.html index 16bce1de..ba49e6e4 100644 --- a/public_html/index.html +++ b/public_html/index.html @@ -42,6 +42,15 @@ +
+
+
+ +

Loading

+
+
+
+