document.write(`
`);
jQuery(document).ready(function() {
	var ua = navigator.userAgent;
	var re  = new RegExp('MSIE ([0-9]{1,}[\.0-9]{0,})');
    var played_f1cd1a9cf9f1ba789338dd0ae3e18dc2 = false;
            const targetNode = document.getElementById('green-player-f1cd1a9cf9f1ba789338dd0ae3e18dc2');
        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_f1cd1a9cf9f1ba789338dd0ae3e18dc2);
                    if (!played_f1cd1a9cf9f1ba789338dd0ae3e18dc2) {
                        $.post('https://radio.montornes.cat/radios/la-llanterna-magica/2023/09/22/la-llanterna-magica-javier-bardem-premi-donostia-2023', {
                            play: true
                        });
                        played_f1cd1a9cf9f1ba789338dd0ae3e18dc2 = true;
                    }
                }
            }
        };
        const observer = new MutationObserver(callback);
        observer.observe(targetNode, observerConf);
    });