summaryrefslogtreecommitdiff
path: root/firefoxos/sdremote/index.html
blob: eaf82f9a81be8f3e3b3ad982c913dfcb180d41cb (plain)
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
<!DOCTYPE html>
<!--
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
-->
<html>
<head>
    <title>SDRemote Firefox OS Demo</title>
    <!--<meta name="viewport" content="width=device-width" />-->

    <script>
        function init() {
            console.info("Hello world");
        }

        var mClient;
        var mTransmitter;
    </script>
    <script src="js/client.js"></script>
    <script src="js/transmitter.js"></script>
</head>
<body onLoad="init();">
    <button id="open_comm" onclick="mClient = new Client('127.0.0.1'); mTransmitter = new Transmitter( mClient );">Press to Connect (localhost)</button>

    <br/><br/>

    <button id="startPres" onclick="mTransmitter.startPresentation()">Start Presentation</button>
    <button id="stopPres" onclick="mTransmitter.stopPresentation()">Stop Presentation</button>

    <br/><br/>

    <button id="next" onclick="mTransmitter.nextTransition()">Next</button>
    <button id="previous" onclick="mTransmitter.previousTransition()">Previous</button>
    <br/>
    <button id="blank" onclick="mTransmitter.blankScreen()">Blank Screen</button>
    <button id="resume" onclick="mTransmitter.resume()">Resume</button>
    <br/>


    <p>Current slide: <span id="current slide">---</span></p>
</body>
</html>