reverse order of listed folders

This commit is contained in:
Stefan Riesenberger 2022-05-19 09:10:00 +02:00
parent 3d5a261ae5
commit a9adf9d404
1 changed files with 2 additions and 1 deletions

View File

@ -87,7 +87,8 @@
let idstr = folderPath.replaceAll('/','');
divv.id = idstr;
divv.class = "frog-holder";
document.querySelector("#mainholder").appendChild(divv);
let mh = document.querySelector("#mainholder");
mh.insertBefore(divv, mh.firstChild);
let section = document.createElement("h1");
section.textContent = folderPath.replace("svg/","")+":";
document.querySelector("#" + idstr).appendChild(section);