var stylesheet = document.createElement('link'); stylesheet.setAttribute('rel', 'stylesheet'); stylesheet.setAttribute('type', 'text/css'); stylesheet.setAttribute('href', 'https://www.openaire.eu/components/com_openaire/css/widget.css'); document.getElementsByTagName('head')[0].appendChild(stylesheet); var script = document.createElement('script'); script.setAttribute('type', 'text/javascript'); script.setAttribute('src', 'https://www.openaire.eu/components/com_openaire/js/widget.js'); document.getElementById('oa_widget').appendChild(script); var data = document.createElement('script'); data.setAttribute('type', 'text/javascript'); data.setAttribute('src', 'https://www.openaire.eu/index.php?option=com_openaire&view=data&format=raw&ga=692103&funder=ec__________::EC&type=dataset&hideOnEmpty=false'); document.getElementById('oa_widget').appendChild(data);