-
Notifications
You must be signed in to change notification settings - Fork 6
/
unreel.html
142 lines (142 loc) · 5.79 KB
/
unreel.html
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="./css/reveal.css">
<link rel="stylesheet" href="./css/theme/black.css" id = "theme">
<script type="text/javascript">
let remote = require("electron").remote;
let appPath = remote.getGlobal("appPath");
let csslink = document.createElement("link");
csslink.setAttribute("rel", "stylesheet");
csslink.setAttribute("type", "text/css");
csslink.setAttribute("href", appPath + "/js/quicksettings/unreel.css");
document.getElementsByTagName("head")[0].appendChild(csslink);
csslink = document.createElement("link");
csslink.setAttribute("rel", "stylesheet");
csslink.setAttribute("type", "text/css");
csslink.setAttribute("href", appPath + "/css/unreel.css");
document.getElementsByTagName("head")[0].appendChild(csslink);
csslink = document.createElement("link");
csslink.setAttribute("rel", "stylesheet");
csslink.setAttribute("type", "text/css");
csslink.setAttribute("href", appPath + "/js/tinymce/plugins/equationeditor/mathquill.css");
document.getElementsByTagName("head")[0].appendChild(csslink);
csslink = document.createElement("link");
csslink.setAttribute("rel", "stylesheet");
csslink.setAttribute("type", "text/css");
csslink.setAttribute("href", appPath + "/js/tinymce/plugins/equationeditor/equation_editor.css");
document.getElementsByTagName("head")[0].appendChild(csslink);
</script>
<title>Unreel</title>
</head>
<body>
<div id="mytoolbar"></div>
<div id="wait"></div>
<div id="reveal" class="reveal slide center">
<div id="slides" class="slides">
<section class="present" id="mytextarea"></section>
</div>
</div>
<div id="controls">
<div id="editB" class="button">
<span class="tooltip bottom">Edit slide</span>
</div>
<div id="editNotesB" class="button">
<span class="tooltip bottom">Edit notes</span>
</div>
<div id="attributesB" class="button">
<span class="tooltip bottom">Slide attributes</span>
</div>
<div id="propertiesB" class="button">
<span class="tooltip bottom">Configuration</span>
</div>
<div id="screen" class="button"></div>
<div id="screenFolder">
<div id="fullScreenB" class="button">
<span class="tooltip right">Primary display</span>
</div>
<div id="fullScreen2B" class="button">
<span class="tooltip right">Secondary display</span>
</div>
</div>
<div id="docs" class="button"></div>
<div id="docsFolder">
<div id="newB" class="button">
<span class="tooltip right">New presentation</span>
</div>
<div id="loadB" class="button">
<span class="tooltip right">Load presentation</span>
</div>
<div id="saveB" class="button">
<span class="tooltip right">Save presentation</span>
</div>
</div>
<div id="printB" class="button">
<span class="tooltip bottom">Print to PDF</span>
</div>
<div id="minimizeB" class="button small">
<span class="tooltip bottom">Minimize</span>
</div>
<div id="fullscreenB" class="button small">
<span class="tooltip bottom">Fullscreen</span>
</div>
<div id="quitB" class="button small">
<span class="tooltip bottom">Quit</span>
</div>
<div id="delB" class="button">
<span class="tooltip left">Delete slide</span>
</div>
<div id="addRightB" class="button">
<span class="tooltip left">Add slide to right</span>
</div>
<div id="addDownB" class="button">
<span class="tooltip top">Add slide to bottom</span>
</div>
<div id="moveLeftB" class="button">
<span class="tooltip right">Move slide left</span>
</div>
<div id="moveRightB" class="button">
<span class="tooltip left">Move slide right</span>
</div>
<div id="moveUpB" class="button">
<span class="tooltip bottom">Move slide up</span>
</div>
<div id="moveDownB" class="button">
<span class="tooltip top">Move slide down</span>
</div>
</div>
<div id=attributesPanel></div>
<div id=propertiesPanel></div>
<div id="editorControls">
<div id="saveEditB" class="button small">
<span class="tooltip right">Save</span>
</div>
<div id="cancelEditB" class="button small">
<span class="tooltip right">Cancel</span>
</div>
</div>
<div id="backB" class="button"></div>
<webview id="webview" allowpopups></webview>
<script>window.$ = window.jQuery = require(appPath + '/js/jquery.min.js');</script>
<script type="text/javascript">
let script = document.createElement("script");
script.setAttribute("type", "text/javascript");
script.setAttribute("src", appPath + "/js/tinymce/plugins/equationeditor/mathquill.min.js");
document.querySelector("head").appendChild(script);
script = document.createElement("script");
script.setAttribute("type", "text/javascript");
script.setAttribute("src", appPath + "/js/tinymce/tinymce.js");
document.querySelector("head").appendChild(script);
script = document.createElement("script");
script.setAttribute("type", "text/javascript");
script.setAttribute("src", appPath + "/js/quicksettings/quicksettings.js");
document.querySelector("head").appendChild(script);
script = document.createElement("script");
script.setAttribute("type", "text/javascript");
script.setAttribute("src", appPath + "/js/unreel.js");
document.querySelector("head").appendChild(script);
document.querySelector("#webview").setAttribute("preload", appPath + "/js/webview.js");
</script>
</body>
</html>