Quantcast
Channel: responsive – WordPress.org Forums
Viewing all articles
Browse latest Browse all 16569

Marc on "[Plugin: Twitch TV Embed Suite] Add responsive player for responsive themes"

$
0
0

Hi!

It would be great if the 100% setting would actually work for the height, too. It would be easy to adjust the height of the player object dynamically to the width of the parent element. Here is a function for js to do that:

var aspectHeight = function(width, aspect_w, aspect_h) {
      var height = width / aspect_w * aspect_h;
      return height;
    };

Would be great! Nice plugin btw! I would implement this feature myself but I don't know how to fork a plugin. It's far easier with git and github. =/

http://wordpress.org/plugins/twitch-tv-embed-suite/


Viewing all articles
Browse latest Browse all 16569

Trending Articles