remote-control icon indicating copy to clipboard operation
remote-control copied to clipboard

Help Configuring Slides

Open alvarengarichard opened this issue 11 years ago • 0 comments

Hey,

Just wanted to see if I could get a bit of guidance on a project I'm currently working on. I have the server up and running. Currently getting this screen when I navigate to localhost:3000 (changed from 81): http://imgur.com/yrKF9G9

So from what I understand, the sample directory contains an index file. I assume the slideshow should go in there. My index code is below.

Is this the right way for this to work? I can't seem to hit the index no matter what I do. Is there any extra configuration to do? Basically when I hit next or previous on the remote page (localhost:3000), i'd want to see the console.log recorded on the (localhost:3000/sample/index.html) slideshow page.

Thanks in advance for any help you can provide.

   <!DOCTYPE html>
<html>
<head>
    <script src="socket.io.js"></script>
    <script src="remote-control.js"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>


<script>
    var remote = new RemoteControl();
    remote.connect('http://localhost:3000');
    remote.on('next', function() {
        console.log('next');
    });

    remote.on('previous', function() {
        console.log('previous');
    });
</script>
</body>
</html>

alvarengarichard avatar Apr 01 '14 01:04 alvarengarichard