+// Javascript for index page: mostly counters updating
new Vue({
el: "#indexPage",
data: {
},
computed: {
sortedCounts: function () {
- const variantsCounts = variantArray.map( v => {
+ const variantsCounts = variantArray
+ .filter( v => {
+ return v.name.startsWith(this.curPrefix);
+ })
+ .map( v => {
return {
name: v.name,
desc: v.description,
document.getElementById("modal-b4welcome").checked = false;
document.getElementById("modal-welcome").checked = true;
},
+ markAsVisited: function() {
+ setCookie('visited', '1');
+ document.getElementById('modal-welcome').checked = false;
+ },
},
});