Fixed error in send_play function

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-09 14:22:22 +02:00
parent a4cf4acd74
commit 44a04aa9fa
10 changed files with 32 additions and 17 deletions
Regular → Executable
View File
Regular → Executable
-1
View File
@@ -8,7 +8,6 @@ socket.on("id", function(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)
Vendored Regular → Executable
View File
Vendored Regular → Executable
View File
Regular → Executable
View File
+9
View File
@@ -77,6 +77,15 @@ function setup_youtube_listener(channel)
$(document).ready(function()
{
var img = new Image();
img.onload = function () {
var colorThief = new ColorThief();
colorThief.getColor(img);
};
img.crossOrigin = 'Anonymous';
img.src = 'http://img.youtube.com/vi/NuEfvIca0XU/mqdefault.jpg';
setup_youtube_listener(chan);
//Materialize.toast("Passwords have been reset. If anything is not right, please send us a mail @ contact@zoff.no", 10000);
$("#settings").sideNav({