mirror of
https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
synced 2024-12-29 10:19:10 +00:00
66dd92f0dc
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
14 lines
354 B
JavaScript
14 lines
354 B
JavaScript
// Run the init() function when the page has loaded
|
|
window.addEventListener("DOMContentLoaded", init);
|
|
|
|
function init() {
|
|
let result = sessionStorage.getItem("currReview");
|
|
|
|
let main = document.querySelector("main");
|
|
|
|
main.innerHTML = result;
|
|
let p = document.createElement("p");
|
|
p.innerHTML = JSON.parse(result)["comments"];
|
|
main.append(p);
|
|
}
|