I am trying to embed a widget in a phonegap / cordova application with standard code:
<a class="twitter-timeline" href="https://twitter.com/Elevraadet_OG" data-widget-id="xxxxxxxxxxxxxxxxxx" data-chrome="noheader nofooter transparent noscrollbar" data-tweet-limit="16">Tweets af @Elevraadet_OG</a>
<script>
!function(d,s,id){
var js,
fjs=d.getElementsByTagName(s)[0],
p=/^http:/.test(d.location)?'http':'https';
if(!d.getElementById(id))
{
js=d.createElement(s);
js.id=id;
js.src=p+"://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js,fjs);
}
}(document,"script","twitter-wjs");
</script>
Once this only creates a Tweets af @Elevraadet_OG link instead of a widget, why doesn't it work?
source
share