document.write(`
`); jQuery(document).ready(function() { var ua = navigator.userAgent; var re = new RegExp('MSIE ([0-9]{1,}[\.0-9]{0,})'); var played_0121a028719733d53e6bd0183c5ea1da = false; const targetNode = document.getElementById('green-player-0121a028719733d53e6bd0183c5ea1da'); 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_0121a028719733d53e6bd0183c5ea1da); if (!played_0121a028719733d53e6bd0183c5ea1da) { $.post('https://radio.montornes.cat/radios/tiempo-de-flamenco/2023/12/04/tiempo-de-flamenco-entrevista-amb-antonio-jose-nieto', { play: true }); played_0121a028719733d53e6bd0183c5ea1da = true; } } } }; const observer = new MutationObserver(callback); observer.observe(targetNode, observerConf); });