diff --git a/plugins/h5p-drawing-board/drawing-board.js b/plugins/h5p-drawing-board/drawing-board.js index 5a794fc..45e6cf1 100644 --- a/plugins/h5p-drawing-board/drawing-board.js +++ b/plugins/h5p-drawing-board/drawing-board.js @@ -26,6 +26,9 @@ H5P.DrawingBoard = (function (_$) { * @param {string | undefined} options.backgroundColor * @param {string} options.fileName * @param {boolean} options.devMode + * @param {string} options.buttonNew + * @param {string} options.buttonSave + * @param {string} options.buttonFulls * @param {number} id */ function C(options, id) { @@ -95,7 +98,7 @@ H5P.DrawingBoard = (function (_$) { const {majorVersion, minorVersion} = this.libraryInfo; this.log(`initializing H5P Drawing Board (v${version} | ${majorVersion}.${minorVersion})`); $container.addClass('h5p-drawing-board'); - const {header, description, hideText} = this.options; + const {header, description, hideText, buttonNew, buttonSave, buttonFulls, buttonFullsExit} = this.options; const {id} = this; const {hostname} = window.location; const LOCAL_STORAGE_KEY = `h5p-drawing-board-canvas-storage-${version}-${hostname}-${id}`; @@ -386,9 +389,9 @@ H5P.DrawingBoard = (function (_$) { $container.append(`
- - - + + +
`); @@ -411,13 +414,13 @@ H5P.DrawingBoard = (function (_$) { this.on('enterFullScreen', () => { this.log('entering fullscreen'); - fullscreenButton.innerHTML = 'Vollbildmodus beenden'; + fullscreenButton.innerHTML = buttonFullsExit; title.style.display = 'none'; descr.style.display = 'none'; }); this.on('exitFullScreen', () => { this.log('exiting fullscreen'); - fullscreenButton.innerHTML = 'Vollbildmodus'; + fullscreenButton.innerHTML = buttonFulls; title.style.display = 'block'; descr.style.display = 'block'; }); diff --git a/plugins/h5p-drawing-board/library.json b/plugins/h5p-drawing-board/library.json index c89a70c..2b23e07 100644 --- a/plugins/h5p-drawing-board/library.json +++ b/plugins/h5p-drawing-board/library.json @@ -4,7 +4,7 @@ "description": "Displays a simple drawing board", "majorVersion": 1, "minorVersion": 3, - "patchVersion": 12, + "patchVersion": 14, "runnable": 1, "author": "Stefan Wintergerst", "license": "MIT", diff --git a/plugins/h5p-drawing-board/semantics.json b/plugins/h5p-drawing-board/semantics.json index 2acefc8..a30161c 100644 --- a/plugins/h5p-drawing-board/semantics.json +++ b/plugins/h5p-drawing-board/semantics.json @@ -41,5 +41,33 @@ "type": "boolean", "default": false, "description": "Do not touch!" + }, + { + "label": "Bezeichung Button Neu", + "name": "buttonNew", + "type": "text", + "default": "Neu", + "description": "rename the Button New" + }, + { + "label": "Bezeichung Button Speichern", + "name": "buttonSave", + "type": "text", + "default": "Speichern", + "description": "rename the Button Save" + }, + { + "label": "Bezeichung Button Vollbild", + "name": "buttonFulls", + "type": "text", + "default": "Vollbild", + "description": "rename the Button Fullscreen" + }, + { + "label": "Bezeichung Button Vollbild beenden", + "name": "buttonFullsExit", + "type": "text", + "default": "Vollbild beenden", + "description": "rename the Button exit Fullscreen" } ] \ No newline at end of file