mirror of
https://github.com/MrEidam/bigredbutton.git
synced 2026-04-17 15:43:31 +00:00
Version 44
This commit is contained in:
25
js/lang.js
Normal file
25
js/lang.js
Normal file
@@ -0,0 +1,25 @@
|
||||
let items;
|
||||
|
||||
function load(){if(localStorage.getItem('items')!=null){items=JSON.parse(localStorage.getItem('items'));}}
|
||||
function update(){let i = JSON.stringify(items);localStorage.setItem('items', i);}
|
||||
|
||||
window.onload = function(){
|
||||
load();
|
||||
items.joke=1;
|
||||
}
|
||||
|
||||
// Upload
|
||||
function upload(){update();load();}
|
||||
|
||||
function language(lan){
|
||||
if(lan == 0){
|
||||
items.lang=0;
|
||||
upload();
|
||||
location.href = '../index.html';
|
||||
}
|
||||
if(lan == 1){
|
||||
items.lang=1;
|
||||
upload();
|
||||
location.href = '../index.html';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user