1// logo 2(function($){ 3 MediaElementPlayer.prototype.buildlogo = function(player, controls, layers, media){ 4 var loop = $('<div class="mejs-button mejs-logo-button">' + 5 '<img class="wpbeautify-video-logo" src="' + player.options.logo.image + '" />' + 6 '</div>') 7 // append it to the toolbar 8 .appendTo(layers) 9 // add a click toggle event 10/* .click(function(){ 11 window.open(player.options.logo.link, '_blank'); 12 });*/ 13 }; 14})(jQuery); 15 16/* global mejs, _wpmejsSettings */ 17(function ($) { 18 // add mime-type aliases to MediaElement plugin support 19 mejs.plugins.silverlight[0].types.push('video/x-ms-wmv'); 20 mejs.plugins.silverlight[0].types.push('audio/x-ms-wma'); 21 22// mejs.plugins = mejs.plugins.slice(1); 23 $(function () { 24 if ((wpbeautify_video.logo_url != null) && (wpbeautify_video.logo_url != '')) { 25 // console.log(wpbeautify_video.logo_url) 26 var settings = { 27 features: ['logo','playpause', 'progress', 'duration', 'volume', 'fullscreen'], 28 logo: { image: wpbeautify_video.logo_url, link: '' } 29 }; 30 } 31 else { 32 var settings = {} 33 } 34 // var settings = {} 35 36 if ( typeof _wpmejsSettings !== 'undefined' ) 37 settings.pluginPath = _wpmejsSettings.pluginPath; 38 39 var settings_horizontal = jQuery.extend(true, {}, settings); 40 settings_horizontal.videoVolume = 'horizontal'; 41 42 $('.wp-audio-shortcode:not(".wpbtfy-volume-horizontal"), .wp-video-shortcode:not(".wpbtfy-volume-horizontal")').mediaelementplayer( settings ); 43 $('.wp-audio-shortcode.wpbtfy-volume-horizontal, .wp-video-shortcode.wpbtfy-volume-horizontal').mediaelementplayer( settings_horizontal ); 44 }); 45 46}(jQuery));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.