1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Looking for a jQuery/JS solution for making a Youtube video responsive

Discussion in 'JavaScript' started by kayut, Oct 11, 2018.

  1. #1
    Hi,

    Looking for a solution to make a Youtube video iframe responsive I found this page:

    Fluid Width Video

    Now I'm trying for hours to apply it on my code example here:

    Trying to make it responsive

    but it's not working and I don't understand why.

    Could you please help me with this? I'm not looking for a CSS solution. I'm looking for a jQuery/JS solution.

    Thanks
     
    kayut, Oct 11, 2018 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #2
    Why are you looking for the slow broken inaccessible halfwitted dumbas ignorant way of doing it, when we're basically talking one DIV and a half dozen lines of CSS?

    OF COURSE it's taking hours. What's stopping you from doing it RIGHT and instead trying to use JS to do something that's NONE OF IT'S FLIPPING BUSINESS?!?
     
    deathshadow, Oct 24, 2018 IP