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.
17 lines
501 B
17 lines
501 B
|
|
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](); |
|
}); |
|
} |
|
}); |
|
}; |
|
}
|
|
|