Refactor js

This commit is contained in:
Schmelczer András 2019-12-14 14:55:29 +01:00
commit 5de596c38a
28 changed files with 859 additions and 0 deletions

15
js/main.js Normal file
View file

@ -0,0 +1,15 @@
(async () => {
const src = 'content-en.json';
const ids = {
pictureId: 'header-pic',
nameId: 'name',
aboutId: 'about',
timelineId: 'timeline',
emailId: 'email',
photoViewerId: 'photo-viewer',
photoId: 'photo'
};
await createPageFactory(ids)(src);
document.body.style.visibility = 'visible';
})();