bingus-blog/static/main.js

13 lines
397 B
JavaScript
Raw Normal View History

replaceDates();
2024-08-01 00:25:42 +03:00
let form = document.getElementById("sort");
if (form) {
form.style.display = "block";
let postsByDate = document.getElementById("posts");
let postsByName = document.createElement("div");
populateByName(postsByDate, postsByName);
postsByDate.parentNode.appendChild(postsByName);
handleSort(form, postsByDate, postsByName);
sort(form.sort.value, postsByDate, postsByName);
2024-08-01 00:25:42 +03:00
}