1
In the script below it is possible to call an external file through this <div>
<div id="script" class="#"></div>
Watch this excerpt from the script:
https://'+id+'?=
how do I make it through <div>
<div id="script" class="#">
</div>
especially the part class="#"
is the area responsible for calling the script '+id+'
Here is the script:
function (obj) {
document.getElementById('script').appendChild(get_embed(obj['feed']['media']['content']));
}
var ts = Math.round((new Date()).getTime() / 1000);
var script = document.createElement('script');
script.src = 'https://'+id+'?'+(Math.round(ts/3600)).toFixed();
document.body.appendChild(script);
sorry, I managed to do now, had an extra code in the script, thanks for the help
– Endou