From 146105007c4f8eefa2f2451bd38354c1f5498cf2 Mon Sep 17 00:00:00 2001 From: Project Nayuki Date: Tue, 30 Jul 2019 18:12:56 +0000 Subject: [PATCH] Simplified some new TypeScript demo code. --- typescript-javascript/qrcodegen-input-demo.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typescript-javascript/qrcodegen-input-demo.ts b/typescript-javascript/qrcodegen-input-demo.ts index 980bae5..ea1c4c6 100644 --- a/typescript-javascript/qrcodegen-input-demo.ts +++ b/typescript-javascript/qrcodegen-input-demo.ts @@ -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)