2018-01-15 20:50:40 +01:00
|
|
|
<?php $this->layout('layout::default', ['title' => 'Home']) ?>
|
|
|
|
|
|
|
|
|
|
<?php $this->push('stylesheets') ?>
|
|
|
|
|
<style>
|
|
|
|
|
#cameraImage {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
background: black no-repeat fixed center center;
|
|
|
|
|
background-size: cover;
|
2018-01-25 14:12:08 +01:00
|
|
|
/*transition: background-image 0.25s linear;*/
|
2018-01-15 20:50:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#cameraText {
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding-top: 20px;
|
|
|
|
|
padding-bottom: 20px;
|
|
|
|
|
font-size: 3em;
|
|
|
|
|
background-color: rgba(0,0,0,0.5);
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
text-shadow: -1px 0 #999999, 0 1px #999999, 1px 0 #999999, 0 -1px #999999;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<?php $this->end() ?>
|
|
|
|
|
|
|
|
|
|
<?php $this->push('javascript') ?>
|
|
|
|
|
<script>
|
|
|
|
|
var changeDelay = <?=$changeDelay ?>;
|
|
|
|
|
var refreshInterval = <?=$refreshInterval ?>;
|
2018-01-18 21:47:45 +01:00
|
|
|
var cameraImageApiUrl = '<?=$this->serverurl("api/get-latest-camera-pictures") ?>';
|
|
|
|
|
var cameraImageBaseUrl = '<?=$this->serverurl("show-image/") ?>';
|
2018-01-15 20:50:40 +01:00
|
|
|
</script>
|
|
|
|
|
<script src="<?= $this->serverurl("scripts/camera-image-handler.js") ?>"></script>
|
|
|
|
|
<?php $this->end() ?>
|
|
|
|
|
<div id="cameraImage">
|
|
|
|
|
<h1 id="cameraText"></h1>
|
|
|
|
|
</div>
|