-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor cleanup of items flagged in dh community code review feedback (#…
…272) * Simplify d3.js imports, per code review feedback * Small cleanup items based on code review feedback * Use script tag to embed json data, per code review feedback * Configure lighthouse ci to test content with a different branch
- Loading branch information
Showing
8 changed files
with
16 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { TimeTree } from "./timetree"; | ||
|
||
// load & parse leaf data from json embedded in the document | ||
const data = JSON.parse(document.querySelector(".leaf-data").value); | ||
const data = JSON.parse(document.getElementById("leaf-data").text); | ||
// load and parse tag list for label / slug lookup label based on slug | ||
const tags = JSON.parse(document.querySelector(".tag-data").value); | ||
const tags = JSON.parse(document.getElementById("tag-data").text); | ||
// determine if this is a production or development build | ||
const params = JSON.parse(document.querySelector(".env-data").value); | ||
const params = JSON.parse(document.getElementById("env-data").text); | ||
|
||
// pass in leaf data, tag list, and whether debugging should be enabled | ||
let timetree = new TimeTree(data, tags, params); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters