document.write(`
`);
jQuery(document).ready(function() {
var ua = navigator.userAgent;
var re = new RegExp('MSIE ([0-9]{1,}[\.0-9]{0,})');
var played_c509c62ffdb4070afacaafbb079a2d1e = false;
const targetNode = document.getElementById('green-player-c509c62ffdb4070afacaafbb079a2d1e');
const observerConf = { attributes: true, childList: true, subtree: true };
const callback = function(mutationsList, observer) {
// Use traditional 'for loops' for IE 11
for(const mutation of mutationsList) {
if (mutation.type === 'attributes' && mutation.attributeName == 'aria-label') {
console.log('The ' + mutation.attributeName + ' attribute was modified.');
console.log(played_c509c62ffdb4070afacaafbb079a2d1e);
if (!played_c509c62ffdb4070afacaafbb079a2d1e) {
$.post('https://radio.montornes.cat/radios/la-llanterna-magica/2025/06/27/la-llanterna-magica-howard-shore', {
play: true
});
played_c509c62ffdb4070afacaafbb079a2d1e = true;
}
}
}
};
const observer = new MutationObserver(callback);
observer.observe(targetNode, observerConf);
});