site/public/semantic/javascript/semantic.js
function(source, id, url) {
            module.debug('Generating embed html');
            var
              width = (settings.width == 'auto')
                ? $module.width()
                : settings.width,
              height = (settings.height == 'auto')
                ? $module.height()
                : settings.height,
              html
            ;
            if(source && id) {
              if(source == 'vimeo') {
                html = ''
                  + '<iframe src="http://player.vimeo.com/video/' + id + '?=' + module.generate.url(source) + '"'
                  + ' width="' + width + '" height="' + height + '"'
                  + ' frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'
                ;
              }
              else if(source == 'youtube') {
                html = ''
                  + '<iframe src="http://www.youtube.com/embed/' + id + '?=' + module.generate.url(source) + '"'
                  + ' width="' + width + '" height="' + height + '"'
                  + ' frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'
                ;
              }
            }
            else if(url) {
              html = ''
                + '<iframe src="' + url + '"'
                + ' width="' + width + '" height="' + height + '"'
                + ' frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'
              ;
            }
            else {
              module.error(error.noVideo);
            }
            return html;
          }
function(source, id, url) {
            module.debug('Generating embed html');
            var
              width = (settings.width == 'auto')
                ? $module.width()
                : settings.width,
              height = (settings.height == 'auto')
                ? $module.height()
                : settings.height,
              html
            ;
            if(source && id) {
              if(source == 'vimeo') {
                html = ''
                  + '<iframe src="http://player.vimeo.com/video/' + id + '?=' + module.generate.url(source) + '"'
                  + ' width="' + width + '" height="' + height + '"'
                  + ' frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'
                ;
              }
              else if(source == 'youtube') {
                html = ''
                  + '<iframe src="http://www.youtube.com/embed/' + id + '?=' + module.generate.url(source) + '"'
                  + ' width="' + width + '" height="' + height + '"'
                  + ' frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'
                ;
              }
            }
            else if(url) {
              html = ''
                + '<iframe src="' + url + '"'
                + ' width="' + width + '" height="' + height + '"'
                + ' frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'
              ;
            }
            else {
              module.error(error.noVideo);
            }
            return html;
          }
function ( source , id , url ) { module . debug ( 'Generating embed html' ) ; var width = ( settings . width == 'auto' ) ? $module . width ( ) : settings . width , height = ( settings . height == 'auto' ) ? $module . height ( ) : settings . height , html ; if ( source && id ) { if ( source == 'vimeo' ) { html = '' + '<iframe src="http://player.vimeo.com/video/' + id + '?=' + module . generate . url ( source ) + '"' + ' width="' + width + '" height="' + height + '"' + ' frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>' ; } else if ( source == 'youtube' ) { html = '' + '<iframe src="http://www.youtube.com/embed/' + id + '?=' + module . generate . url ( source ) + '"' + ' width="' + width + '" height="' + height + '"' + ' frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>' ; } } else if ( url ) { html = '' + '<iframe src="' + url + '"' + ' width="' + width + '" height="' + height + '"' + ' frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>' ; } else { module . error ( error . noVideo ) ; } return html ; }
generates iframe html
generates iframe html