As I work to merge my old ZX81 site articles into the main site, Im redoing how articles are sorted. Instead of relying on the article ID, Im now sorting by published date. For now, I have moved one article while I work through each of the routines that need to be updated.
Right now, Topics and Tag Cloud are working as expected. Im working to fix printnewsright now it is displaying the article from 2011. I expect to have it and a few other routines finished this week.
For some reason, when I added the filter buttons on Race Tracking and ZX81 Programs, I didnt denote which was active. I rectified that today. I had to modify the w3schools code a bit as it wasnt working right. My version is both targeted to just the filter buttons, and will remove all active tags applied to those buttons. Here is code:
// Add active class to the current button (highlight it)
var btnContainer = document.getElementById("runbuttons");
var btns = btnContainer.getElementsByClassName("btn");
for (var i = 0; i < btns.length; i++) {
btns[[i]].addEventListener("click", function(){
var btnContainer = document.getElementById("runbuttons");
var current = btnContainer.getElementsByClassName("active");
for (var i = 0; i < current.length; i++) {
current[[i]].className = current[[i]].className.replace(" active", "");
}
this.className += " active";
});
}
Im debating switching from buttons to a select, but this will do until I make up my mind.
Although for my benefit, I spent some time cleaning up the topic categories. I converted the management routine to use responsive tables and forms. Besides cleaning up the modification routines, I also added the ability to reorder topics. Now, I just need to add in a routine to upload images! Sigh, work is never done.
Oops. Forgot to add the topics image for my running blog. That is fixed, as well as a mix up in the category name. While there, I also cleaned up the rounded the topic images to match the rest of the site. I really should fix the topic view. It really isnt looking the way Id like. So, spending a bit more time, I mixed it up with some panels and a different date posts. Much better.
I know that not everyone may want to share their races. You can now set the visibility of your races from your race menu. Just click the eye icon. It will change depending on status. Open eye is public. Slashed eye is private. You can flip it anytime.