mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
reverting delayed search
This commit is contained in:
2
static/dist/embed.min.js
vendored
2
static/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
4
static/dist/main.min.js
vendored
4
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -30,7 +30,6 @@ $(document).ready(function(){
|
|||||||
console.log(window.location.hash)
|
console.log(window.location.hash)
|
||||||
|
|
||||||
add = "https://zoff.no";
|
add = "https://zoff.no";
|
||||||
//add = "localhost";
|
|
||||||
socket = io.connect(''+add+':8880', connection_options);
|
socket = io.connect(''+add+':8880', connection_options);
|
||||||
|
|
||||||
socket.on("get_list", function(){
|
socket.on("get_list", function(){
|
||||||
|
|||||||
@@ -172,17 +172,17 @@ var Youtube = {
|
|||||||
$("#player").css("opacity", "1");
|
$("#player").css("opacity", "1");
|
||||||
$("#controls").css("opacity", "1");
|
$("#controls").css("opacity", "1");
|
||||||
$(".playlist").css("opacity", "1");
|
$(".playlist").css("opacity", "1");
|
||||||
console.log(video_id);
|
|
||||||
Youtube.ytplayer.loadVideoById(video_id);
|
Youtube.ytplayer.loadVideoById(video_id);
|
||||||
Youtube.ytplayer.playVideo();
|
Youtube.ytplayer.playVideo();
|
||||||
Youtube.durationSetter();
|
Youtube.durationSetter();
|
||||||
if(embed){
|
/*if(embed){
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
Youtube.ytplayer.playVideo();
|
Youtube.ytplayer.playVideo();
|
||||||
Youtube.ytplayer.seekTo(seekTo);
|
Youtube.ytplayer.seekTo(seekTo);
|
||||||
console.log("delayed search");
|
console.log("delayed search");
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}else Youtube.ytplayer.seekTo(seekTo);
|
}else */
|
||||||
|
Youtube.ytplayer.seekTo(seekTo);
|
||||||
}
|
}
|
||||||
Youtube.readyLooks();
|
Youtube.readyLooks();
|
||||||
Playercontrols.initYoutubeControls(Youtube.ytplayer);
|
Playercontrols.initYoutubeControls(Youtube.ytplayer);
|
||||||
|
|||||||
Reference in New Issue
Block a user