2 things
i think the vimeo player.js library might already be included in lay theme, so dont include the <script> tag for it maybe:
<script src="https://player.vimeo.com/api/player.js"></script>also instead of this:
document.addEventListener('DOMContentLoaded', function() {use:
window.laytheme.on('newpageshown', function() { })for click events read this:
https://laytheme.com/documentation/custom-javascript.html#binding-click-events
also when you write javascript and things dont work, you need to debug it by using console.log
for example:
const unmuteBtn = document.querySelector('.unmute-btn'); console.log(unmuteBtn)in your console you'd then maybe see oh that button couldn't be found
or after
unmuteBtn.addEventListener('click', function() {you could write
console.log('hi')and when you click, you'd see in your console: oh there is no "hi", so maybe the click event handler doesn't work or sth like this