diff --git a/includes/sections/name.pug b/includes/sections/name.pug index 3aaa806..0b36860 100644 --- a/includes/sections/name.pug +++ b/includes/sections/name.pug @@ -4,10 +4,10 @@ audio#pronounce(controls=false preload="auto") source(src="assets/media/spell.wav" type="audio/wav") script. - function pronounce() { - var audio = document.getElementById('pronounce') - audio.play() - } + window.pronounce = function() { + var audio = document.getElementById('pronounce'); + audio.play(); + }; section.name h1.target#name: a(href="#name") name