parent
bea8d07540
commit
663db5ba6f
4 changed files with 26 additions and 3 deletions
@ -0,0 +1,17 @@ |
||||
|
||||
docute.init({ |
||||
landing: 'landin.html', |
||||
plugins: [evanyou()] |
||||
}); |
||||
|
||||
function player () { |
||||
return function (context) { |
||||
context.event.on('content:updated', function () { |
||||
for (let i = 0; i < document.querySelectorAll('.load').length; i++) { |
||||
document.querySelectorAll('.load')[i].addEventListener('click', function () { |
||||
window[this.parentElement.id] && window[this.parentElement.id](); |
||||
}); |
||||
} |
||||
}); |
||||
}; |
||||
} |
Loading…
Reference in new issue