Sha256: ca433d4eebc16c77754fef9a04e070a5469feb5c4e0a5fd350b35004100d7f92
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
var io = new CometIO().connect(); var screen = new MultiScreen(io, {type: "remote"}); var tv = screen.tv; io.on("connect", function(session){ console.log("connect!! "+session); $("#btn_search").click(function(e){ var word = $("#text_search").val(); tv.$("#text_search").val(word); tv.$("#btn_search").click(); }); $("#text_search").keydown(function(e){ var word = $("#text_search").val(); tv.$("#text_search").val(word); }); $("#btn_play").click(function(e){ tv.$("#btn_play").click(); }); $("#btn_seek").click(function(e){ tv.$("#btn_seek").click(); }); $("#btn_seekback").click(function(e){ tv.$("#btn_seekback").click(); }); var range_seek = $("#range_seek"); range_seek.change(function(e){ tv.$("#range_seek").val( range_seek.val() ); tv.$("#range_seek").change(); }); tv.on("seek", function(time){ $("#text_seek").val(time); range_seek.val(time); }); tv.on("get_duration", function(duration){ range_seek.attr("max", duration); }); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sinatra-multi-screen-0.0.1 | sample/public/js/remote.js |