aboutsummaryrefslogtreecommitdiff
path: root/src/app/lang.js
blob: 5cc970868af44cfd5c055cf17580f7c2001d0158 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function setlang() {
	html = document.body.innerHTML.split("%%");

	for (let i = 0; i < html.length; i++) {
		if (html[i][0] != " " && 
			html[i][html[i].length - 1] != " ") {
			html[i] = lang(html[i])
		}
	}

	document.body.innerHTML = html.join("");
}