The title is not explaining anything but here is what I have to ask.
I'm working on someone's Blogger site who is displaying a whole webpage from another site of a different domain. We don't need the whole page to show up but a specific content which is a player streaming live from that reference site. I'm trying to hide everything except for that streaming element but could not do it. I've tried to make it work using js and jQuery but couldn't do it. While surfing around I found this but couldn't make it work either.
$('div:not(#player)').hide();
$('#player').appendTo('body');
player
is the id of the div
of the player I'm trying to display. Is it because of the Cross-origin Resource Sharing that I can't do anything using js or jQuery ? Talking about which I don't want to modify anything of the second webpage, just to hide every other element without the player
. How can I do it ?
In here anyone can see the page I'm trying to work on: http://goo.gl/Y6AwII
P.S. First question in this community, thanks in advanced for any help :)
Edit: Since site1.com is streaming who has proper rights, so anyone who tries to embed the player on his/her own site should know that it won't work. Because the streaming server will not stream to any other domain except for the authorized one. And so I'm closing the question but any discussion on topic is welcomed. Thank you everyone for your comments and answers as indeed they helped.