Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelB2018 committed Feb 7, 2019
1 parent 248d39d commit 5b80b56
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions html/operateShutters.js
Expand Up @@ -23,6 +23,16 @@ function resizeDiv() {
$('.panel-body').css({'height': vph-315 + 'px'});
$('.table-wrapper').css({'height': vph-315 + 'px'});
$('#mymap').css({'height': vph-400 + 'px'});
if (vpw<465) {
$("#action_manual").css({'width': 310 + 'px'});
$("html").css({'width': '465px'});
$("body").css({'overflow-x': 'scroll'});
} else {
$("#action_manual").css({'width': '100%'});
$("html").css({'width': vpw + 'px'});
$("body").css({'overflow-x': 'hidden'});
}

}

function GetStartupInfo(initMap)
Expand Down Expand Up @@ -302,7 +312,7 @@ function setupTableShutters () {
'lt-sm-x-'+(c%2)+' lt-sm-y-'+Math.floor(c/2)+' lt-sm-w-1 lt-sm-h-1 '+
'lt-md-x-'+(c%3)+' lt-md-y-'+Math.floor(c/3)+' lt-md-w-1 lt-md-h-1 ' +
'lt-lg-x-'+(c%4)+' lt-lg-y-'+Math.floor(c/4)+' lt-lg-w-1 lt-lg-h-1" '+
' draggable="false">'+
' draggable="true">'+
'<div class="lt-body" name="'+shutter+'">' +
'<table border="1" style="margin:20px;width:200px;border-color:#cccccc;font-size:20px;font-weight:bold;color:#888888;"><tr ><td style="padding:15px;margin:15px;" align="center">'+config.Shutters[shutter]+'<br>' +
'<a class="up" title="Up" data-toggle="tooltip"><img src="up.png" width="60px"></a><br>' +
Expand All @@ -315,7 +325,7 @@ function setupTableShutters () {
c++;
});
$("#action_manual").removeClass("lt-xs-h-16").removeClass("lt-sm-h-12").removeClass("lt-md-h-8").removeClass("lt-lg-h-6");
$("#action_manual").addClass("lt-xs-h-"+Math.floor(c/1)).addClass("lt-sm-h-"+Math.floor(c/2)).addClass("lt-md-h-"+Math.floor(c/3)).addClass("lt-lg-h-"+Math.floor(c/2));
$("#action_manual").addClass("lt-xs-h-"+c).addClass("lt-sm-h-"+Math.floor(c/2)).addClass("lt-md-h-"+Math.floor(c/3)).addClass("lt-lg-h-"+Math.floor(c/4));
$("#shuttersCount").text($("#shutters").find('tr').length-1);

}
Expand Down

0 comments on commit 5b80b56

Please sign in to comment.