map-with-failed-original-request.js (718B)
1 function changeAttribute() { 2 const title = document.body.title === "Goodbye" ? "Hello" : "Goodbye"; 3 document.body.setAttribute("title", title); 4 } 5 6 function changeStyleAttribute() { 7 document.body.style.color = "blue"; 8 } 9 10 function addDivToBody() { 11 let div = document.createElement("div"); 12 div.id = "dynamic"; 13 document.body.appendChild(div); 14 } 15 16 function removeDivInBody() { 17 document.body.querySelector("#dynamic").remove(); 18 } 19 20 function changeAttributeInShadow() { 21 document.getElementById("host").shadowRoot.querySelector("div").classList.toggle("red"); 22 } 23 24 document.getElementById("host").attachShadow({ mode: "open" }).innerHTML = `<div></div>`; 25 26 //# sourceMappingURL=map-with-failed-original-request.map