mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Changing ports
This commit is contained in:
@@ -41,7 +41,7 @@ $(document).ready(function(){
|
||||
$("head").append('<link type="text/css" rel="stylesheet" href="/public/css/materialize.min.css" />');
|
||||
|
||||
add = "https://zoff.no";
|
||||
socket = io.connect(''+add+':8880', connection_options);
|
||||
socket = io.connect(''+add+':8080', connection_options);
|
||||
|
||||
socket.on("get_list", function(){
|
||||
setTimeout(function(){socket.emit('list', chan.toLowerCase());},1000);
|
||||
|
||||
@@ -176,7 +176,7 @@ function init(){
|
||||
|
||||
if(socket === undefined || Helper.mobilecheck()){
|
||||
no_socket = false;
|
||||
socket = io.connect(''+add+':8880', connection_options);
|
||||
socket = io.connect(''+add+':8080', connection_options);
|
||||
}
|
||||
|
||||
if($("#alreadychannel").length === 0 || Helper.mobilecheck()){
|
||||
@@ -248,7 +248,7 @@ function init(){
|
||||
}
|
||||
|
||||
initializeCastApi = function() {
|
||||
$(".castButton").css("display", "block");
|
||||
//$(".castButton").css("display", "block");
|
||||
cast.framework.CastContext.getInstance().setOptions({
|
||||
receiverApplicationId: "E6856E24",
|
||||
autoJoinPolicy: chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED});
|
||||
|
||||
@@ -340,7 +340,7 @@ function initfp(){
|
||||
|
||||
if(window.location.hostname == "zoff.no") add = "https://zoff.no";
|
||||
else add = window.location.hostname;
|
||||
if(socket === undefined || Helper.mobilecheck()) socket = io.connect(''+add+':8880', connection_options);
|
||||
if(socket === undefined || Helper.mobilecheck()) socket = io.connect(''+add+':8080', connection_options);
|
||||
if($("#alreadyfp").length === 0 || Helper.mobilecheck() || !socket._callbacks.$playlists){
|
||||
setup_playlist_listener();
|
||||
}
|
||||
|
||||
@@ -332,7 +332,7 @@ var Player = {
|
||||
};
|
||||
|
||||
img.crossOrigin = 'Anonymous';
|
||||
img.src = 'https://zoff.no:8080/https://img.youtube.com/vi/'+id+'/mqdefault.jpg';
|
||||
img.src = 'https://zoff.no:8081/https://img.youtube.com/vi/'+id+'/mqdefault.jpg';
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ $(document).ready(function (){
|
||||
};
|
||||
if(window.location.hostname == "remote.zoff.no") add = "https://zoff.no";
|
||||
else add = "localhost";
|
||||
socket = io.connect(add + ':8880', connection_options);
|
||||
socket = io.connect(add + ':8080', connection_options);
|
||||
id = window.location.pathname.split("/")[1];
|
||||
if(id)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user