Added action display

This commit is contained in:
Davide Bongiovanni
2017-02-15 10:26:36 +01:00
parent 2e59b80ed1
commit ce01de459d
3 changed files with 6 additions and 1 deletions
+4
View File
@@ -41,6 +41,10 @@ $(document).ready(function() {
var newElement = '<div class="event" card-id="' + eventHistory[i].cardID + '">\
<div class="time">' + dateString + '</div>\
<div class="name">';
if (eventHistory[i].action == "fridge")
newElement += '<i class="fa fa-snowflake-o"></i>';
else if (eventHistory[i].action == "tools")
newElement += '<i class="fa fa-wrench"></i>';
if (eventHistory[i].name == "")
newElement += '<span class="unknown_card">' + eventHistory[i].cardID + '</span>';
else
+1 -1
View File
@@ -134,7 +134,7 @@ h1 {
height: 60%;
left: 35%;
padding: 8pt;
position: absolute;
position: absolute; /*Should probably be 'fixed' instead*/
top: -70%;
width: 30%;
z-index: 201;