You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-16 22:27:34 +02:00
Undo setupPrintPage
This commit is contained in:
@ -145,18 +145,11 @@
|
|||||||
// Create headers on the print page.
|
// Create headers on the print page.
|
||||||
function setupPrintPage() {
|
function setupPrintPage() {
|
||||||
for (const notes of document.querySelectorAll("details")) {
|
for (const notes of document.querySelectorAll("details")) {
|
||||||
let summaryContent;
|
notes.open = true;
|
||||||
if (notes.getAttribute("solution") !== null) {
|
let summary = document.createElement("summary");
|
||||||
notes.open = false;
|
|
||||||
summaryContent = "Solution";
|
|
||||||
} else {
|
|
||||||
notes.open = true;
|
|
||||||
summaryContent = "Speaker Notes";
|
|
||||||
}
|
|
||||||
const summary = document.createElement("summary");
|
|
||||||
notes.insertBefore(summary, notes.firstChild);
|
notes.insertBefore(summary, notes.firstChild);
|
||||||
const h4 = document.createElement("h4");
|
let h4 = document.createElement("h4");
|
||||||
h4.append(summaryContent);
|
h4.append("Speaker Notes");
|
||||||
summary.append(h4);
|
summary.append(h4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user