Commit 1b659474 authored by Porter Libby's avatar Porter Libby
Browse files

change readability in data view

parent 3e8c6bc8
......@@ -68,10 +68,13 @@ h1 span{
}
}
.elem-1{
background-color: #aaa;
background-color: var(--theme2);
}
.elem-1 label{
color: #555;
}
.elem-0{
background-color: var(--theme4);
background-color: var(--theme2);
}
input[type="radio"]:checked+label{
font-weight: bold;
......
......@@ -12,7 +12,7 @@
var query_type = null; // 0 = reading, 1 = streaming
var query_selection = [null,null,null,null,null,null]; // trip, site, sector, spot/host, platform, date
var query_data = null;
var details_mode = 0;
var details_mode = 1;
var placeholderHTML = "<div style='float: left; width: 100%; height: 100%; text-align:center; padding-top:20px;color: var(--themep)'>Organizing numbers...</div><div class='lds-ellipsis'><div></div><div></div><div></div><div></div></div>";
......
......@@ -30,4 +30,5 @@ function ready(){
document.getElementById('loading').style.display = 'none';
document.getElementById("button_permalink").disabled = true;
document.getElementById("button_csv").disabled = true;
toggleDetails(); // starts out in detail 2 mode.
}
\ No newline at end of file
......@@ -276,19 +276,13 @@ function removeQuery(){
location.replace(base);
}
function toggleDetails(){ // details_mode located in data.js
console.log('bruh')
console.log(details_mode)
var all = document.getElementsByClassName('data-catagory');
console.log(all)
for (var i = 0; i < all.length; i++) {
if (details_mode == 0){
all[i].classList.remove('data-catagory-simple');
all[i].classList.add('data-catagory-detail');
$("#button_details").css("opacity", "1.0");
}else if (details_mode == 1){
all[i].classList.remove('data-catagory-detail');
all[i].classList.add('data-catagory-detail-2');
$("#button_details").css("opacity", "1.0");
......@@ -299,7 +293,9 @@ function toggleDetails(){ // details_mode located in data.js
}
}
details_mode = (details_mode + 1) % 3;
console.log("Data Detail Mode: " + details_mode);
}
function createCSV(){
const rows = [["tripid","platformid","sensorid","hostid","recordtime","value_1","quality","latitude","longitude","elevation","accuracy","satellites","value_2","value_3","siteid","sectorid","value_4","value_5","value_6"]];
console.log(query_data[0]);
......
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