This commit is contained in:
Dooho Yi 2022-11-24 21:52:20 +09:00
parent d204f45c84
commit f9aa8cfcd7

View file

@ -438,11 +438,6 @@
//**ENTRY
// list_reload();
//go to the anchor
console.log(window.location.hash.substring(1));
let elmnt = document.getElementById(window.location.hash.substring(1));
elmnt.scrollIntoView(true);
var cnv = createCanvas(cols * unit + 2, rows * unit + 2);
cnv.parent("p5");
img = createGraphics(cols * unit + 2, rows * unit + 2);
@ -454,6 +449,13 @@
document.querySelectorAll('.clear').forEach(item => item.onclick = () => {
for (let a = 0; a < p.length; a++) p[a] = 0;
});
//go to the anchor
console.log(window.location.hash.substring(1));
let elmnt = document.getElementById(window.location.hash.substring(1));
if (elmnt) {
elmnt.scrollIntoView(true);
}
}
//**ENTRY begin >>>