- Local time
- 00:55
- Joined
- Oct 13, 2019
- Messages
- 49
Hey
I'm trying to fire this script, but it's not liking the closing </script> it seems to be looking at the closing </script> in prdom.query. How would I make this work correctly?
Cheers
JavaScript:
<script class="pb">
function DoSomething(e){
e.data.forEach( ele => {
if (ele.id == '1113069') {
prdom.query('#belowimage').html('<div align="center" id="chasethetrend_320x50_quiz_sticky"><script data-cfasync="false" type="text/javascript">freestar.queue.push(function(){googletag.display("chasethetrend_320x50_quiz_sticky");});</script>');
console.log('NTV-NoAd Executed');
}})
}
var ntvSubscribe = function(){
ntv.Events.PubSub.subscribe("noad", DoSomething)
}
var ntvLoad = function() {
if (window.ntv) {
ntvSubscribe();
} else {
setTimeout(ntvLoad, 100);
}
}
ntvLoad();
</script>
Last edited: