2024-08-01 13:46:03 +03:00
|
|
|
replaceDates();
|
2024-08-01 00:25:42 +03:00
|
|
|
|
2024-08-01 13:46:03 +03:00
|
|
|
let form = document.getElementById("sort");
|
|
|
|
if (form) {
|
2024-08-02 13:21:09 +03:00
|
|
|
form.style.display = "block";
|
2024-08-01 13:46:03 +03:00
|
|
|
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
|
|
|
}
|