mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed error where embed only showed dope playlist
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user