You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
501 B
18 lines
501 B
5 years ago
|
|
||
|
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]();
|
||
|
});
|
||
|
}
|
||
|
});
|
||
|
};
|
||
|
}
|