Skip to content

Commit

Permalink
fx
Browse files Browse the repository at this point in the history
  • Loading branch information
openshwprojects committed Dec 26, 2024
1 parent 88d92d1 commit af9ac34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test1.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ function createBeforeMain() {
newDiv.style.float = "left";
newDiv.style.position = "sticky";
newDiv.style.top = "0";
newDiv.id = "pinsDiv";

const mainDiv = document.getElementById("main");
if (mainDiv) {
mainDiv.parentNode.insertBefore(newDiv, mainDiv);
}

createCanvasInElement(newDiv);
createCanvasInElement("pinsDiv");
}
function createCanvasInElement(id) {
const canvas = document.createElement("canvas");
Expand Down

0 comments on commit af9ac34

Please sign in to comment.