Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 53 lines (41 sloc) 1.171 kB
234be97 first import
Alexis Sukrieh authored
1 <script type="text/javascript" language="javascript">
2 window.slide = 0;
3
2ec1b86 mutitouch bindings for smartphone remote
Alexis Sukrieh authored
4 <% if is_multi_touch %>
5 window.broadway_effects = 0;
6
7f16f2e remote is not multitouch anymore
Alexis Sukrieh authored
7 /*
2ec1b86 mutitouch bindings for smartphone remote
Alexis Sukrieh authored
8 document.addEventListener('touchmove', function(event) {
9 event.preventDefault();
10 point_x = event.touches[0].pageX;
11 if (point_x < 450) {
7248b7e use TT+compiled templates / better remote
Alexis Sukrieh authored
12 $('#slide').html('<font style="color: #000; background-color: #e1b737;">Loading previous slide ...</font>');
2ec1b86 mutitouch bindings for smartphone remote
Alexis Sukrieh authored
13 broadway_prev();
0e4f5a9 slides and UI update
Alexis Sukrieh authored
14 broadway_refresh();
2ec1b86 mutitouch bindings for smartphone remote
Alexis Sukrieh authored
15 }
16 else {
7248b7e use TT+compiled templates / better remote
Alexis Sukrieh authored
17 $('#slide').html('<font style="color: #000; background-color: #e1b737;">Loading next slide ...</font>');
2ec1b86 mutitouch bindings for smartphone remote
Alexis Sukrieh authored
18 broadway_next();
0e4f5a9 slides and UI update
Alexis Sukrieh authored
19 broadway_refresh();
2ec1b86 mutitouch bindings for smartphone remote
Alexis Sukrieh authored
20 }
21 }, false);
7f16f2e remote is not multitouch anymore
Alexis Sukrieh authored
22 */
23
2ec1b86 mutitouch bindings for smartphone remote
Alexis Sukrieh authored
24
25 <% else %>
26
d70d6f6 the no_remote mode
Alexis Sukrieh authored
27 <% if settings.broadway.remote %>
2ec1b86 mutitouch bindings for smartphone remote
Alexis Sukrieh authored
28 window.broadway_effects = 1;
234be97 first import
Alexis Sukrieh authored
29 window.setInterval(function() {
30 $.ajax({
31 type: 'POST',
32 url: '/current_slide',
33 cache: false,
34 success: function(json) {
35 if (json['slide'] && (json['slide'] != window.slide)) {
36 window.slide = json['slide'];
f4e92df keyboard support
Alexis Sukrieh authored
37 broadway_refresh();
234be97 first import
Alexis Sukrieh authored
38 }
39 }}
40 );
41
024a4dc some CSS fixes
Alexis Sukrieh authored
42 }, <% settings.broadway.refresh_rate %>);
d70d6f6 the no_remote mode
Alexis Sukrieh authored
43 <% end %>
2ec1b86 mutitouch bindings for smartphone remote
Alexis Sukrieh authored
44
f4e92df keyboard support
Alexis Sukrieh authored
45 <% end %>
2ec1b86 mutitouch bindings for smartphone remote
Alexis Sukrieh authored
46
234be97 first import
Alexis Sukrieh authored
47 </script>
48
49 <div id="slide">
50 </div>
7f16f2e remote is not multitouch anymore
Alexis Sukrieh authored
51
52
Something went wrong with that request. Please try again.