Added action display
This commit is contained in:
@@ -41,6 +41,10 @@ $(document).ready(function() {
|
|||||||
var newElement = '<div class="event" card-id="' + eventHistory[i].cardID + '">\
|
var newElement = '<div class="event" card-id="' + eventHistory[i].cardID + '">\
|
||||||
<div class="time">' + dateString + '</div>\
|
<div class="time">' + dateString + '</div>\
|
||||||
<div class="name">';
|
<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 == "")
|
if (eventHistory[i].name == "")
|
||||||
newElement += '<span class="unknown_card">' + eventHistory[i].cardID + '</span>';
|
newElement += '<span class="unknown_card">' + eventHistory[i].cardID + '</span>';
|
||||||
else
|
else
|
||||||
|
|||||||
+1
-1
@@ -134,7 +134,7 @@ h1 {
|
|||||||
height: 60%;
|
height: 60%;
|
||||||
left: 35%;
|
left: 35%;
|
||||||
padding: 8pt;
|
padding: 8pt;
|
||||||
position: absolute;
|
position: absolute; /*Should probably be 'fixed' instead*/
|
||||||
top: -70%;
|
top: -70%;
|
||||||
width: 30%;
|
width: 30%;
|
||||||
z-index: 201;
|
z-index: 201;
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
src="http://code.jquery.com/jquery-3.1.1.js"
|
src="http://code.jquery.com/jquery-3.1.1.js"
|
||||||
integrity="sha256-16cdPddA6VdVInumRGo6IbivbERE8p7CQR3HzTBuELA="
|
integrity="sha256-16cdPddA6VdVInumRGo6IbivbERE8p7CQR3HzTBuELA="
|
||||||
crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
|
<script src="https://use.fontawesome.com/5c9d51f09a.js"></script>
|
||||||
<script type="text/javascript" src="static/script.js"></script>
|
<script type="text/javascript" src="static/script.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Reference in New Issue
Block a user