From a8be406b0fde80e8afaabad30383f4420965689d Mon Sep 17 00:00:00 2001 From: Raymond Yang Date: Wed, 28 Jun 2023 11:47:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=AA=BF=E8=A1=A8=E6=A0=BC=E5=AF=AC?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/index.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/js/index.js b/js/index.js index 77609ea..a72a46a 100644 --- a/js/index.js +++ b/js/index.js @@ -16,19 +16,19 @@ document.getElementById("body").appendChild(table); // Creating and adding data to first row of the table let row_1 = document.createElement("tr"); let heading_1 = document.createElement("th"); -heading_1.setAttribute('style', 'width: 28%;') +heading_1.setAttribute('style', 'width: 22%;') let heading_2 = document.createElement("th"); -heading_2.setAttribute('style', 'width: 12%;') +heading_2.setAttribute('style', 'width: 13%;') let heading_3 = document.createElement("th"); -heading_3.setAttribute('style', 'width: 12%;') +heading_3.setAttribute('style', 'width: 13%;') let heading_4 = document.createElement("th"); -heading_4.setAttribute('style', 'width: 12%;') +heading_4.setAttribute('style', 'width: 13%;') let heading_5 = document.createElement("th"); -heading_5.setAttribute('style', 'width: 12%;') +heading_5.setAttribute('style', 'width: 13%;') let heading_6 = document.createElement("th"); -heading_6.setAttribute('style', 'width: 12%;') +heading_6.setAttribute('style', 'width: 13%;') let heading_7 = document.createElement("th"); -heading_7.setAttribute('style', 'width: 12%;') +heading_7.setAttribute('style', 'width: 13%;') let heading_1_text = document.createElement("h4"); heading_1_text.innerHTML = "成員名稱"; @@ -162,7 +162,7 @@ function getDate() { const item = data[i]; if (item.record !== null) { - row_2_data_1.innerHTML = "
" + item.member.playerName + "
"; + row_2_data_1.innerHTML = "
" + item.member.playerName + "
"; row_2_data_2.innerHTML = "
" + item.record.record1.boss + "
"; row_2_data_3.innerHTML = "
" + item.record.record2.boss + "
"; row_2_data_4.innerHTML = "
" + item.record.record3.boss + "
";