some progress
This commit is contained in:
parent
e00e613d8e
commit
ced9f2d5d5
4 changed files with 51 additions and 0 deletions
13
script.js
Normal file
13
script.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue