* initial commit
This commit is contained in:
36
templates/app/home-page.phtml
Normal file
36
templates/app/home-page.phtml
Normal file
@@ -0,0 +1,36 @@
|
||||
<?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;
|
||||
}
|
||||
|
||||
#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 ?>;
|
||||
var cameraImageApiUrl = '<?=$this->serverurl("/api/get-latest-camera-pictures") ?>';
|
||||
var cameraImageBaseUrl = '<?=$this->serverurl("/show-image/") ?>';
|
||||
</script>
|
||||
<script src="<?= $this->serverurl("scripts/camera-image-handler.js") ?>"></script>
|
||||
<?php $this->end() ?>
|
||||
<div id="cameraImage">
|
||||
<h1 id="cameraText"></h1>
|
||||
</div>
|
||||
Reference in New Issue
Block a user