Commit 878d0b07 authored by Porter Libby's avatar Porter Libby
Browse files

fix some reading data

parent 271946a0
......@@ -31,15 +31,20 @@ table {
border-collapse: collapse;
min-width:99%;
}
td, th {
border: 1px solid #dddddd;
}
td, th {
border: 1px solid var(--theme1);
text-align: left;
padding: 8px;
min-width: 120px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
\ No newline at end of file
}
tr:nth-child(even) {
background-color: var(--theme2);
}
tr:nth-child(odd) {
background-color: var(--theme3);
}
tr:first-child{
background-color: var(--theme4);
}
\ No newline at end of file
......@@ -7,10 +7,11 @@
--theme1: rgb(64, 109, 74);
--theme2: rgb(109, 156, 111);
--theme3: rgb(162, 216, 169);
--theme4: rgb(188, 219, 194);
--theme3: rgb(168, 216, 162);
--theme4: rgb(197, 219, 188);
--themeh: white;
--themep: black;
--themebg: rgb(233, 229, 222);
}
html, body, #viewDiv{
......@@ -18,6 +19,7 @@ html, body, #viewDiv{
margin: 0;
height: 100%;
width: 100%;
background-color: var(--themebg);
}
#navcontrols{
......
......@@ -8,6 +8,7 @@
*/
var lineChart;
var months = ["Jan", "Feb", "Mar", "Apr", "May", "June", "July", "Aug", "Sep", "Oct", "Nov", "Dec"];
// create null chart for no data case
$( document ).ready(function() {
......@@ -41,7 +42,7 @@ function createGraphReading(dataset, q_arr, color){
var sector = dataset[0].sectorname;
var title = document.createElement('h');
title.innerHTML = "Spots from " + trip + ", " + site + ", " + sector;
title.innerHTML = "Spots from " + trip + " (trip), " + site + " (site), " + sector + " (sector)";
parent.append(title);
const table = document.createElement('table');
......@@ -59,7 +60,7 @@ function createGraphReading(dataset, q_arr, color){
for (y=0;y<keys.length;y++){
if (keys[y] == "Date"){
date = new Date(dataset[x]["recordtime"]);
prop_arr.push(date.getFullYear()+'-' + (date.getMonth()+1) + '-'+date.getDate());
prop_arr.push(months[date.getMonth()] + ' ' +date.getDate() + ", " + date.getFullYear());
prop_arr.push(date.toLocaleTimeString('en-US'));
y++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment