__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/**
* @class
* @augments H5P.EventDispatcher
* @param {Object} displayOptions
* @param {boolean} displayOptions.export Triggers the display of the 'Download' button
* @param {boolean} displayOptions.copyright Triggers the display of the 'Copyright' button
* @param {boolean} displayOptions.embed Triggers the display of the 'Embed' button
* @param {boolean} displayOptions.icon Triggers the display of the 'H5P icon' link
*/
H5P.ActionBar = (function ($, EventDispatcher) {
"use strict";
function ActionBar(displayOptions) {
EventDispatcher.call(this);
/** @alias H5P.ActionBar# */
var self = this;
var hasActions = false;
// Create action bar
var $actions = H5P.jQuery('<ul class="h5p-actions"></ul>');
/**
* Helper for creating action bar buttons.
*
* @private
* @param {string} type
* @param {string} customClass Instead of type class
*/
var addActionButton = function (type, customClass) {
/**
* Handles selection of action
*/
var handler = function () {
self.trigger(type);
};
const $actionList = H5P.jQuery('<li/>', {
'class': 'h5p-button h5p-noselect h5p-' + (customClass ? customClass : type),
appendTo: $actions
});
const $actionButton = H5P.jQuery('<button/>', {
tabindex: 0,
'aria-label': H5P.t(type + 'Description'),
html: H5P.t(type),
on: {
click: handler,
keypress: function (e) {
if (e.which === 32) {
handler();
e.preventDefault(); // (since return false will block other inputs)
}
}
},
appendTo: $actionList
});
H5P.Tooltip($actionButton.get(0));
hasActions = true;
};
// Register action bar buttons
if (displayOptions.export || displayOptions.copy) {
// Add export button
addActionButton('reuse', 'export');
}
if (displayOptions.copyright) {
addActionButton('copyrights');
}
if (displayOptions.embed) {
addActionButton('embed');
}
if (displayOptions.icon) {
// Add about H5P button icon
const $h5pLogo = H5P.jQuery('<li><a class="h5p-link" href="http://h5p.org" target="_blank" aria-label="' + H5P.t('h5pDescription') + '"></a></li>').appendTo($actions);
H5P.Tooltip($h5pLogo.find('.h5p-link').get(0));
hasActions = true;
}
/**
* Returns a reference to the dom element
*
* @return {H5P.jQuery}
*/
self.getDOMElement = function () {
return $actions;
};
/**
* Does the actionbar contain actions?
*
* @return {Boolean}
*/
self.hasActions = function () {
return hasActions;
};
}
ActionBar.prototype = Object.create(EventDispatcher.prototype);
ActionBar.prototype.constructor = ActionBar;
return ActionBar;
})(H5P.jQuery, H5P.EventDispatcher);
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| settings | Folder | 0777 |
|
|
| h5p-action-bar.js | File | 2.87 KB | 0777 |
|
| h5p-confirmation-dialog.js | File | 12.21 KB | 0777 |
|
| h5p-content-type.js | File | 1.26 KB | 0777 |
|
| h5p-content-upgrade-process.js | File | 9.37 KB | 0777 |
|
| h5p-content-upgrade-worker.js | File | 1.47 KB | 0777 |
|
| h5p-content-upgrade.js | File | 11.29 KB | 0777 |
|
| h5p-data-view.js | File | 11.95 KB | 0777 |
|
| h5p-display-options.js | File | 1.28 KB | 0777 |
|
| h5p-embed.js | File | 1.93 KB | 0777 |
|
| h5p-event-dispatcher.js | File | 6.29 KB | 0777 |
|
| h5p-hub-registration.js | File | 161.72 KB | 0777 |
|
| h5p-hub-sharing.js | File | 235.33 KB | 0777 |
|
| h5p-library-details.js | File | 10.7 KB | 0777 |
|
| h5p-library-list.js | File | 4.22 KB | 0777 |
|
| h5p-resizer.js | File | 3.57 KB | 0777 |
|
| h5p-tooltip.js | File | 6.98 KB | 0777 |
|
| h5p-utils.js | File | 12.51 KB | 0777 |
|
| h5p-version.js | File | 926 B | 0777 |
|
| h5p-x-api-event.js | File | 8.55 KB | 0777 |
|
| h5p-x-api.js | File | 3.64 KB | 0777 |
|
| h5p.js | File | 87.13 KB | 0777 |
|
| jquery.js | File | 88.08 KB | 0777 |
|
| request-queue.js | File | 11.41 KB | 0777 |
|