Progression in styles + initiate translation process
[vchess.git] / public / javascripts / index.js
index e460f86..13004f0 100644 (file)
@@ -88,5 +88,9 @@ new Vue({
                        setCookie('visited', '1');
                        document.getElementById('modalWelcome').checked = false;
                },
+               setLanguage: function(e) {
+                       setCookie("lang", e.target.value);
+                       location.reload(); //to include the right .pug file
+               },
        },
 });