mirror of
https://github.com/Michatec/MiniFaceBook.git
synced 2026-05-31 02:12:40 +02:00
Files
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
document.querySelectorAll('.lang-select').forEach(function(el) {
|
||||
el.addEventListener('click', function(e) {
|
||||
e.preventDefault();
|
||||
document.cookie = "lang=" + this.dataset.lang + ";path=/";
|
||||
location.reload();
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user