diff options
author | Wu Cheng-Han | 2016-08-15 10:56:14 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-08-15 10:56:14 +0800 |
commit | 3bcb36b46cb391ff30589caa3bbaca1fcf41483f (patch) | |
tree | 78d9043f36e975d648ceb2d581d6a3e11bf38e74 /public/js | |
parent | cf290e86e13b6230707f9ce8c6ee0b793c2323c0 (diff) |
Improve index layout and UX with UI adjustments and better wording
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/cover.js | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/public/js/cover.js b/public/js/cover.js index 6f46ab88..c97bd256 100644 --- a/public/js/cover.js +++ b/public/js/cover.js @@ -40,8 +40,8 @@ function pageInit() { parseServerToHistory(historyList, parseHistoryCallback); }, function () { - $('.ui-signin').slideDown(); - $('.ui-or').slideDown(); + $('.ui-signin').show(); + $('.ui-or').show(); $('.ui-welcome').hide(); $('.ui-avatar').prop('src', '').hide(); $('.ui-name').html(''); @@ -57,18 +57,17 @@ $(".masthead-nav li").click(function () { }); $(".ui-home").click(function () { - $(".section").hide(); - $("#home").fadeIn(); + if (!$("#home").is(':visible')) { + $(".section:visible").hide(); + $("#home").fadeIn(); + } }); $(".ui-history").click(function () { - $(".section").hide(); - $("#history").fadeIn(); -}); - -$(".ui-releasenotes").click(function () { - $(".section").hide(); - $("#releasenotes").fadeIn(); + if (!$("#history").is(':visible')) { + $(".section:visible").hide(); + $("#history").fadeIn(); + } }); function checkHistoryList() { @@ -292,7 +291,7 @@ $(".ui-logout").click(function () { var filtertags = []; $(".ui-use-tags").select2({ - placeholder: 'Use tags...', + placeholder: 'Select tags...', multiple: true, data: function () { return { |