1window.app = {}; 2 3app.SearchBarMobile = function($el) { 4 // The containing DOM element 5 this.$el = $el; 6 this.$icon = $('.js-icon-mobile-search'); 7 8 this.toggleSearchBarMobile(); 9}; 10 11app.SearchBarMobile.prototype.toggleSearchBarMobile = function() { 12 var self = this; 13 14 $(this.$el).on('keyup', function() { 15 if($(this).val().length < 1) { 16 self.$icon.removeClass(ACTIVE_CLASS); 17 } else { 18 self.$icon.addClass(ACTIVE_CLASS); 19 } 20 }); 21}; 22 23app.SearchBar = function($el) { 24 // The containing DOM element 25 this.$el = $el; 26 this.toggleSearchBar(); 27}; 28 29app.SearchBar.prototype.toggleSearchBar = function() { 30 $(this.$el).click(function() { 31 $('.js-search-bar-header').toggleClass('active'); 32 $('.js-search-whiteout').toggleClass('active'); 33 $('.js-search-outline').focus(); 34 }); 35}; 36 37app.Menu = function($el) { 38 // The containing DOM element 39 this.$el = $el; 40 41 this.toggleMenu(); 42}; 43 44app.Menu.prototype.toggleMenu = function() { 45 $(this.$el).click(function() { 46 $('.mast_nav').toggleClass('active'); 47 }); 48}; 49 50(function() { 51 if ($('.js-menu-toggle').length) { 52 var menu = new app.Menu($('.js-menu-toggle')); 53 } 54 if ($('.js-search-toggle').length) { 55 var searchbar = new app.SearchBar($('.js-search-toggle')); 56 } 57 if ($('.js-search-mobile-toggle').length) { 58 var searchbarmobile = new app.SearchBarMobile($('.js-search-mobile-toggle')); 59 } 60 $('.js-player').each(function() { 61 var player = new window.ApmPlayer.Player($(this)[0]); 62 player.init(); 63 }); 64 65})();
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.