This repository has been archived by the owner on May 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
layout.jade
92 lines (79 loc) · 3.17 KB
/
layout.jade
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
89
90
91
92
- var description = "";
- var author = "";
- var copyright = "© " + (new Date()).getFullYear();
block vars
!!! 5
html
head
meta(charset="utf-8")
title= title
meta(http-equiv="X-UA-Compatible", content="IE=edge,chrome=1")
meta(name="viewport", content="width=1024, user-scalable=no")
meta(name="author", content="#{author}")
meta(name="copyright", content="#{copyright}")
meta(name="description", content="#{description}")
link(rel="stylesheet", href="build/upstage-deck-core/upstage-deck-core-min.css")
body
#bd.deck-container
block slides
script(src="http://yui.yahooapis.com/3.17.2/build/yui/yui-min.js")
script .
if (!window.YUI) {
// Retry with a local URL.
document.write('<script src="yui3/build/yui/yui.js"><\/script>');
// Don't autodetect the base path (the CDN path didn't work).
document.write('<script>YUI.config.base = "yui3/build/";<\/script>');
}
script .
YUI({
base: "build/",
modules: {
"upstage": {},
"upstage-deck-crossfade": {
type: "css"
},
"upstage-prettify": {},
"upstage-prettify-css": {
type: "css"
},
"upstage-test-pattern": {},
"upstage-test-pattern-css": {
type: "css"
}
},
debug: true,
filter: "min"
}).use(
"upstage",
"upstage-prettify",
"upstage-deck-crossfade",
function (Y) {
prettyPrint();
// Upstage is a YUI widget.
var deck = new Y.Upstage({
srcNode: "#bd" // Where to find .slide elements.
});
// Upstage does not do much without plugins.
// They are all optional. Use only what you need.
deck.plug([
Y.Plugin.UpstageKeyboard,
Y.Plugin.UpstageGesture,
Y.Plugin.UpstagePermalink
// UpstageTextFill takes the first child of div.textfill
// and expands its text size to fill the container,
// see src/upstage/js/text-fill.js for details
// Y.Plugin.UpstageTextFill
]);
if (/[?&]smpte=1/.test(Y.config.win.location.search)) {
Y.use("upstage-test-pattern", function (Y) {
deck.plug(Y.Plugin.UpstageTestPattern);
});
} else {
deck.plug(Y.Plugin.UpstageBlank);
}
deck.render();
if ("function" === typeof window.deckReady) {
window.deckReady(deck, Y);
}
}
);