X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/h5p/h5plib/v124/joubel/editor/scripts
home
/
cbholdings
/
pasukulu
/
h5p
/
h5plib
/
v124
/
joubel
/
editor
/
scripts
/
📁
..
📄
h5p-hub-client.js
(331.61 KB)
📄
h5peditor-av.js
(21.38 KB)
📄
h5peditor-boolean.js
(1.99 KB)
📄
h5peditor-coordinates.js
(5.1 KB)
📄
h5peditor-dimensions.js
(4.26 KB)
📄
h5peditor-editor.js
(18.25 KB)
📄
h5peditor-file-uploader.js
(3.69 KB)
📄
h5peditor-file.js
(8.54 KB)
📄
h5peditor-form.js
(14 KB)
📄
h5peditor-fullscreen-bar.js
(2.7 KB)
📄
h5peditor-group.js
(10.39 KB)
📄
h5peditor-html.js
(17.01 KB)
📄
h5peditor-image-popup.js
(12.1 KB)
📄
h5peditor-image.js
(8.09 KB)
📄
h5peditor-init.js
(3.72 KB)
📄
h5peditor-library-list-cache.js
(3.38 KB)
📄
h5peditor-library-selector.js
(9.97 KB)
📄
h5peditor-library.js
(16.98 KB)
📄
h5peditor-list-editor.js
(10.4 KB)
📄
h5peditor-list.js
(9.08 KB)
📄
h5peditor-metadata-author-widget.js
(3.91 KB)
📄
h5peditor-metadata-changelog-widget.js
(7.5 KB)
📄
h5peditor-metadata.js
(14.66 KB)
📄
h5peditor-none.js
(918 B)
📄
h5peditor-number.js
(4.79 KB)
📄
h5peditor-pre-save.js
(3.62 KB)
📄
h5peditor-select.js
(3.24 KB)
📄
h5peditor-selector-hub.js
(7.76 KB)
📄
h5peditor-selector-legacy.js
(3.11 KB)
📄
h5peditor-semantic-structure.js
(7.39 KB)
📄
h5peditor-text.js
(3.15 KB)
📄
h5peditor-textarea.js
(2.68 KB)
📄
h5peditor.js
(53.53 KB)
Editing: h5peditor-fullscreen-bar.js
/* global H5PEditor */ H5PEditor.FullscreenBar = (function ($) { function FullscreenBar ($mainForm, library) { const title = H5PEditor.libraryCache[library] ? H5PEditor.libraryCache[library].title : library; const iconId = library.split(' ')[0].split('.')[1].toLowerCase(); let isInFullscreen = false; let exitSemiFullscreen; $mainForm.addClass('h5peditor-form-manager'); // Add fullscreen bar const $bar = ns.$('<div/>', { 'class': 'h5peditor-form-manager-head' }) const $breadcrumb = ns.$('<div/>', { 'class': 'h5peditor-form-manager-breadcrumb', appendTo: $bar }); const $title = ns.$('<div/>', { 'class': 'h5peditor-form-manager-title ' + iconId, text: title, appendTo: $breadcrumb }); const fullscreenButton = createButton('fullscreen', '', function () { if (isInFullscreen) { // Trigger semi-fullscreen exit exitSemiFullscreen(); } else { // Trigger semi-fullscreen enter exitSemiFullscreen = H5PEditor.semiFullscreen($mainForm, function () { fullscreenButton.setAttribute('aria-label', H5PEditor.t('core', 'exitFullscreenButtonLabel')); isInFullscreen = true; }, function () { fullscreenButton.setAttribute('aria-label', H5PEditor.t('core', 'enterFullscreenButtonLabel')) isInFullscreen = false; }); } }, H5PEditor.t('core', 'enterFullscreenButtonLabel')); // Create 'Proceed to save' button const proceedButton = createButton('proceed', H5PEditor.t('core', 'proceedButtonLabel'), function () { exitSemiFullscreen(); }); $bar.append(proceedButton); $bar.append(fullscreenButton); $mainForm.prepend($bar); } /** * Helper for creating buttons. * * @private * @param {string} id * @param {string} text * @param {function} clickHandler * @param {string} ariaLabel * @return {Element} */ const createButton = function (id, text, clickHandler, ariaLabel) { if (ariaLabel === undefined) { ariaLabel = text; } const button = document.createElement('button'); button.setAttribute('type', 'button'); button.classList.add('h5peditor-form-manager-button'); button.classList.add('h5peditor-form-manager-' + id); button.setAttribute('aria-label', ariaLabel); button.addEventListener('click', clickHandler); // Create special inner filler to avoid focus from pointer devices. const content = document.createElement('span'); content.classList.add('h5peditor-form-manager-button-inner'); content.innerText = text content.tabIndex = -1; button.appendChild(content); return button; }; return FullscreenBar; }(ns.jQuery));
Upload File
Create Folder