Merge branch 'master' of github.com:h5p/h5p-php-library
commit
96694e4c70
23
js/h5p.js
23
js/h5p.js
|
@ -139,12 +139,12 @@ H5P.init = function (target) {
|
|||
'<div role="button" ' +
|
||||
'tabindex="0" ' +
|
||||
'class="h5p-enable-fullscreen" ' +
|
||||
'aria-label="' + H5P.t('fullscreen') +
|
||||
'title="' + H5P.t('fullscreen') + '">' +
|
||||
'</div>' +
|
||||
'</div>')
|
||||
.prependTo($container)
|
||||
.children()
|
||||
.click(function () {
|
||||
.children().click(function () {
|
||||
H5P.fullScreen($container, instance);
|
||||
})
|
||||
.keydown(function (e) {
|
||||
|
@ -569,7 +569,7 @@ H5P.fullScreen = function ($element, instance, exitCallback, body, forceSemiFull
|
|||
}
|
||||
|
||||
before('h5p-semi-fullscreen');
|
||||
var $disable = H5P.jQuery('<div role="button" tabindex="0" class="h5p-disable-fullscreen" title="' + H5P.t('disableFullscreen') + '"></div>').appendTo($container.find('.h5p-content-controls'));
|
||||
var $disable = H5P.jQuery('<div role="button" tabindex="0" class="h5p-disable-fullscreen" title="' + H5P.t('disableFullscreen') + '" aria-label="' + H5P.t('disableFullscreen') + '"></div>').appendTo($container.find('.h5p-content-controls'));
|
||||
var keyup, disableSemiFullscreen = H5P.exitFullScreen = function () {
|
||||
if (prevViewportContent) {
|
||||
// Use content from the previous viewport tag
|
||||
|
@ -924,27 +924,22 @@ H5P.Dialog = function (name, title, content, $element) {
|
|||
<div class="h5p-inner">\
|
||||
<h2>' + title + '</h2>\
|
||||
<div class="h5p-scroll-content">' + content + '</div>\
|
||||
<div class="h5p-close" role="button" tabindex="0" title="' + H5P.t('close') + '">\
|
||||
<div class="h5p-close" role="button" tabindex="0" aria-label="' + H5P.t('close') + '" title="' + H5P.t('close') + '">\
|
||||
</div>\
|
||||
</div>')
|
||||
.insertAfter($element)
|
||||
.click(function () {
|
||||
self.close();
|
||||
})
|
||||
.children('.h5p-inner')
|
||||
.click(function () {
|
||||
.children('.h5p-inner').click(function () {
|
||||
return false;
|
||||
})
|
||||
.find('.h5p-close')
|
||||
.click(function () {
|
||||
.find('.h5p-close').click(function () {
|
||||
self.close();
|
||||
})
|
||||
.end()
|
||||
.find('a')
|
||||
.click(function (e) {
|
||||
}).end()
|
||||
.find('a').click(function (e) {
|
||||
e.stopPropagation();
|
||||
})
|
||||
.end()
|
||||
}).end()
|
||||
.end();
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue