Simplified some new TypeScript demo code.

This commit is contained in:
Project Nayuki 2019-07-30 18:12:56 +00:00
parent cf612ec2dc
commit 146105007c
1 changed files with 2 additions and 2 deletions

View File

@ -27,8 +27,8 @@
namespace app {
function initialize(): void {
(document.getElementById("loading") as HTMLElement).style.display = "none";
(document.getElementById("loaded") as HTMLElement).style.removeProperty("display");
getElem("loading").style.display = "none";
getElem("loaded").style.removeProperty("display");
let elems = document.querySelectorAll("input[type=number], textarea");
for (let el of elems) {
if (el.id.indexOf("version-") != 0)