Skip to content

Commit 6e1c5c0

Browse files
committed
修改默认template
1 parent f8ca565 commit 6e1c5c0

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

lib/template.html

+31-3
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,38 @@ <h2>参考资料</h2>
5252
<canvas id="drawBoard" class="draw-board" width="900" height="700"></canvas>
5353
</slides>
5454
<div class="progress"><span id="progress"></span></div>
55-
56-
<script src="https://gist.github.com/ksky521/5519468/raw/17ebd7450d7605c6e320206aaf5790a6cdd76d8e/gistfile1.js"></script>
55+
<script src="https://raw.github.com/ksky521/MixJS/master/lib/mix.0.3.0.min.js"></script>
5756
<script>
58-
57+
var base = location.protocol + '//' + location.host + '/';
58+
MixJS.config({
59+
baseURL:base + 'js/'
60+
});
61+
MixJS.use('event/broadcast', function($){
62+
$.loadJS('/js/nodeppt.js',function(){
63+
Slide.init({
64+
containerID: 'container',
65+
drawBoardID: 'drawBoard',
66+
slideClass: '.slide',
67+
buildClass: '.build',
68+
progressID: 'progress',
69+
transition: 'horizontal3d',
70+
tipID: 'tip',
71+
width: 1100,
72+
dir: '/js/',
73+
control:{
74+
type: 'socket',
75+
args:{
76+
isControl: location.hash.slice(1,8) === 'control',
77+
host: base,
78+
shake: true
79+
}
80+
}
81+
});
82+
}).loadJS('/js/prettify.js',function(){
83+
prettyPrint();
84+
});
85+
});
5986
</script>
87+
6088
</body>
6189
</html>

0 commit comments

Comments
 (0)