-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
36 lines (30 loc) · 1.27 KB
/
index.html
File metadata and controls
36 lines (30 loc) · 1.27 KB
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
<html>
<head>
<title>PPT Over HTTP</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript" src="/static/json2.js"></script>
<script type="text/javascript" src="/_ah/channel/jsapi"></script>
<script type="text/javascript" src="/static/ppt-http.js"></script>
</head>
<body>
<h1>PPT Over HTTP</h1>
<p>Current in testing</p>
<p>Post an action</p>
<form method="POST" action="/service/present" target="_blank">
Action: <input type="text" name="action"/><br/>
Slide: <input type="text" name="slide"/>
<input type="submit" value="Submit"/>
</form>
<p>A List of Commands Received From the Server</p>
<ul id="list">
</ul>
<script type="text/javascript">
service = PPTHTTP.register("Test",30)
service.ready = function() { document.forms[0].setAttribute('action',"/service/present/" + service.Id); };
service.onNext = function() { $("<li>Next</li>").prependTo("#list"); }
service.onPrev = function() { $("<li>Previous</li>").prependTo("#list"); }
service.onGoto = function(slide) { $("<li>Goto: " + slide + "</li>").prependTo("#list"); }
console.log(service);
</script>
</body>
</html>