* initial commit

This commit is contained in:
Danyi Dávid
2018-01-15 20:50:40 +01:00
commit b79cea9fb2
57 changed files with 5005 additions and 0 deletions

View 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>

View File

@@ -0,0 +1,9 @@
<?php $this->layout('layout::default', ['title' => '404 Not Found']) ?>
<h1>Oops!</h1>
<h2>This is awkward.</h2>
<p>We encountered a 404 Not Found error.</p>
<p>
You are looking for something that doesn't exist or may have moved. Check out one of the links on this page
or head back to <a href="/">Home</a>.
</p>

View File

@@ -0,0 +1,11 @@
<?php $this->layout('layout::default', ['title' => sprintf('%d %s', $status, $reason)]) ?>
<h1>Oops!</h1>
<h2>This is awkward.</h2>
<p>We encountered a <?=$this->e($status)?> <?=$this->e($reason)?> error.</p>
<?php if ($status == 404) : ?>
<p>
You are looking for something that doesn't exist or may have moved. Check out one of the links on this page
or head back to <a href="/">Home</a>.
</p>
<?php endif; ?>

View File

@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<title><?= $this->e($title) ?> - Camera Slide</title>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<style>
html, body {
padding: 0;
margin: 0;
width: 100%;
height: 100%;
}
</style>
<?= $this->section('stylesheets') ?>
</head>
<body class="app">
<?= $this->section('content') ?>
<script src="<?=$this->serverurl("lib/jquery-3.2.1.min.js") ?>"></script>
<?= $this->section('javascript') ?>
</body>
</html>