Fixed error where embed only showed dope playlist

This commit is contained in:
Kasper Rynning-Tønnesen
2016-01-26 12:44:54 +01:00
parent 35472f8214
commit 97894101c9
5 changed files with 9 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ var seekTo;
var socket;
var video_id;
var previous_video_id;
var chan = ($("#zoffchannel").html()).toLowerCase();
var chan = window.location.hash.substring(1);
var connection_options = {
'sync disconnect on unload':true,
@@ -26,6 +26,9 @@ $(document).ready(function(){
$("head").append('<link type="text/css" rel="stylesheet" href="/static/css/embed.css" />');
$("head").append('<link type="text/css" rel="stylesheet" href="/static/css/materialize.min.css" />');
console.log(document);
console.log(window.location.hash)
add = "https://zoff.no";
socket = io.connect(''+add+':8880', connection_options);

View File

@@ -26,7 +26,7 @@ var began = false;
var i = -1;
var lazy_load = true;
var embed = false;
var embed_code = '<embed src="https://zoff.no/embed.html" width="615px" height="356px">';
var embed_code = '<embed src="https://zoff.no/embed.html#' + chan.toLowerCase() + '" width="615px" height="356px">';
var id;
var full_playlist;
var conf;