From 49597b1d6d1a78230c79ce6d1d5b36841d7290e3 Mon Sep 17 00:00:00 2001 From: wisnupramoedya Date: Sun, 29 Mar 2020 10:36:55 +0700 Subject: [PATCH] w-2.2 fixed bug responsive --- prediksi/index.html | 21 ++++++++++----------- prediksi/script.js | 9 +++++---- prediksi/styles.css | 5 +++++ 3 files changed, 20 insertions(+), 15 deletions(-) diff --git a/prediksi/index.html b/prediksi/index.html index 3d3dbd6..c3730f3 100644 --- a/prediksi/index.html +++ b/prediksi/index.html @@ -58,7 +58,7 @@ -
+
-
+
Cek Protokol Kesehatan
@@ -79,21 +79,20 @@

Question

- - - + + +

-
-
Kondisi 1:
+
+
Kondisi 1:

-
-
Prosedur 1:
-
?
- +
+
Prosedur 1:
+
?

diff --git a/prediksi/script.js b/prediksi/script.js index ca5dc40..e6de4a7 100644 --- a/prediksi/script.js +++ b/prediksi/script.js @@ -17,10 +17,11 @@ let currentKondisi, currentProsedur $(document).ready(function(){ $('[data-toggle="popover"]').popover(); - }); +}); startButton.addEventListener('click', startTest) + function startTest() { startButton.classList.add('hide') questionContainerElement.classList.remove('hide') @@ -114,9 +115,9 @@ function showResult() { case "2": resultKondisi.innerHTML = 'Kondisi 2 : Kelompok kuat dengan risiko tertular' break; - case "3": - resultKondisi.innerHTML = 'Kondisi 3 : Kelompok rentan mengalami kritikal kondisi saat tertular' - break; + case "3": + resultKondisi.innerHTML = 'Kondisi 3 : Kelompok rentan mengalami kritikal kondisi saat tertular' + break; case "4": resultKondisi.innerHTML = 'Kondisi 4 : Kelompok kuat dengan risiko tertular sangat rendah' break; diff --git a/prediksi/styles.css b/prediksi/styles.css index 45752a9..cf0a435 100644 --- a/prediksi/styles.css +++ b/prediksi/styles.css @@ -3,6 +3,11 @@ font-size: 1.0rem; } + .btn-col { + width: 90%; + white-space: normal; + } + .footer { font-size: large; font-weight: 600;