* feat: tests for series list on article page * feat: test for jump to comments button (needs fix) * feat: tests for reaction drawer on article page * feat: test for full date on hover?? * feat: add full date on hover tests for all pages with publish dates * fixed jumping to comments test * move initialisers to packs * fix coverage issues * fix flaky login modal spec * switch back to using onclick instead of addEventListener
12 lines
372 B
JavaScript
12 lines
372 B
JavaScript
/* Show article date/time according to user's locale */
|
|
import { addLocalizedDateTimeToElementsTitles } from '../utilities/localDateTime';
|
|
|
|
const initializeArticleDate = () => {
|
|
const articlesDates = document.querySelectorAll(
|
|
'.crayons-story time, article time',
|
|
);
|
|
|
|
addLocalizedDateTimeToElementsTitles(articlesDates, 'datetime');
|
|
};
|
|
|
|
initializeArticleDate();
|