forked from binford2k/showoff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpresenter.erb
113 lines (104 loc) · 4.26 KB
/
presenter.erb
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<%= erb :header %>
<link rel="stylesheet" href="<%= @asset_path %>/css/presenter.css" type="text/css"/>
<script type="text/javascript" src="<%= @asset_path %>/js/presenter.js"></script>
<script type="text/javascript">
editUrl = "<%= @edit %>";
issueUrl = "<%= @issues %>";
</script>
</head>
<body>
<div id="help">
<table>
<tr><td class="key">z, ?</td><td>toggle help (this)</td></tr>
<tr><td class="key">space, →</td><td>next slide</td></tr>
<tr><td class="key">shift-space, ←</td><td>previous slide</td></tr>
<tr><td class="key">b</td><td>blank screen</td></tr>
<tr><td class="key">d</td><td>toggle debug mode</td></tr>
<tr><td class="key">## <ret></td><td>go to slide #</td></tr>
<tr><td class="key">c, t</td><td>table of contents (vi)</td></tr>
<tr><td class="key">r</td><td>reload slides</td></tr>
<tr><td class="key">p</td><td>run preshow</td></tr>
<tr><td class="key">s</td><td>choose style</td></tr>
</table>
</div>
<div id="main" class="container_12">
<div id="topbar" class="grid_12">
<div id="slideSource">
Source: <span id="slideFile"></span>
</div>
<span id="links">
<span class="desktop">
<% if @edit %>
<a id="edit" href="javascript:editSlide();" title="Edit current slide in new window.">Edit Slide</a>
<% end %>
<% if @issues %>
<a id="report" href="javascript:reportIssue();" title="Report an issue with the current slide.">Report Issue With Slide</a>
<% end %>
<a id="stats" href="/stats" target="_showoffchild">Viewing Statistics</a>
<a id="downloads" href="/download" target="_showoffchild">Downloads</a>
<a id="slaveWindow" href="javascript:toggleSlave();" title="Enable the slave window.">Slave Window</a>
<a id="nextWindow" href="javascript:toggleNext();" title="Enable the next window view.">Next Window</a>
<a id="generatePDF" href="/pdf" title="Call out to wkhtmltopdf to generate a PDF.">Generate PDF</a>
<a id="onePage" href="/onepage" title="Load the single page view. Useful for printing.">Single Page</a>
</span>
<span class="mobile">
<a id="update" href="">Update</a>
</span>
</span>
</div>
<div id="center">
<div id="sidebar" class="grid_4">
<div id="timerSection">
Timer:
<span id="minStart">
<input type="text" size="8" id="timerMinutes"/> min
<input type="button" id="startTimer" value="Start">
</span>
<span id="timerInfo"></span>
<span id="minStop"><input type="button" id="stopTimer" value="Stop"></span>
</div>
<div id="feedbackPace">
<span id="paceSlow">Speed Up!</span>
<span id="paceFast">Slow Down!</span>
<img id="paceMarker" src="css/paceMarker.png" />
</div>
<div id="slidemenu">
<div id="navigation" class="menu"></div>
</div>
</div>
<div id="preview" class="grid_8">
<img id="disconnected" src="/css/disconnected-large.png" />
<div id="preso" class="zoomed">loading presentation...</div>
</div>
<div id="statusbar">
<span id="progress">
Slide: <span id="slideInfo"></span>
</span>
<div id="debugInfo"></div>
<input id="zoomer" type="range" min="0.5" max="1.5" step="0.01" onchange="javascript:zoom();" title="Alter the zoom level of the slide preview." />
<span id="enableRemote" title="Enables tracking of other presenters.">
<label for="remoteToggle">Enable Remote</label><input type="checkbox" id="remoteToggle" checked />
</span>
<span id="enableFollower" title="Send slide change notifications.">
<label for="followerToggle">Update Follower</label><input type="checkbox" id="followerToggle" checked />
</span>
</div>
</div>
<div id="separator"></div>
<div id="bottom" class="grid_12">
<div id="questions">
<h3>Audience Questions</h3>
<ul></ul>
</div>
<div id="notes"></div>
</div>
</div>
<div id="slides" class="offscreen" <%= 'style="display:none;"' if @slides %>>
<%= @slides %>
</div>
</body>
</html>