MCPcopy Create free account
hub / github.com/webodf/ViewerJS / showToolbars

Function showToolbars

viewer.js:496–503  ·  view source on GitHub ↗

* @param {!boolean} timed Fade after a while

()

Source from the content-addressed store, hash-verified

494 * @param {!boolean} timed Fade after a while
495 */
496 function showToolbars() {
497 titlebar.classList.add('viewer-touched');
498 toolbar.classList.add('viewer-touched');
499 window.clearTimeout(toolbarTouchTimer);
500 toolbarTouchTimer = window.setTimeout(function () {
501 hideToolbars();
502 }, UI_FADE_DURATION);
503 }
504
505 function hideToolbars() {
506 titlebar.classList.remove('viewer-touched');

Callers 1

toggleToolbarsFunction · 0.85

Calls 1

hideToolbarsFunction · 0.85

Tested by

no test coverage detected