tr.key > th > div > div { width: 5em; transform-origin: bottom left; transform: translateX(1em) rotate(-65deg) }
td { border: thin solid gray; }
td.numeric { text-align: right; }
tr.key > th > div > div { width: 5em; transform-origin: bottom left; transform: translateX(1em) rotate(-65deg) }
td { border: thin solid gray; }
td.numeric { text-align: right; }
td.spacer { border: none; }
/* h/t https://stackoverflow.com/questions/5687035/css-bolding-some-text-without-changing-its-containers-size/46452396#46452396 */
.highlight { text-shadow: -0.06ex 0 black, 0.06ex 0 black; }
td.spacer { border: none; }
/* h/t https://stackoverflow.com/questions/5687035/css-bolding-some-text-without-changing-its-containers-size/46452396#46452396 */
.highlight { text-shadow: -0.06ex 0 black, 0.06ex 0 black; }
fn render_cell(col: &str, row: &RowInput) -> String {
// TODO: Escape HTML special characters
fn render_cell(col: &str, row: &RowInput) -> String {
// TODO: Escape HTML special characters
let entries: Vec<&Entry> = row.entries.iter().filter(|e| e.col == col).collect();
let class = if entries.is_empty() { "" } else { "yes" };
let all_empty = entries.iter().all(|e| e.instance.is_none());
let entries: Vec<&Entry> = row.entries.iter().filter(|e| e.col == col).collect();
let class = if entries.is_empty() { "" } else { "yes" };
let all_empty = entries.iter().all(|e| e.instance.is_none());
- format!("<td class=\"{class}\">{}</td>", contents.trim())
+ format!("<td class=\"{class}\" onmouseover=\"h2('{row_label}','{col}')\" onmouseout=\"ch2('{row_label}','{col}')\">{}</td>", contents.trim())
}
fn render_row(columns: &[String], row: &RowInput) -> String {
// This is O(n^2) & doesn't need to be
// TODO: Escape HTML special characters
}
fn render_row(columns: &[String], row: &RowInput) -> String {
// This is O(n^2) & doesn't need to be
// TODO: Escape HTML special characters