Fixed vimeo https link

This commit is contained in:
斟酌 鵬兄 2017-10-24 10:13:49 +08:00
parent 06700757ce
commit a83b5c0680

View File

@ -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 )
);