diff options
-rw-r--r-- | www/index.html | 6 | ||||
-rw-r--r-- | www/js/rhctl.js | 16 | ||||
-rw-r--r-- | www/styles/main.css | 16 |
3 files changed, 32 insertions, 6 deletions
diff --git a/www/index.html b/www/index.html index 3b9b01b..b1cb40e 100644 --- a/www/index.html +++ b/www/index.html @@ -110,6 +110,12 @@ </div> + <footer class="footer"> + <div class="container"> + <a href="http://www.flaticon.com/packs/emoticons-2">Icons Designed by Freepik and distributed by Flaticon</a> + </div> + </footer> + <script type="text/javascript"> clock_init(); rhctl_init(); diff --git a/www/js/rhctl.js b/www/js/rhctl.js index ea7adb8..616042e 100644 --- a/www/js/rhctl.js +++ b/www/js/rhctl.js @@ -131,12 +131,16 @@ function rhctl_draw_state(state) { entry.find('.server-channel').text(value.Channel); } var h = entry.find('.server-health img'); - switch(value.Health) { - case 'alive': - case 'dead': - h.attr('src', '/img/server-' + value.Health + '.png').attr('title', value.Health); - break; - default: + if(value.ResurrectionLevel > 0 && value.ResurrectionLevel < 1) { + h.addClass('blink').attr('src', '/img/server-resurrecting.png').attr('title', 'resurrecting'); + } else { + switch(value.Health) { + case 'alive': + case 'dead': + h.attr('src', '/img/server-' + value.Health + '.png').attr('title', value.Health); + break; + default: + } } srvTable.append(entry) }); diff --git a/www/styles/main.css b/www/styles/main.css index 37b5b80..980ad00 100644 --- a/www/styles/main.css +++ b/www/styles/main.css @@ -38,6 +38,22 @@ font-weight: bold; } +.footer { + position: absolute; + bottom: 0; + width: 100%; + /* Set the fixed height of the footer here */ + height: 2em; + background-color: #7f7f7f; +} + +.footer a { + color: #ffffff; + position: absolute; + bottom: 0.3em; + right: 2em; +} + #rhctlraw { background-color: white; border: 1px solid; |