feat: Doing more polishing (M8b)
This commit is contained in:
@@ -77,6 +77,9 @@ export function createNewspaper(root, tpl) {
|
||||
if (key === shown) return;
|
||||
shown = key;
|
||||
|
||||
root.classList.remove("is-fresh");
|
||||
void root.offsetWidth; // restart the fade
|
||||
root.classList.add("is-fresh");
|
||||
const fill = (s) => s.replaceAll("{country}", state.countryName);
|
||||
const [lead, ...rest] = computeHeadlines(state, tpl);
|
||||
$(root, ".news__lead h3").textContent = fill(tx(lead.h));
|
||||
|
||||
Reference in New Issue
Block a user