mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Cleaned up some code
This commit is contained in:
@@ -100,7 +100,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="no-padding">
|
<li class="no-padding remote-panel">
|
||||||
<ul class="collapsible collapsible-accordion">
|
<ul class="collapsible collapsible-accordion">
|
||||||
<li>
|
<li>
|
||||||
<a class="collapsible-header bold waves-effect">Remote Control
|
<a class="collapsible-header bold waves-effect">Remote Control
|
||||||
|
|||||||
@@ -763,6 +763,10 @@ ul #chat-log{
|
|||||||
height:auto;
|
height:auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.remote-panel {
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
|
||||||
.navbar-fixed, #nav{
|
.navbar-fixed, #nav{
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|||||||
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
@@ -59,19 +59,20 @@ $(document).ready(function()
|
|||||||
}
|
}
|
||||||
Youtube.setup_youtube_listener(chan);
|
Youtube.setup_youtube_listener(chan);
|
||||||
Admin.admin_listener();
|
Admin.admin_listener();
|
||||||
Chat.setup_chat_listener(chan);
|
|
||||||
Chat.allchat_listener();
|
|
||||||
List.channel_listener();
|
List.channel_listener();
|
||||||
List.skipping_listener();
|
List.skipping_listener();
|
||||||
Hostcontroller.host_listener();
|
|
||||||
|
|
||||||
//Materialize.toast("Passwords have been reset. If anything is not right, please send us a mail @ contact@zoff.no", 10000);
|
|
||||||
$("#settings").sideNav({
|
$("#settings").sideNav({
|
||||||
menuWidth: 300, // Default is 240
|
menuWidth: 300, // Default is 240
|
||||||
edge: 'right', // Choose the horizontal origin
|
edge: 'right', // Choose the horizontal origin
|
||||||
closeOnClick: false // Closes side-nav on <a> clicks, useful for Angular/Meteor
|
closeOnClick: false // Closes side-nav on <a> clicks, useful for Angular/Meteor
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(!window.mobilecheck())
|
||||||
|
{
|
||||||
|
Chat.setup_chat_listener(chan);
|
||||||
|
Chat.allchat_listener();
|
||||||
|
Hostcontroller.host_listener();
|
||||||
$("#chat-btn").sideNav({
|
$("#chat-btn").sideNav({
|
||||||
menuWidth: 272, // Default is 240
|
menuWidth: 272, // Default is 240
|
||||||
edge: 'left', // Choose the horizontal origin
|
edge: 'left', // Choose the horizontal origin
|
||||||
@@ -79,6 +80,9 @@ $(document).ready(function()
|
|||||||
});
|
});
|
||||||
|
|
||||||
$(".drag-target")[1].remove();
|
$(".drag-target")[1].remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
//Materialize.toast("Passwords have been reset. If anything is not right, please send us a mail @ contact@zoff.no", 10000);
|
||||||
|
|
||||||
//$('#settings-close').sideNav('hide');
|
//$('#settings-close').sideNav('hide');
|
||||||
|
|
||||||
@@ -103,11 +107,6 @@ $(document).ready(function()
|
|||||||
socket.emit("password", [localStorage[chan.toLowerCase()], chan.toLowerCase()]);
|
socket.emit("password", [localStorage[chan.toLowerCase()], chan.toLowerCase()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($("#chan").html().toLowerCase() == "jazz")
|
|
||||||
{
|
|
||||||
//loadjsfile("static/js/jazzscript.js");
|
|
||||||
//peis = true;
|
|
||||||
}
|
|
||||||
if(navigator.userAgent.toLowerCase().indexOf("firefox") > -1) //quickdickfix for firefoxs weird percent handling
|
if(navigator.userAgent.toLowerCase().indexOf("firefox") > -1) //quickdickfix for firefoxs weird percent handling
|
||||||
$(".main").height(window.innerHeight-64);
|
$(".main").height(window.innerHeight-64);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user