// },
created: function() {
window.doClick = (elemId) => { document.getElementById(elemId).click() };
+ store.initialize();
// TODO: AJAX call get corr games (all variants)
// si dernier lastMove sur serveur n'est pas le mien et nextColor == moi, alors background orange
// if (!!localStorage["variant"])
// location.hash = "#game?id=" + localStorage["gameId"];
},
- // Later, for icons (if using feather):
-// mounted: function() {
-// feather.replace();
-// },
- // "mounted" and not "created", because modalWelcome must be filled
- mounted: function() {
- store.initialize();
- },
}).$mount("#app");
-// TODO: get rules, dynamic import
-// Load a rules page (AJAX)
-// router.get("/rules/:vname([a-zA-Z0-9]+)", access.ajax, (req,res) => {
-// const lang = selectLanguage(req, res);
-// res.render("rules/" + req.params["vname"] + "/" + lang);
-// });
-//
// board2, 3, 4 automatiquement, mais rules separement (les 3 pour une)
// game : aussi systématique
// problems: on-demand