aboutsummaryrefslogtreecommitdiffstats
path: root/util.js
blob: fe9e5b7b304ef59ecfec30f96bcb7ede4805e9b0 (plain) (blame)
1
2
3
4
5
function newEl(name, Class) {
	ret = document.createElement(name);
	if (Class) ret.classList.add(Class);
	return ret;
}