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;