Does this support https?

My forum is hosted on https.

So any youtube, image, etc must also use the https embed as to not display non-secure content.

I tried looking into the .js, and I guess I am a little lost, but I tried this area-

var urlo = (url == document.URL) ? document.location : $('')[0],
            urlp = {
                protocol: urlo.protocol.slice(0, urlo.protocol.length - 1),
                host: urlo.hostname,
                port: urlo.port,
                path: urlo.pathname,
                query: urlo.search,

and

var newel = $(''),
            id = 'YT_'+ hash +'_'+ (new Date).getTime();
        newel.attr('height', height);
        newel.attr('src', 'https://www.youtube.com/embed/'+ hash +'?rel=0&autoplay=1&theme=light&enablejsapi=1&width='+width+'&height='+height);

Comments

Sign In or Register to comment.