zoneminder/web/skins/classic/css/base/views/timeline.css.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

93 lines
1.8 KiB
PHP
Raw Normal View History

2020-08-12 01:47:37 +08:00
<?php
global $chart;
global $max_aspect_ratio;
global $monitors;
global $mode;
global $monEventSlots;
?>
2014-01-22 22:24:06 +08:00
.chartSize {
height: <?php echo $chart['height'] ?>px;
2014-01-22 22:24:06 +08:00
}
.graphSize {
height: <?php echo $chart['graph']['height'] ?>px;
2014-01-22 22:24:06 +08:00
}
.graphHeight {
height: <?php echo $chart['graph']['height'] ?>px;
2014-01-22 22:24:06 +08:00
}
.graphWidth {
}
.imageSize {
}
.imageHeight {
<?php
switch ( $max_aspect_ratio ) {
2020-08-12 01:47:37 +08:00
case null:
case 1:
echo 'padding-top: 100%;'; break;
case 1.33: // 4:3
echo 'padding-top: 75%;'; break;
case 1.47:
echo 'padding-top: 68.18%;'; break;
case 1.5: // 3:2
2019-09-29 03:16:25 +08:00
echo 'padding-top: 66.66%'; break;
case 1.6: // 8:5
2019-09-29 03:16:25 +08:00
echo 'padding-top: 62.5%'; break;
case 1.78: // 16:9
echo 'padding-top: 56.25%;'; break;
default:
ZM\Error("Unknown aspect ratio $max_aspect_ratio");
echo 'padding-top: 100%;';
}
?>
2014-01-22 22:24:06 +08:00
}
.activitySize {
height: <?php echo $chart['graph']['activityHeight'] ?>px;
2014-01-22 22:24:06 +08:00
}
.eventsSize {
height: <?php echo $chart['graph']['eventBarHeight'] ?>px;
2014-01-22 22:24:06 +08:00
}
.events .event {
height: <?php echo $chart['graph']['eventBarHeight'] ?>px;
2014-01-22 22:24:06 +08:00
}
<?php
if ( $mode == 'overlay' ) {
foreach ( array_keys($monitors) as $monitorId ) {
2014-01-22 22:24:06 +08:00
?>
#chartPanel .eventsPos<?php echo $monitorId ?> {
top: <?php echo $chart['eventBars'][$monitorId]['top'] ?>px;
2014-01-22 22:24:06 +08:00
}
<?php
}
} else if ( $mode == 'split' ) {
foreach ( array_keys($monitors) as $monitorId ) {
2014-01-22 22:24:06 +08:00
?>
#chartPanel .activityPos<?php echo $monitorId ?> {
top: <?php echo $char['activityBars'][$monitorId]['top'] ?>px;
2014-01-22 22:24:06 +08:00
}
#chartPanel .eventsPos<?php echo $monitorId ?> {
top: <?php echo $char['eventBars'][$monitorId]['top'] ?>px;
2014-01-22 22:24:06 +08:00
}
<?php
}
}
foreach ( array_keys($monEventSlots) as $monitorId ) {
2014-01-22 22:24:06 +08:00
?>
.monitorColour<?php echo $monitorId ?> {
background-color: <?php echo $monitors[$monitorId]->WebColour() ?>;
2014-01-22 22:24:06 +08:00
}
<?php
}
?>