mirror of
https://github.com/MrEidam/bigredbutton.git
synced 2026-04-17 15:43:31 +00:00
25 lines
546 B
JavaScript
25 lines
546 B
JavaScript
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';
|
|
}
|
|
} |