Refactor js
This commit is contained in:
commit
5de596c38a
28 changed files with 859 additions and 0 deletions
15
js/main.js
Normal file
15
js/main.js
Normal 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';
|
||||
})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue