Browse Source

feat: add bullets and support exit by pressing `esc`

master
kdxcxs 4 years ago
parent
commit
7544ae4380
  1. 11
      src/js/dr.js
  2. 3
      src/main.js
  3. 2
      src/package.json

11
src/js/dr.js

@ -4,7 +4,16 @@ console.log("version:1.2.5")
var api = impress("impress") var api = impress("impress")
document.stepFunctions = [] document.stepFunctions = []
document.bullets = [{"e":"drone","c":"无人机"}]
document.bullets = [{"e":"toolkit","c":"配备用品;装备"},
{"e":"by-laws","c":"细则;章程,规章;附则"},
{"e":"Finnish","c":"芬兰的"},
{"e":"a great deal of","c":"很多"},
{"e":"drone","c":"无人机"},
{"e":"eat up","c":"吃光;吃完;耗费(大量金钱、时间或资源)"},
{"e":"tariff","c":"关税"},
{"e":"shift","c":"转移;挪动"},
{"e":"alert","c":"使警觉;使警惕"}]
function slideHandler() { function slideHandler() {
if (document.currentStep <= document.totalStep) { if (document.currentStep <= document.totalStep) {

3
src/main.js

@ -24,6 +24,9 @@ function init() {
globalShortcut.register('x', () => { globalShortcut.register('x', () => {
app.exit(0) app.exit(0)
}) })
globalShortcut.register('esc', () => {
app.exit(0)
})
} }
app.whenReady().then(init) app.whenReady().then(init)

2
src/package.json

@ -1,6 +1,6 @@
{ {
"name": "nokia_5g_ppt", "name": "nokia_5g_ppt",
"version": "1.3.0", "version": "1.3.1",
"description": "Nokia 5G PPT for duty report", "description": "Nokia 5G PPT for duty report",
"main": "main.js", "main": "main.js",
"build": { "build": {

Loading…
Cancel
Save