mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-07 20:18:49 +00:00
Fixed arrays and change.php accordingly
This commit is contained in:
9
youtube.js
Executable file → Normal file
9
youtube.js
Executable file → Normal file
@@ -39,9 +39,10 @@ $(document).ready(function()
|
||||
url: "change.php",
|
||||
async: false
|
||||
}).responseText;
|
||||
|
||||
url = $.parseJSON(response);
|
||||
|
||||
//console.log(response);
|
||||
response = $.parseJSON(response);
|
||||
for(first in response["nowPlaying"]) break;
|
||||
console.log(first);
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: 'timedifference.php',
|
||||
@@ -53,7 +54,7 @@ $(document).ready(function()
|
||||
});
|
||||
console.log("timediff:"+timeDifference[0]);
|
||||
|
||||
response = url[0][0];
|
||||
response = first;
|
||||
|
||||
tag = document.createElement('script');
|
||||
tag.src = "https://www.youtube.com/iframe_api";
|
||||
|
||||
Reference in New Issue
Block a user