Awesome qr shit and fucks

This commit is contained in:
Nicolas A. Tonne
2015-06-06 01:31:56 +02:00
parent 084c049983
commit 2b9d891098
8 changed files with 75 additions and 72 deletions

View File

@@ -3,7 +3,11 @@ var id
socket.on("id", function(id)
{
console.log(id);
console.log("Unique remote control ID: " + id);
var codeURL = "http://"+window.location.hostname+"/remote/"+id;
$("#code-text").text(id.toUpperCase())
$("#code-qr").attr("src", "https://chart.googleapis.com/chart?chs=221x221&cht=qr&choe=UTF-8&chld=L|1&chl="+codeURL);
$("#code-link").attr("href", codeURL);
if(!began)
{
socket.on(id, function(arr)