1H5P.ActionBar=(function($,EventDispatcher){"use strict";function ActionBar(displayOptions){EventDispatcher.call(this);var self=this;var hasActions=!1;var $actions=H5P.jQuery('<ul class="h5p-actions"></ul>');var addActionButton=function(type,customClass){var handler=function(){self.trigger(type)};H5P.jQuery('<li/>',{'class':'h5p-button h5p-noselect h5p-'+(customClass?customClass:type),role:'button',tabindex:0,title:H5P.t(type+'Description'),html:H5P.t(type),on:{click:handler,keypress:function(e){if(e.which===32){handler();e.preventDefault()}}},appendTo:$actions});hasActions=!0};if(displayOptions.export||displayOptions.copy){addActionButton('reuse','export')} 2if(displayOptions.copyright){addActionButton('copyrights')} 3if(displayOptions.embed){addActionButton('embed')} 4if(displayOptions.icon){H5P.jQuery('<li><a class="h5p-link" href="http://h5p.org" target="_blank" title="'+H5P.t('h5pDescription')+'"></a></li>').appendTo($actions);hasActions=!0} 5self.getDOMElement=function(){return $actions};self.hasActions=function(){return hasActions}} 6ActionBar.prototype=Object.create(EventDispatcher.prototype);ActionBar.prototype.constructor=ActionBar;return ActionBar})(H5P.jQuery,H5P.EventDispatcher) 7;
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.