document.write(`
`);
jQuery(document).ready(function() {
var ua = navigator.userAgent;
var re = new RegExp('MSIE ([0-9]{1,}[\.0-9]{0,})');
var played_7274d3760ef46df5be530ecc8c54c78e = false;
const targetNode = document.getElementById('green-player-7274d3760ef46df5be530ecc8c54c78e');
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_7274d3760ef46df5be530ecc8c54c78e);
if (!played_7274d3760ef46df5be530ecc8c54c78e) {
$.post('https://radio.montornes.cat/radios/las-mananas-de-radio-montornes/2024/04/15/las-mananas-joan-peiro-presenta-el-disc-amor-nomada', {
play: true
});
played_7274d3760ef46df5be530ecc8c54c78e = true;
}
}
}
};
const observer = new MutationObserver(callback);
observer.observe(targetNode, observerConf);
});