projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Progression in styles + initiate translation process
[vchess.git]
/
public
/
javascripts
/
index.js
diff --git
a/public/javascripts/index.js
b/public/javascripts/index.js
index
e460f86
..
13004f0
100644
(file)
--- a/
public/javascripts/index.js
+++ b/
public/javascripts/index.js
@@
-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
+ },
},
});