@@ -9,17 +9,19 @@ nodePPT - 让你爱上做分享!
9
9
* 基于GFM的markdown语法编写
10
10
* 支持[ html混排] ( #mixed-code ) ,再复杂的demo也可以做!
11
11
* [ 导出网页] ( #export-html ) 或者[ pdf] ( #export-pdf ) 更容易分享
12
- * 支持[ 18种转场动画 ] ( #transition ) ,可以设置单页动画
12
+ * 支持[ 20种转场动画 ] ( #transition ) ,可以设置单页动画
13
13
* 支持单页背景图片
14
14
* 多种模式:overview模式,[ 双屏模式] ( #postmessage ) ,[ socket远程控制] ( #socket ) ,摇一摇换页,使用ipad/iphone控制翻页更酷哦~
15
15
* 可以使用画板,** 双屏同步画板** 内容!可以使用note做备注
16
16
* 支持语法高亮,自由选择[ highlight样式] ( https://highlightjs.org/ )
17
17
* 可以单页ppt内部动画,单步动画
18
18
* [ 支持进入/退出回调] ( #callback ) ,做在线demo很方便
19
+ * 支持事件update函数,查看[ demo] ( http://qdemo.sinaapp.com/#12 )
19
20
20
21
## 0.9.0新功能
21
22
* 添加画板多端同步
22
23
* 添加按钮控制进度
24
+ * 新增两种转场动效,增加事件绑定方法:` Slide.on `
23
25
* 修复一些bug
24
26
25
27
## demo
@@ -89,11 +91,29 @@ http://127.0.0.1:8080/md/demo.md?controller=socket
89
91
http://127.0.0.1:8080/md/demo.md? _multiscreen=1
90
92
```
91
93
94
+ ### 事件绑定
95
+ 使用函数` Slide.on ` ,目前支持update函数,即转场后的回调。示例代码:
96
+
97
+ ``` javascript
98
+ Slide .on (' update' , function (i , cls ) {
99
+ // 接受两个参数:index和方向pageup/pagedown
100
+ Puff .add (' #FFC524' /* colors[i % 6]*/ , ctx, 20 , 700 , width / 2 , height / 2 , width / 1.8 , 400 );
101
+ clearInterval (timer);
102
+ // 第十三个有动效
103
+ if (i === 13 || i === 14 ) {
104
+ timer = setInterval (function () {
105
+ Puff .draw (1 );
106
+ }, 1E3 / FPS );
107
+ }
108
+
109
+ })
110
+ ```
111
+ demo中[ 第13张] ( http://qdemo.sinaapp.com/#13 ) 使用回调做了魔幻翻页效果
92
112
93
113
### 导出ppt
94
114
这么高端大气上档次的ppt,怎么能不导出分享给大家呢??
95
115
96
- 导出ppt有两种 ,一种是** pdf版** ,一种是** html版**
116
+ 导出ppt有三种,一种最简单直接 ** ctrl+P ** ,一种是** pdf版** ,一种是** html版**
97
117
98
118
<a name =" export-pdf " ></a >
99
119
#### pdf版
@@ -151,6 +171,8 @@ files: 引入js和css的地址,如果有的话~自动放在页面底部
151
171
* kontext
152
172
* vkontext
153
173
* circle
174
+ * cover-circle
175
+ * cover-diamond
154
176
* earthquake
155
177
* cards
156
178
* glue
@@ -329,15 +351,15 @@ nodePPT - just enjoy presentation
329
351
## why nodePPT?
330
352
331
353
** Maybe the best PPT webapp ever**
332
-
354
+
333
355
* markdown based on GFM;
334
356
335
357
* mix-code with html and markdown
336
358
337
359
* export your work with html and pdf format;
338
-
360
+
339
361
* 18 different transition animations, and you can choose single page animation well;
340
-
362
+
341
363
* Setting one page background image different than others;
342
364
343
365
* overview mode, multiscreen mode, remote control with socket, shark to page-flipping with ipad/iphone;
@@ -365,7 +387,7 @@ nodePPT - just enjoy presentation
365
387
* sync multiscreen in real time: http://qdemo.sinaapp.com/?_multiscreen=1 (make sure alert is allowed in your browser)
366
388
367
389
* front-end experience of mobile baidu: http://qdemo.sinaapp.com/box-fe-road.htm
368
-
390
+
369
391
370
392
## customize your theme
371
393
@@ -395,7 +417,7 @@ nodeppt start -p 8090 -d path/for/ppts
395
417
# bind host, default value: (0.0.0.0)
396
418
nodeppt start -p 8080 -d path/for/ppts -h 127.0.0.1
397
419
# socket (type 'Q' to show/hide QR Code, use your phone scan it, and you can control the slider)
398
- # if your want to use socket, notice the follow:
420
+ # if your want to use socket, notice the follow:
399
421
* 1, make sure that your phone and your pc/mac is allowed to access to each other
400
422
* 2, the firewall
401
423
* 3, ip
@@ -475,7 +497,7 @@ transition: zoomin/cards/slide/...
475
497
files: path/to/js/or/css/files
476
498
` ` `
477
499
478
- ** directory relationship** :
500
+ ** directory relationship** :
479
501
480
502
< a name=" transition" ></a>
481
503
support the followed animations:
@@ -497,7 +519,7 @@ support the followed animations:
497
519
* vertical3d
498
520
* zoomin
499
521
* zoomout
500
- * pulse
522
+ * pulse
501
523
502
524
if you want set single page animation, go to ** [single page animation setting](# transition-page)**
503
525
0 commit comments