13 lines
305 B
JavaScript
13 lines
305 B
JavaScript
const defaultDuration = 15*60
|
|
|
|
function Item(name/*, start, duration, end*/) {
|
|
this.name = name;
|
|
// this.start = start;
|
|
// this.ducation = duration;
|
|
// this.end = end;
|
|
}
|
|
|
|
function appendItem(item) {
|
|
let text = '<li><p>'+item.name+'</p></li>';
|
|
itemList.insertAdjacentHTML('beforeend', text);
|
|
}
|