forked from Botanical/BotanJS
Fixed vimeo https link
This commit is contained in:
parent
06700757ce
commit
a83b5c0680
@ -30,12 +30,12 @@
|
|||||||
type = type.split( "_" )[0];
|
type = type.split( "_" )[0];
|
||||||
|
|
||||||
// showVimeoPlayer / showYoutubePlayer
|
// 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" )
|
if( type[0] == "v" )
|
||||||
{
|
{
|
||||||
getVimeoThumbnail( vid );
|
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 });
|
vid.onclick = cfunc.bind({ vid: vid });
|
||||||
@ -83,7 +83,7 @@
|
|||||||
var getVimeoThumbnail = function ( vtag )
|
var getVimeoThumbnail = function ( vtag )
|
||||||
{
|
{
|
||||||
getData(
|
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 )
|
, parseObj.bind( vtag )
|
||||||
, noThumb.bind( vtag )
|
, noThumb.bind( vtag )
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user