Select Git revision
Forked from an inaccessible project.
main.js 607 B
import Component from'./Component.js';
import data from './data.js';
import Img from './Img.js';
const title = new Component( 'h1',null, 'La carte' );
document.querySelector('.pageTitle').innerHTML = title.render();
//const img = new Component( 'img', {name:'src', value:'https://images.unsplash.com/photo-1532246420286-127bcd803104?fit=crop&w=500&h=300'} );
//document.querySelector( '.pageContent' ).innerHTML = img.render();
const img = new Img('https://images.unsplash.com/photo-1532246420286-127bcd803104?fit=crop&w=500&h=300');
document.querySelector( '.pageContent' ).innerHTML = img.render();