1/* global _ovationAudioThemeSettings, AudiothemeTracks */ 2 3window.cue = window.cue || {}; 4window.ovation = window.ovation || {}; 5 6(function( window, $, undefined ) { 7 'use strict'; 8 9 var $document = $( document ), 10 l10n = _ovationAudioThemeSettings.l10n, 11 cue = window.cue, 12 ovation = window.ovation; 13 14 // Localize jquery.cue.js. 15 cue.l10n = $.extend( cue.l10n, l10n ); 16 17 $.extend( ovation, { 18 config: { 19 tracklist: { 20 classPrefix: 'mejs-', 21 cueSkin: 'ovation-tracklist', 22 cueSelectors: { 23 playlist: '.tracklist-area', 24 track: '.track', 25 trackCurrentTime: '.track-current-time', 26 trackDuration: '.track-duration' 27 }, 28 enableAutosize: false, 29 features: [ 'cueplaylist' ], 30 pluginPath: _ovationAudioThemeSettings.mejs.pluginPath, 31 setDimensions: false, 32 timeFormat: 'm:ss' 33 } 34 }, 35 36 initializeAudioTheme: function() { 37 ovation.setupMaps(); 38 ovation.setupTracklist(); 39 }, 40 41 /** 42 * Setup Google map scroll functionality. 43 */ 44 setupMaps: function() { 45 var $container = $( '.venue-map' ), 46 $map = $container.find( 'iframe' ); 47 48 // Set the mouse events to none when doc is ready. 49 $map.addClass( 'disable-pointer-events' ); 50 51 // Set mouse events to none when mouse up. 52 $container.on( 'mouseup',function() { 53 $map.addClass( 'disable-pointer-events' ); 54 }); 55 56 // Set mouse events free when mouse is down. 57 $container.on( 'mousedown',function() { 58 $map.removeClass( 'disable-pointer-events' ); 59 }); 60 61 // Because the mouse up doesn't work, set the pointer events to none 62 // when mouse leaves the map area. 63 $map.mouseleave(function () { 64 $map.addClass( 'disable-pointer-events' ); 65 }); 66 }, 67 68 /** 69 * Setup player tracklist. 70 */ 71 setupTracklist: function() { 72 var $tracklist = $( '.tracklist-area' ); 73 74 if ( $tracklist.length && $.isFunction( $.fn.cuePlaylist ) ) { 75 $tracklist.cuePlaylist( $.extend( this.config.tracklist, { 76 cuePlaylistTracks: AudiothemeTracks.record 77 })); 78 } 79 } 80 }); 81 82 $document.ready( ovation.initializeAudioTheme ); 83 84})( this, 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.