OndaComponents.push({
el: document.getElementById('onda-service-detail'),
name: 'Activity_Service',
props: {
code: 'monte-solaro-e-punta-cannone',
urls: {
cart: '/it/cart?hash=%hash',
service_request: ''
},
onDataReady: data => {
if (data.site_noindex === 'Y') {
var m = document.createElement('meta');
m.setAttribute('name', 'robots');
m.setAttribute('content', 'noindex');
document.head.appendChild(m);
}
document.getElementsByTagName('title')[0].text = data.name;
document.querySelector('meta[name=description]').setAttribute('content', data.short_description);
}
}
});
–>