File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 644644 if ( src . match ( / y o u t u b e \. c o m \/ w a t c h \? v = ( [ a - z A - Z 0 - 9 \- _ ] + ) / ) || src . match ( / v i m e o \. c o m \/ ( [ 0 - 9 ] * ) / ) || src . match ( / y o u t u \. b e \/ ( [ a - z A - Z 0 - 9 \- _ ] + ) / ) ) {
645645 return true ;
646646 }
647+
648+ if ( src . toLowerCase ( ) . indexOf ( "swipeboxvideo=1" ) >= 0 ) {
649+
650+ return true ;
651+ }
647652 }
648653
649654 } ,
667672 iframe = '<iframe width="560" height="315" src="//player.vimeo.com/video/' + vimeoUrl [ 1 ] + '?byline=0&portrait=0&color=' + plugin . settings . vimeoColor + '" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>' ;
668673
669674 }
675+
676+ if ( youtubeShortUrl || youtubeShortUrl || vimeoUrl ) {
677+
678+ } else {
679+ iframe = '<iframe width="560" height="315" src="' + url + '" frameborder="0" allowfullscreen></iframe>' ;
680+ }
670681
671682 return '<div class="swipebox-video-container" style="max-width:' + plugin . settings . videomaxWidth + 'px"><div class="swipebox-video">' + iframe + '</div></div>' ;
672683 } ,
You can’t perform that action at this time.
0 commit comments