From 230e1f2ec3501c8981abbda525b7499f621ed402 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Sat, 3 Mar 2018 18:04:33 +0200 Subject: [PATCH] Help bubbles to Player page --- Plan/src/main/resources/web/css/main.css | 5 ++ Plan/src/main/resources/web/js/admin.js | 23 +++++--- Plan/src/main/resources/web/player.html | 73 +++++++++++++++++++++--- 3 files changed, 84 insertions(+), 17 deletions(-) diff --git a/Plan/src/main/resources/web/css/main.css b/Plan/src/main/resources/web/css/main.css index 0f11586e4..19ddc2f88 100644 --- a/Plan/src/main/resources/web/css/main.css +++ b/Plan/src/main/resources/web/css/main.css @@ -150,6 +150,11 @@ margin: 0; } +.help { + text-decoration: none; +!important; +} + @media only screen and (max-width: 1680px) { .nav-button { font-size: 19px; diff --git a/Plan/src/main/resources/web/js/admin.js b/Plan/src/main/resources/web/js/admin.js index d96d275ef..ac115137d 100644 --- a/Plan/src/main/resources/web/js/admin.js +++ b/Plan/src/main/resources/web/js/admin.js @@ -40,7 +40,7 @@ $.AdminBSB.options = { effectIn: 'fadeIn', effectOut: 'fadeOut' } -} +}; /* Left Sidebar - Function ================================================================================================= * You can manage the left sidebar menu options @@ -124,7 +124,7 @@ $.AdminBSB.leftSideBar = { //Scroll active menu item when page load, if option set = true if ($.AdminBSB.options.leftSideBar.scrollActiveItemWhenPageLoad) { - var activeItemOffsetTop = $('.menu .list li.active')[0].offsetTop + var activeItemOffsetTop = $('.menu .list li.active')[0].offsetTop; if (activeItemOffsetTop > 150) $el.slimscroll({ scrollTo: activeItemOffsetTop + 'px' }); } } @@ -184,7 +184,7 @@ $.AdminBSB.rightSideBar = { isOpen: function () { return $('.right-sidebar').hasClass('open'); } -} +}; //========================================================================================================================== /* Searchbar - Function ================================================================================================ @@ -221,7 +221,7 @@ $.AdminBSB.search = { $searchBar.removeClass('open'); $searchBar.find('input[type="text"]').val(''); } -} +}; //========================================================================================================================== /* Navbar - Function ======================================================================================================= @@ -251,7 +251,7 @@ $.AdminBSB.navbar = { } }); } -} +}; //========================================================================================================================== /* Input - Function ======================================================================================================== @@ -288,7 +288,7 @@ $.AdminBSB.input = { } }); } -} +}; //========================================================================================================================== /* Form - Select - Function ================================================================================================ @@ -299,7 +299,7 @@ $.AdminBSB.select = { activate: function () { if ($.fn.selectpicker) { $('select:not(.ms)').selectpicker(); } } -} +}; //========================================================================================================================== /* DropdownMenu - Function ================================================================================================= @@ -377,7 +377,7 @@ $.AdminBSB.dropdownMenu = { } }); } -} +}; //========================================================================================================================== /* Browser - Function ====================================================================================================== @@ -441,7 +441,7 @@ $.AdminBSB.browser = { return ''; } } -} +}; //========================================================================================================================== $(function () { @@ -455,4 +455,9 @@ $(function () { $.AdminBSB.search.activate(); setTimeout(function () { $('.page-loader-wrapper').fadeOut(); }, 50); +}); + +$(function () { + //Popover (For Help texts) + $('[data-toggle="popover"]').popover(); }); \ No newline at end of file diff --git a/Plan/src/main/resources/web/player.html b/Plan/src/main/resources/web/player.html index 0a1285124..6e59c4c68 100644 --- a/Plan/src/main/resources/web/player.html +++ b/Plan/src/main/resources/web/player.html @@ -237,9 +237,18 @@
-
+

${playerName}

+
@@ -335,9 +344,17 @@
-
+

Punchcard

+
@@ -380,9 +397,17 @@
-
+

Connection Information

+
@@ -413,9 +438,17 @@
-
+

Most Recent Sessions

+
${accordionSessions} @@ -427,9 +460,17 @@
-
+

World Playtime

+
@@ -441,9 +482,17 @@
-
+

Server Preference

+
@@ -532,6 +581,14 @@

Servers

+
${accordionServers} @@ -591,13 +648,13 @@ time: { timezoneOffset: ${timeZone} * 60 } - }); + }) var serverSeries = { name: 'Server Playtime', colorByPoint: true, colors: [${serverPieColors}], data: ${serverPieSeries} - } + }; var worldSeries = { name: 'World Playtime', colorByPoint: true,