bug fix.
This commit is contained in:
parent
d204f45c84
commit
f9aa8cfcd7
1 changed files with 7 additions and 5 deletions
|
|
@ -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 >>>
|
||||
|
|
|
|||
Loading…
Reference in a new issue