- document.getElementById("newnewsDiv").addEventListener("click", processModalClick);
- },
- computed: {
- sortedNewsList: function() {
- return this.newsList.sort( (n1,n2) => n1.added - n2.added );
- },
+ // Mark that I've read the news:
+ localStorage.setItem("newsRead", Date.now());
+ if (this.st.user.id > 0) ajax("/newsread", "PUT");
+ document.getElementById("newsMenu").classList.remove("somenews");
+ document
+ .getElementById("newnewsDiv")
+ .addEventListener("click", processModalClick);