MediaWiki: Common.js: Unterschied zwischen den Versionen
Aus QR-KULTUR
| Zeile 1: | Zeile 1: | ||
| − | /* | + | /* AI Voice Receptionist Widget */ |
| + | |||
| + | mw.loader.using('mediawiki.util').then(function () { | ||
| + | |||
| + | var existing = document.getElementById('ai-voice-widget-script'); | ||
| + | |||
| + | if (!existing) { | ||
| + | var script = document.createElement('script'); | ||
| + | script.id = 'ai-voice-widget-script'; | ||
| + | |||
| + | /* URL des Anbieters anpassen */ | ||
| + | script.src = 'https://ai-voicereceptionist.com/widget.js'; | ||
| + | |||
| + | script.setAttribute( | ||
| + | 'data-agent-id', | ||
| + | '300d0137-fd6b-4e72-9e53-86bb80f39bc3' | ||
| + | ); | ||
| + | |||
| + | script.defer = true; | ||
| + | |||
| + | document.head.appendChild(script); | ||
| + | } | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
}); | }); | ||
Version vom 26. Oktober 2026, 09:42 Uhr
/* AI Voice Receptionist Widget */
mw.loader.using('mediawiki.util').then(function () {
var existing = document.getElementById('ai-voice-widget-script');
if (!existing) {
var script = document.createElement('script');
script.id = 'ai-voice-widget-script';
/* URL des Anbieters anpassen */
script.src = 'https://ai-voicereceptionist.com/widget.js';
script.setAttribute(
'data-agent-id',
'300d0137-fd6b-4e72-9e53-86bb80f39bc3'
);
script.defer = true;
document.head.appendChild(script);
}
});