aboutsummaryrefslogtreecommitdiff
path: root/point
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-08-10 17:28:37 +0200
committerPacien TRAN-GIRARD2014-08-10 17:28:37 +0200
commite7bf5952d0729b37e677168b6e8fbd1ce58ed1a2 (patch)
tree189988e3e272b806262d1df6b87f1da089ef4af8 /point
parenta32e898c8d7ad3774f5654e88bb24d5c26482137 (diff)
downloadwhatsthepoint-e7bf5952d0729b37e677168b6e8fbd1ce58ed1a2.tar.gz
First versionHEADmaster
Diffstat (limited to 'point')
-rw-r--r--point/base.css114
-rw-r--r--point/binding/keyboard.js70
-rw-r--r--point/binding/network.js40
-rw-r--r--point/binding/speech.js89
-rw-r--r--point/binding/touch.js93
-rw-r--r--point/control/control.js83
-rw-r--r--point/control/fullscreen.js68
-rw-r--r--point/control/layout.js61
-rw-r--r--point/control/network.js58
-rw-r--r--point/control/slide.js86
-rw-r--r--point/data/html.js86
-rw-r--r--point/data/markdown.js61
-rw-r--r--point/data/pdf.js130
-rw-r--r--point/data/renderSlide.js127
-rw-r--r--point/libs/hammerjs/hammer.min.js313
-rw-r--r--point/libs/hammerjs/hammer.min.map1
-rw-r--r--point/libs/js-yaml/js-yaml.min.js880
-rw-r--r--point/libs/markdownjs/markdown.min.js538
-rw-r--r--point/libs/normalize/normalize.js140
-rw-r--r--point/libs/normalizecss/normalize.css425
-rw-r--r--point/libs/pdfjs/pdf.js8550
-rw-r--r--point/libs/pdfjs/pdf.worker.js88336
-rw-r--r--point/libs/require-css/css.min.js63
-rw-r--r--point/libs/require-css/normalize.js142
-rw-r--r--point/libs/requirejs/require.js2080
-rw-r--r--point/libs/text/text.js389
-rw-r--r--point/libs/webcastor/webcastor.js156
-rw-r--r--point/plugins/autoscale/autoscale.js70
-rw-r--r--point/plugins/doge/doge.css55
-rw-r--r--point/plugins/doge/doge.js89
-rw-r--r--point/point.js135
-rw-r--r--point/theme/clean.css60
-rw-r--r--point/theme/default.css40
-rw-r--r--point/view/notes.css34
-rw-r--r--point/view/slides.css55
-rw-r--r--point/view/view.js31
36 files changed, 103748 insertions, 0 deletions
diff --git a/point/base.css b/point/base.css
new file mode 100644
index 0000000..fcdc2a6
--- /dev/null
+++ b/point/base.css
@@ -0,0 +1,114 @@
1/*
2 * This file is part of "What's The Point" <https://github.com/Pacien/WhatsThePoint>
3 * Copyright (C) 2014 Pacien TRAN-GIRARD
4 *
5 * "What's The Point" is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Affero General Public License as
7 * published by the Free Software Foundation, either version 3 of the
8 * License, or (at your option) any later version.
9 *
10 * "What's The Point" is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Affero General Public License for more details.
14 *
15 * You should have received a copy of the GNU Affero General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18@import url("libs/normalizecss/normalize.css");
19
20html {
21 width: 100%;
22 height: 100%;
23}
24
25body {
26 position: absolute;
27 width: 100%;
28 height: 100%;
29 background: black;
30}
31
32noscript {
33 position: absolute;
34 width: 20em;
35 height: 5em;
36 margin: auto;
37 top: 0;
38 bottom: 0;
39 left: 0;
40 right: 0;
41 text-align: center;
42 color: white;
43 background: black;
44}
45
46/* loading animation */
47/* http://codepen.io/lixquid/pen/ybjmr */
48
49#loadingclock {
50 position: absolute;
51 margin: auto;
52 top: 0;
53 bottom: 0;
54 left: 0;
55 right: 0;
56 width: 48px;
57 height: 48px;
58 border: 2px solid #ccc;
59 border-radius: 100%;
60}
61
62#loadingclock:before {
63 display: block;
64 position: absolute;
65 left: 23px;
66 top: 2px;
67 width: 2px;
68 height: 22px;
69 background-color: #ccc;
70 animation: spin 3s linear infinite;
71 -webkit-animation: spin 3s linear infinite;
72 content: " ";
73 transform-origin: 1px 22px;
74 -webkit-transform-origin: 1px 22px;
75}
76
77#loadingclock:after {
78 display: block;
79 position: absolute;
80 left: 23px;
81 top: 3px;
82 width: 2px;
83 height: 21px;
84 background-color: #ccc;
85 animation: spin 18s linear infinite;
86 -webkit-animation: spin 18s linear infinite;
87 content: "";
88 transform-origin: 1px 21px;
89 -webkit-transform-origin: 1px 21px;
90}
91
92@-moz-keyframes spin {
93 to {
94 transform: rotate(360deg);
95 }
96}
97
98@-webkit-keyframes spin {
99 to {
100 -webkit-transform: rotate(360deg);
101 }
102}
103
104@-o-keyframes spin {
105 to {
106 transform: rotate(360deg);
107 }
108}
109
110@keyframes spin {
111 to {
112 transform: rotate(360deg);
113 }
114}
diff --git a/point/binding/keyboard.js b/point/binding/keyboard.js
new file mode 100644
index 0000000..14eabc2
--- /dev/null
+++ b/point/binding/keyboard.js
@@ -0,0 +1,70 @@
1/*
2 * This file is part of "What's The Point" <https://github.com/Pacien/WhatsThePoint>
3 * Copyright (C) 2014 Pacien TRAN-GIRARD
4 *
5 * "What's The Point" is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Affero General Public License as
7 * published by the Free Software Foundation, either version 3 of the
8 * License, or (at your option) any later version.
9 *
10 * "What's The Point" is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Affero General Public License for more details.
14 *
15 * You should have received a copy of the GNU Affero General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19define(["control/control"], function (control) {
20
21 var keyboard = {
22
23 KEYCODE: {
24 BACKSPACE: 8,
25 ENTER: 13,
26 SPACE: 32,
27 END: 35,
28 HOME: 36,
29 LEFT: 37,
30 UP: 38,
31 RIGHT: 39,
32 DOWN: 40,
33 },
34
35 init: function (settings) {
36 this.bindEvent();
37 },
38
39 translate: function (keyCode) {
40 var gotoEvent;
41 switch (keyCode) {
42 case this.KEYCODE.LEFT:
43 case this.KEYCODE.BACKSPACE:
44 return control.dispatchEvent(control.EVENT.GOTO, control.GOTO.PREVIOUS_SLIDE);
45
46 case this.KEYCODE.RIGHT:
47 case this.KEYCODE.ENTER:
48 case this.KEYCODE.SPACE:
49 return control.dispatchEvent(control.EVENT.GOTO, control.GOTO.NEXT_SLIDE);
50
51 case this.KEYCODE.HOME:
52 return control.dispatchEvent(control.EVENT.GOTO, control.GOTO.FIRST_SLIDE);
53
54 case this.KEYCODE.END:
55 return control.dispatchEvent(control.EVENT.GOTO, control.GOTO.LAST_SLIDE);
56 }
57
58 },
59
60 bindEvent: function () {
61 document.addEventListener("keydown", function (keydownEvent) {
62 // TODO: ignore if focus in form
63 keyboard.translate(keydownEvent.keyCode);
64 });
65 },
66 };
67
68 return keyboard;
69