From 29868ac1535b9f50af9bbdda3636da10cb6d5d5e Mon Sep 17 00:00:00 2001 From: Gabriel Cabrejas Date: Mon, 4 Dec 2023 14:58:21 +0100 Subject: [PATCH 1/5] reorder script tags --- index.html | 74 +++++++++++++++++++++++++++--------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/index.html b/index.html index bd24960..ed1c164 100644 --- a/index.html +++ b/index.html @@ -1,41 +1,11 @@ + Web Sprint 2 Challenge - - - @@ -152,7 +151,7 @@

Web Sprint 2 Challenge

[["1111111111"], "(111) 111-1111"], [["9876543210"], "(987) 654-3210"], ]) - console.log('\nCHALLENGE 6 (OPTIONAL) does not have auto tests') + console.log('\nCHALLENGE 6 (OPTIONAL) does not have auto tests - diceRolls') function runTests(testName, func, tests) { let results = [] tests.forEach(test => { From 38d9da4747fd5e2f38438fa64b67398aa854a4ec Mon Sep 17 00:00:00 2001 From: Gabriel Cabrejas Date: Mon, 4 Dec 2023 16:31:11 +0100 Subject: [PATCH 3/5] wip --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 2d57ef4..4cdabbf 100644 --- a/index.html +++ b/index.html @@ -107,7 +107,7 @@

Web Sprint 2 Challenge

globalThis.booleanize = booleanize globalThis.scrub = scrub - try { + if (typeof module === undefined) { runTests('CHALLENGE 1 - profileActivation', profileActivation, [ [[{ active: true }], 'confirm status manually'], [[{ active: true }, 'because'], { active: false, reason: 'because' }], @@ -192,7 +192,7 @@

Web Sprint 2 Challenge

phoneNumInput.oninput = evt => { normalized.textContent = normalizePhoneNumber(evt.target.value) } - } catch (err) { console.error(err.stack) } + } From 294380609e3ea87bc8bbd7d7b11bd3c4550d1a8a Mon Sep 17 00:00:00 2001 From: Gabriel Cabrejas Date: Mon, 4 Dec 2023 16:36:45 +0100 Subject: [PATCH 4/5] wip --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 4cdabbf..064e891 100644 --- a/index.html +++ b/index.html @@ -107,7 +107,7 @@

Web Sprint 2 Challenge

globalThis.booleanize = booleanize globalThis.scrub = scrub - if (typeof module === undefined) { + if (typeof module === 'undefined') { runTests('CHALLENGE 1 - profileActivation', profileActivation, [ [[{ active: true }], 'confirm status manually'], [[{ active: true }, 'because'], { active: false, reason: 'because' }], From 59a86944aa51cf68d5e365ea9dede0dff9894eaf Mon Sep 17 00:00:00 2001 From: Gabriel Cabrejas Date: Mon, 4 Dec 2023 16:56:58 +0100 Subject: [PATCH 5/5] reposition --- index.html | 252 ++++++++++++++++++++++++++--------------------------- 1 file changed, 123 insertions(+), 129 deletions(-) diff --git a/index.html b/index.html index 064e891..c09e5ea 100644 --- a/index.html +++ b/index.html @@ -1,11 +1,46 @@ - Web Sprint 2 Challenge +