-
Notifications
You must be signed in to change notification settings - Fork 5
/
tail.part
88 lines (74 loc) · 2.49 KB
/
tail.part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
</section>
<!-- End slides. -->
<!-- Begin extension snippets. Add or remove as needed. -->
<!-- deck.navigation snippet -->
<a href="#" class="deck-prev-link" title="Previous">←</a>
<a href="#" class="deck-next-link" title="Next">→</a>
<!-- deck.status snippet -->
<p class="deck-status">
<span class="deck-status-current"></span>
/
<span class="deck-status-total"></span>
</p>
<!-- deck.goto snippet -->
<form action="." method="get" class="goto-form">
<label for="goto-slide">Go to slide:</label>
<input type="text" name="slidenum" id="goto-slide" list="goto-datalist">
<datalist id="goto-datalist"></datalist>
<input type="submit" value="Go">
</form>
<!-- deck.hash snippet -->
<a href="." title="Permalink to this slide" class="deck-permalink">#</a>
<!-- End extension snippets. -->
<!-- Required JS files. -->
<script src="deck.js/jquery-1.7.2.min.js"></script>
<script src="deck.js/core/deck.core.js"></script>
<!-- Extension JS files. Add or remove as needed. -->
<script src="deck.js/core/deck.core.js"></script>
<script src="deck.js/extensions/hash/deck.hash.js"></script>
<script src="deck.js/extensions/menu/deck.menu.js"></script>
<script src="deck.js/extensions/goto/deck.goto.js"></script>
<script src="deck.js/extensions/status/deck.status.js"></script>
<script src="deck.js/extensions/navigation/deck.navigation.js"></script>
<script src="deck.js/extensions/scale/deck.scale.js"></script>
<!-- Initialize the deck. You can put this in an external file if desired. -->
<script>
$(function() {
$.deck('.slide');
$(document).keydown(function(e){
if (e.keyCode == 80) { //press 'p': comments tanggle
if($("code.comment").css("display")=="none"){
$("code.comment").css("display","block");
}else{
$("code.comment").css("display","none");
}
return false;
} else if (e.keyCode == 81){//press 'q': open 'all' page with comments
window.open("all.html");
}
});
window.addEventListener('message', receiver, false);
function receiver (event) {
var data = event.data;
if(data instanceof Object){
switch(data['method']){
case "go": {
$.deck('go', data['index'] || 0);
}
default: {}
}
}
};
});
function go_to(index){
$.deck('go',index);
}
if(opener){
$(document).bind('deck.change', function(event, from, to) {
opener.postMessage({'method':'go','index':to},'*');
}
);
}
</script>
</body>
</html>