diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-09-30 01:42:52 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-09-30 01:43:14 (GMT) |
commit | c65e8fafc59c7bcc544a42955cb256ba940c1b50 (patch) | |
tree | e391cc43ac616accd1bc44610d4f26c1e246302d /www | |
parent | c040aa8a9b7158748733daadc0721463d932423a (diff) |
server resurrection and icon license footer
Diffstat (limited to 'www')
-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; |