From b7cd26ec272f2f1cf344566f32565227ee843450 Mon Sep 17 00:00:00 2001 From: bdeshi Date: Thu, 20 Feb 2025 17:59:58 +0600 Subject: [PATCH] update name pronounc script --- includes/sections/name.pug | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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