merge and tweak key shortcuts overlay #943
parent
d539c645c3
commit
9ff00a72ae
265
css/reveal.css
265
css/reveal.css
|
@ -1626,153 +1626,152 @@ body {
|
||||||
* LINK PREVIEW OVERLAY
|
* LINK PREVIEW OVERLAY
|
||||||
*********************************************/
|
*********************************************/
|
||||||
|
|
||||||
.reveal .preview-link-overlay {
|
.reveal .overlay {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
background: rgba( 0, 0, 0, 0.9 );
|
background: rgba( 0, 0, 0, 0.9 );
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
|
|
||||||
-webkit-transition: all 0.3s ease;
|
-webkit-transition: all 0.3s ease;
|
||||||
-moz-transition: all 0.3s ease;
|
-moz-transition: all 0.3s ease;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
}
|
}
|
||||||
.reveal .preview-link-overlay.visible {
|
.reveal .overlay.visible {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reveal .preview-link-overlay .spinner {
|
.reveal .overlay .spinner {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: block;
|
display: block;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
width: 32px;
|
width: 32px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
margin: -16px 0 0 -16px;
|
margin: -16px 0 0 -16px;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
background-image: url(data:image/gif;base64,R0lGODlhIAAgAPMAAJmZmf%2F%2F%2F6%2Bvr8nJybW1tcDAwOjo6Nvb26ioqKOjo7Ozs%2FLy8vz8%2FAAAAAAAAAAAACH%2FC05FV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HQtaLCwg1RAAAOwAAAAAAAAAAAA%3D%3D);
|
||||||
|
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
|
|
||||||
-webkit-transition: all 0.3s ease;
|
-webkit-transition: all 0.3s ease;
|
||||||
-moz-transition: all 0.3s ease;
|
-moz-transition: all 0.3s ease;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reveal .preview-link-overlay header {
|
.reveal .overlay header {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
border-bottom: 1px solid #222;
|
border-bottom: 1px solid #222;
|
||||||
}
|
}
|
||||||
.reveal .preview-link-overlay header a {
|
.reveal .overlay header a {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
float: right;
|
float: right;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.reveal .preview-link-overlay header a:hover {
|
.reveal .overlay header a:hover {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
.reveal .preview-link-overlay header a .icon {
|
.reveal .overlay header a .icon {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
|
|
||||||
background-position: 50% 50%;
|
background-position: 50% 50%;
|
||||||
background-size: 100%;
|
background-size: 100%;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
.reveal .preview-link-overlay header a.close .icon {
|
.reveal .overlay header a.close .icon {
|
||||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABkklEQVRYR8WX4VHDMAxG6wnoJrABZQPYBCaBTWAD2g1gE5gg6OOsXuxIlr40d81dfrSJ9V4c2VLK7spHuTJ/5wpM07QXuXc5X0opX2tEJcadjHuV80li/FgxTIEK/5QBCICBD6xEhSMGHgQPgBgLiYVAB1dpSqKDawxTohFw4JSEA3clzgIBPCURwE2JucBR7rhPJJv5OpJwDX+SfDjgx1wACQeJG1aChP9K/IMmdZ8DtESV1WyP3Bt4MwM6sj4NMxMYiqUWHQu4KYA/SYkIjOsm3BXYWMKFDwU2khjCQ4ELJUJ4SmClRArOCmSXGuKma0fYD5CbzHxFpCSGAhfAVSSUGDUk2BWZaff2g6GE15BsBQ9nwmpIGDiyHQddwNTMKkbZaf9fajXQca1EX44puJZUsnY0ObGmITE3GVLCbEhQUjGVt146j6oasWN+49Vph2w1pZ5EansNZqKBm1txbU57iRRcZ86RWMDdWtBJUHBHwoQPi1GV+JCbntmvok7iTX4/Up9mgyTc/FJYDTcndgH/AA5A/CHsyEkVAAAAAElFTkSuQmCC);
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABkklEQVRYR8WX4VHDMAxG6wnoJrABZQPYBCaBTWAD2g1gE5gg6OOsXuxIlr40d81dfrSJ9V4c2VLK7spHuTJ/5wpM07QXuXc5X0opX2tEJcadjHuV80li/FgxTIEK/5QBCICBD6xEhSMGHgQPgBgLiYVAB1dpSqKDawxTohFw4JSEA3clzgIBPCURwE2JucBR7rhPJJv5OpJwDX+SfDjgx1wACQeJG1aChP9K/IMmdZ8DtESV1WyP3Bt4MwM6sj4NMxMYiqUWHQu4KYA/SYkIjOsm3BXYWMKFDwU2khjCQ4ELJUJ4SmClRArOCmSXGuKma0fYD5CbzHxFpCSGAhfAVSSUGDUk2BWZaff2g6GE15BsBQ9nwmpIGDiyHQddwNTMKkbZaf9fajXQca1EX44puJZUsnY0ObGmITE3GVLCbEhQUjGVt146j6oasWN+49Vph2w1pZ5EansNZqKBm1txbU57iRRcZ86RWMDdWtBJUHBHwoQPi1GV+JCbntmvok7iTX4/Up9mgyTc/FJYDTcndgH/AA5A/CHsyEkVAAAAAElFTkSuQmCC);
|
||||||
}
|
}
|
||||||
.reveal .preview-link-overlay header a.external .icon {
|
.reveal .overlay header a.external .icon {
|
||||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAcElEQVRYR+2WSQoAIQwEzf8f7XiOMkUQxUPlGkM3hVmiQfQR9GYnH1SsAQlI4DiBqkCMoNb9y2e90IAEJPAcgdznU9+engMaeJ7Azh5Y1U67gAho4DqBqmB1buAf0MB1AlVBek83ZPkmJMGc1wAR+AAqod/B97TRpQAAAABJRU5ErkJggg==);
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAcElEQVRYR+2WSQoAIQwEzf8f7XiOMkUQxUPlGkM3hVmiQfQR9GYnH1SsAQlI4DiBqkCMoNb9y2e90IAEJPAcgdznU9+engMaeJ7Azh5Y1U67gAho4DqBqmB1buAf0MB1AlVBek83ZPkmJMGc1wAR+AAqod/B97TRpQAAAABJRU5ErkJggg==);
|
||||||
}
|
}
|
||||||
|
|
||||||
.reveal .preview-link-overlay .viewport {
|
.reveal .overlay .viewport {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 40px;
|
top: 40px;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reveal .preview-link-overlay .viewport iframe {
|
.reveal .overlay.overlay-preview .viewport iframe {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
|
||||||
max-width: 100%;
|
|
||||||
max-height: 100%;
|
|
||||||
border: 0;
|
|
||||||
|
|
||||||
opacity: 0;
|
|
||||||
visibility: hidden;
|
|
||||||
|
|
||||||
-webkit-transition: all 0.3s ease;
|
|
||||||
-moz-transition: all 0.3s ease;
|
|
||||||
transition: all 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.reveal .preview-link-overlay.loaded .viewport iframe {
|
|
||||||
opacity: 1;
|
|
||||||
visibility: visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
.reveal .preview-link-overlay.loaded .spinner {
|
|
||||||
opacity: 0;
|
|
||||||
visibility: hidden;
|
|
||||||
|
|
||||||
-webkit-transform: scale(0.2);
|
|
||||||
-moz-transform: scale(0.2);
|
|
||||||
-ms-transform: scale(0.2);
|
|
||||||
transform: scale(0.2);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.reveal .preview-link-overlay .viewport .shortcuts {
|
|
||||||
-webkit-column-count: 2;
|
|
||||||
-moz-column-count: 2;
|
|
||||||
column-count: 2;
|
|
||||||
font-size: 20px;
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin-left: 35%;
|
max-width: 100%;
|
||||||
margin-top: 20px;
|
max-height: 100%;
|
||||||
|
border: 0;
|
||||||
|
|
||||||
|
opacity: 0;
|
||||||
|
visibility: hidden;
|
||||||
|
|
||||||
|
-webkit-transition: all 0.3s ease;
|
||||||
|
-moz-transition: all 0.3s ease;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reveal .overlay.overlay-preview.loaded .viewport iframe {
|
||||||
|
opacity: 1;
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reveal .overlay.overlay-preview.loaded .spinner {
|
||||||
|
opacity: 0;
|
||||||
|
visibility: hidden;
|
||||||
|
|
||||||
|
-webkit-transform: scale(0.2);
|
||||||
|
-moz-transform: scale(0.2);
|
||||||
|
-ms-transform: scale(0.2);
|
||||||
|
transform: scale(0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.reveal .overlay.overlay-help .viewport .viewport-inner {
|
||||||
|
width: 600px;
|
||||||
|
height: 100%;
|
||||||
|
margin: 0 auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
letter-spacing: normal;
|
||||||
|
}
|
||||||
|
|
||||||
.reveal .preview-link-overlay .viewport .shortcuts table {
|
.reveal .overlay.overlay-help .viewport .viewport-inner .title {
|
||||||
border: 1px solid #fff;
|
font-size: 20px;
|
||||||
border-collapse: collapse;
|
margin-top: 60px;
|
||||||
font-size: 14px;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.reveal .preview-link-overlay .viewport .shortcuts table th{
|
.reveal .overlay.overlay-help .viewport .viewport-inner table {
|
||||||
border: 1px solid #fff;
|
border: 1px solid #fff;
|
||||||
height: 30px;
|
border-collapse: collapse;
|
||||||
width: 200px;
|
font-size: 14px;
|
||||||
padding: 10px;
|
}
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
.reveal .preview-link-overlay .viewport .shortcuts table tr td{
|
.reveal .overlay.overlay-help .viewport .viewport-inner table th {
|
||||||
border: 1px solid #fff;
|
height: 30px;
|
||||||
height: 30px;
|
}
|
||||||
vertical-align: middle;
|
|
||||||
padding: 5px;
|
.reveal .overlay.overlay-help .viewport .viewport-inner table th,
|
||||||
}
|
.reveal .overlay.overlay-help .viewport .viewport-inner table td {
|
||||||
|
width: 200px;
|
||||||
|
padding: 10px;
|
||||||
|
border: 1px solid #fff;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
115
js/reveal.js
115
js/reveal.js
|
@ -199,13 +199,13 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
// Holds information about the keyboard shortcuts
|
// Holds information about the keyboard shortcuts
|
||||||
keyboard_shortcuts = {
|
keyboardShortcuts = {
|
||||||
'p': 'Previous slide',
|
'P': 'Previous slide',
|
||||||
'n': 'Next slide',
|
'N': 'Next slide',
|
||||||
'h': 'Navigate left',
|
'H': 'Navigate left',
|
||||||
'l': 'Navigate right',
|
'L': 'Navigate right',
|
||||||
'k': 'Navigate up',
|
'K': 'Navigate up',
|
||||||
'j': 'Navigate down',
|
'J': 'Navigate down',
|
||||||
'Home': 'First slide',
|
'Home': 'First slide',
|
||||||
'End': 'Last slide',
|
'End': 'Last slide',
|
||||||
'b': 'Pause',
|
'b': 'Pause',
|
||||||
|
@ -1233,15 +1233,16 @@
|
||||||
/**
|
/**
|
||||||
* Opens a preview window for the target URL.
|
* Opens a preview window for the target URL.
|
||||||
*/
|
*/
|
||||||
function openPreview( url ) {
|
function showPreview( url ) {
|
||||||
|
|
||||||
closePreview();
|
closeOverlay();
|
||||||
|
|
||||||
dom.preview = document.createElement( 'div' );
|
dom.overlay = document.createElement( 'div' );
|
||||||
dom.preview.classList.add( 'preview-link-overlay' );
|
dom.overlay.classList.add( 'overlay' );
|
||||||
dom.wrapper.appendChild( dom.preview );
|
dom.overlay.classList.add( 'overlay-preview' );
|
||||||
|
dom.wrapper.appendChild( dom.overlay );
|
||||||
|
|
||||||
dom.preview.innerHTML = [
|
dom.overlay.innerHTML = [
|
||||||
'<header>',
|
'<header>',
|
||||||
'<a class="close" href="#"><span class="icon"></span></a>',
|
'<a class="close" href="#"><span class="icon"></span></a>',
|
||||||
'<a class="external" href="'+ url +'" target="_blank"><span class="icon"></span></a>',
|
'<a class="external" href="'+ url +'" target="_blank"><span class="icon"></span></a>',
|
||||||
|
@ -1252,76 +1253,79 @@
|
||||||
'</div>'
|
'</div>'
|
||||||
].join('');
|
].join('');
|
||||||
|
|
||||||
dom.preview.querySelector( 'iframe' ).addEventListener( 'load', function( event ) {
|
dom.overlay.querySelector( 'iframe' ).addEventListener( 'load', function( event ) {
|
||||||
dom.preview.classList.add( 'loaded' );
|
dom.overlay.classList.add( 'loaded' );
|
||||||
}, false );
|
}, false );
|
||||||
|
|
||||||
dom.preview.querySelector( '.close' ).addEventListener( 'click', function( event ) {
|
dom.overlay.querySelector( '.close' ).addEventListener( 'click', function( event ) {
|
||||||
closePreview();
|
closeOverlay();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}, false );
|
}, false );
|
||||||
|
|
||||||
dom.preview.querySelector( '.external' ).addEventListener( 'click', function( event ) {
|
dom.overlay.querySelector( '.external' ).addEventListener( 'click', function( event ) {
|
||||||
closePreview();
|
closeOverlay();
|
||||||
}, false );
|
}, false );
|
||||||
|
|
||||||
setTimeout( function() {
|
setTimeout( function() {
|
||||||
dom.preview.classList.add( 'visible' );
|
dom.overlay.classList.add( 'visible' );
|
||||||
}, 1 );
|
}, 1 );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Closes the iframe preview window.
|
* Opens a overlay window with help material.
|
||||||
*/
|
*/
|
||||||
function closePreview() {
|
function showHelp() {
|
||||||
|
|
||||||
if( dom.preview ) {
|
closeOverlay();
|
||||||
dom.preview.setAttribute( 'src', '' );
|
|
||||||
dom.preview.parentNode.removeChild( dom.preview );
|
dom.overlay = document.createElement( 'div' );
|
||||||
dom.preview = null;
|
dom.overlay.classList.add( 'overlay' );
|
||||||
|
dom.overlay.classList.add( 'overlay-help' );
|
||||||
|
dom.wrapper.appendChild( dom.overlay );
|
||||||
|
|
||||||
|
var html = '<p class="title">Keyboard Shortcuts</p><br/>';
|
||||||
|
|
||||||
|
html += '<table><th>KEY</th><th>ACTION</th>';
|
||||||
|
for( var key in keyboardShortcuts ) {
|
||||||
|
html += '<tr><td>' + key + '</td><td>' + keyboardShortcuts[ key ] + '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Opens a overlay window for the keyboard shortcuts.
|
|
||||||
*/
|
|
||||||
function openShortcutsOverlay() {
|
|
||||||
|
|
||||||
closePreview();
|
|
||||||
|
|
||||||
dom.preview = document.createElement( 'div' );
|
|
||||||
dom.preview.classList.add( 'preview-link-overlay' );
|
|
||||||
dom.wrapper.appendChild( dom.preview );
|
|
||||||
|
|
||||||
var html = '<h5>Keyboard Shortcuts</h5><br/>';
|
|
||||||
html += '<table> <th>KEY</th> <th>ACTION</th>';
|
|
||||||
for( var key in keyboard_shortcuts ) {
|
|
||||||
html += '<tr> <td>' + key + '</td> <td>' + keyboard_shortcuts[key] + '</td> </tr>'
|
|
||||||
}
|
|
||||||
html += '</table>';
|
html += '</table>';
|
||||||
|
|
||||||
dom.preview.innerHTML = [
|
dom.overlay.innerHTML = [
|
||||||
'<header>',
|
'<header>',
|
||||||
'<a class="close" href="#"><span class="icon"></span></a>',
|
'<a class="close" href="#"><span class="icon"></span></a>',
|
||||||
'</header>',
|
'</header>',
|
||||||
'<div class="viewport">',
|
'<div class="viewport">',
|
||||||
'<div class="shortcuts">'+html+'</div>',
|
'<div class="viewport-inner">'+ html +'</div>',
|
||||||
'</div>'
|
'</div>'
|
||||||
].join('');
|
].join('');
|
||||||
|
|
||||||
dom.preview.querySelector( '.close' ).addEventListener( 'click', function( event ) {
|
dom.overlay.querySelector( '.close' ).addEventListener( 'click', function( event ) {
|
||||||
closePreview();
|
closeOverlay();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}, false );
|
}, false );
|
||||||
|
|
||||||
setTimeout( function() {
|
setTimeout( function() {
|
||||||
dom.preview.classList.add( 'visible' );
|
dom.overlay.classList.add( 'visible' );
|
||||||
}, 1 );
|
}, 1 );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Closes any currently open overlay.
|
||||||
|
*/
|
||||||
|
function closeOverlay() {
|
||||||
|
|
||||||
|
if( dom.overlay ) {
|
||||||
|
dom.overlay.setAttribute( 'src', '' );
|
||||||
|
dom.overlay.parentNode.removeChild( dom.overlay );
|
||||||
|
dom.overlay = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Applies JavaScript-controlled layout rules to the
|
* Applies JavaScript-controlled layout rules to the
|
||||||
* presentation.
|
* presentation.
|
||||||
|
@ -3289,12 +3293,13 @@
|
||||||
/**
|
/**
|
||||||
* Handler for the document level 'keypress' event.
|
* Handler for the document level 'keypress' event.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function onDocumentKeyPress( event ) {
|
function onDocumentKeyPress( event ) {
|
||||||
|
|
||||||
// Check if the pressed key is question mark
|
// Check if the pressed key is question mark
|
||||||
if( event.shiftKey && event.charCode == 63 ) {
|
if( event.shiftKey && event.charCode === 63 ) {
|
||||||
openShortcutsOverlay();
|
showHelp();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -3402,8 +3407,8 @@
|
||||||
}
|
}
|
||||||
// ESC or O key
|
// ESC or O key
|
||||||
else if ( ( event.keyCode === 27 || event.keyCode === 79 ) && features.transforms3d ) {
|
else if ( ( event.keyCode === 27 || event.keyCode === 79 ) && features.transforms3d ) {
|
||||||
if( dom.preview ) {
|
if( dom.overlay ) {
|
||||||
closePreview();
|
closeOverlay();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
toggleOverview();
|
toggleOverview();
|
||||||
|
@ -3701,7 +3706,7 @@
|
||||||
|
|
||||||
var url = event.target.getAttribute( 'href' );
|
var url = event.target.getAttribute( 'href' );
|
||||||
if( url ) {
|
if( url ) {
|
||||||
openPreview( url );
|
showPreview( url );
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue