Moved some db things to db file

- Changed some visuals on scaling website
This commit is contained in:
Kasper Rynning-Tønnesen
2018-03-17 19:55:02 +01:00
parent b0dfa2e5b7
commit a81e21fd99
4 changed files with 20 additions and 33 deletions

View File

@@ -796,7 +796,7 @@ nav .zbrand{
.navbar-fixed {
z-index: 999999;
height: 128px;
height: 64px;
}
.fullwidth{
@@ -1622,10 +1622,10 @@ nav .zbrand.channel-logo-container {
}
.title-container{
position: absolute;
display: block;
position: initial;
display: inline-block;
overflow: hidden;
width: 100%;
width: auto;
height: 100%;
left: 0;
}
@@ -3339,6 +3339,7 @@ nav ul li:hover, nav ul li.active {
.title-container{
top:64px;
top: 0px;
}
}

View File

@@ -103,20 +103,6 @@ var Channel = {
$(".not-imported-container").empty();
$(".not-exported-container").empty();
$(".video-container").resizable({
start: function(event, ui) {
$('iframe').css('pointer-events','none');
},
stop: function(event, ui) {
$('iframe').css('pointer-events','auto');
Crypt.set_width($(this).width());
Channel.set_title_width();
},
handles: "e",
minWidth: 280,
maxWidth: $(window).width()-241
});
if(socket === undefined){
no_socket = false;
socket = io.connect(''+add+':8080', connection_options);
@@ -382,7 +368,7 @@ var Channel = {
},
set_title_width: function(start){
if($(window).width() > 760){
if($(window).width() > 600){
var add_width = $(".brand-logo").outerWidth()
if(start){
add_width = $(window).width()*0.15;
@@ -580,9 +566,7 @@ var Channel = {
$("meta[name=theme-color]").attr("content", "#2D2D2D");
if(!Helper.mobilecheck() && !user_auth_avoid){
$(".video-container").resizable("destroy");
$("#playbar").remove();
$(".ui-resizable-handle").remove();
$("#main_components").remove();
$("#player").addClass("player_bottom");
$("#main-row").addClass("frontpage_modified_heights");