Skip to content

Commit 5e4ede6

Browse files
author
Michelle Tilley
committed
Type pres() in command box to launch pres mode
1 parent 9b7fbdc commit 5e4ede6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

js/controlbox.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,11 @@ function(_yargs, d3, demos) {
226226

227227
document.getElementById('last-command').textContent = entry
228228

229+
if (entry.trim() === 'pres()') {
230+
window.pres()
231+
return
232+
}
233+
229234
if (entry.trim().toLowerCase().indexOf('mode ') === 0) {
230235
var mode = entry.trim().split(' ').pop().trim()
231236
this.changeMode(mode)

0 commit comments

Comments
 (0)