Spaces:
Running
Running
Update quran_audio.js
Browse files327 unmodified lines328329330331332333334327 unmodified linesif (reused) reused.setNotify(handler);const options=element('details'),summary=element('summary',ui.options);options.append(summary,controls,source);wrap.append(current,continuous,actions,advanceLabel,seekLabel,clock,state,announcer,options,storageStatus);host.replaceChildren(wrap);if (!reused) player.select(initialId);// Initialize controls even when the requested verse is already the first one.player.configure({});327 unmodified lines328329330331332333334335336337338339340327 unmodified linesif (reused) reused.setNotify(handler);const options=element('details'),summary=element('summary',ui.options);options.append(summary,controls,source);wrap.append(current,continuous,actions,advanceLabel,seekLabel,clock,state,announcer,options,storageStatus);let framed = false; try { framed = window.top !== window; } catch { framed = true; }if (framed) {const open = element('button', ui.open_full || 'فتح التطبيق في صفحة كاملة ↗'); open.type = 'button';open.addEventListener('click', () => window.open(location.href.split('#')[0], '_blank', 'noopener'));wrap.append(element('p', ui.iframe_hint || 'أنت تشغّل التطبيق داخل صفحة Hugging Face (داخل إطار). قد يوقف Chrome الصوت عند قفل الشاشة داخل الإطار. افتح التطبيق في صفحة كاملة ليعمل الصوت في الخلفية.', 'quran-meta'), open);}host.replaceChildren(wrap);if (!reused) player.select(initialId);// Initialize controls even when the requested verse is already the first one.player.configure({});
quran_audio.js+7-1