From 296227e9fc18762413bf38e6ab6acbc956bbbefc Mon Sep 17 00:00:00 2001 From: Miguel Avila Date: Sat, 14 Aug 2021 12:02:43 -0500 Subject: [PATCH] :bulb: Updated function comments --- assets/js/cards.js | 2 ++ assets/js/lists.js | 4 ++++ assets/js/time.js | 6 +++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/assets/js/cards.js b/assets/js/cards.js index 9cb0a53..9f3ec2e 100644 --- a/assets/js/cards.js +++ b/assets/js/cards.js @@ -2,10 +2,12 @@ // │ ├─┤├┬┘ ││└─┐ // └─┘┴ ┴┴└──┴┘└─┘ +// Print cards const printCards = () => { for (const card of CONFIG.cards) { console.log(card.id); + // Card Item let item = ` { let icon = ``; const position = 'beforeend'; list_1.insertAdjacentHTML(position, icon); for (const link of CONFIG.lists.firstList) { + // List item let item = ` { } }; +// Print the second List const printSecondList = () => { let icon = ``; const position = 'beforeend'; list_2.insertAdjacentHTML(position, icon); for (const link of CONFIG.lists.secondList) { + // List item let item = ` = 12 ? ' pm' : ' am'; hh = hh % 12; - hh = hh ? hh : 12; //show mod 0 as 12 + hh = hh ? hh : 12; } + // Display clock elements document.getElementById('hour').innerText = hh; document.getElementById('separator').innerHTML = ' : '; document.getElementById('minutes').innerText = min + ampm;