From 12cd1618184a4890a7e345dfea00ce1ad60f8ca9 Mon Sep 17 00:00:00 2001 From: Ralph Caraveo III Date: Sun, 14 Jun 2015 21:40:30 -0700 Subject: [PATCH] Formatting some nice stuff. --- html5/index.htm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/html5/index.htm b/html5/index.htm index 67145ac..1b8936a 100644 --- a/html5/index.htm +++ b/html5/index.htm @@ -37,15 +37,19 @@ var zoom_mode = 0; function toggle_2x_mode() { zoom_mode = (~zoom_mode) & 0x01; + var brdr = document.getElementById("cdg_border"); var cnvs = document.getElementById("cdg_canvas"); var audi = document.getElementById("cdg_audio"); + + audi.style.width = (zoom_mode) ? 648 + "px" : 324 + "px"; + brdr.style.width = (zoom_mode) ? 648 + "px" : 324 + "px"; - cnvs.style.width = (zoom_mode) ? 576 + "px" : 288 + "px"; brdr.style.height = (zoom_mode) ? 432 + "px" : 216 + "px"; + + cnvs.style.width = (zoom_mode) ? 576 + "px" : 288 + "px"; cnvs.style.height = (zoom_mode) ? 384 + "px" : 192 + "px"; cnvs.style.padding= (zoom_mode) ? 24 + "px" : 12 + "px"; - audi.style.width = (zoom_mode) ? 648 + "px" : 324 + "px"; };