diff --git a/botanjs/src/Astro/Blog/Components/Video.js b/botanjs/src/Astro/Blog/Components/Video.js index 4d6196c..93b3e1a 100644 --- a/botanjs/src/Astro/Blog/Components/Video.js +++ b/botanjs/src/Astro/Blog/Components/Video.js @@ -30,12 +30,12 @@ type = type.split( "_" )[0]; // showVimeoPlayer / showYoutubePlayer - var cfunc = function( e ) { createPlayer( this.vid, "https://www.youtube.com/embed/" ); }; + var cfunc = function( e ) { createPlayer( this.vid, "//www.youtube.com/embed/" ); }; if( type[0] == "v" ) { getVimeoThumbnail( vid ); - cfunc = function( e ) { createPlayer( this.vid, "http://player.vimeo.com/video/" ); }; + cfunc = function( e ) { createPlayer( this.vid, "//player.vimeo.com/video/" ); }; } vid.onclick = cfunc.bind({ vid: vid }); @@ -83,7 +83,7 @@ var getVimeoThumbnail = function ( vtag ) { getData( - "https://vimeo.com/api/oembed.json?url=https%3A//vimeo.com/" + vtag.getAttribute( "value" ) + "//vimeo.com/api/oembed.json?url=https%3A//vimeo.com/" + vtag.getAttribute( "value" ) , parseObj.bind( vtag ) , noThumb.bind( vtag ) );