Add coffeeinfoitem

Serve ka.dy.fi in iframe as infoitem. Resolves #29.
This commit is contained in:
Tatoma
2017-02-01 19:19:56 +02:00
parent 54148fdfb3
commit e5e284b80d
8 changed files with 43 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
body{
margin: 0;
}
iframe {
display: block;
background: #000;
border: none;
height: 100vh;
width: 100vw;
}
+4
View File
@@ -0,0 +1,4 @@
<link rel="stylesheet" href="/static/css/coffee.css">
<iframe src="http://ka.dy.fi" allowfullscreen=true sandbox="allow-scripts allow-pointer-lock allow-same-origin">
<p>Your browser does not support iframes.</p>
</iframe>
+10
View File
@@ -0,0 +1,10 @@
<div ng-controller="infoadmin_coffeeitem_create" style="margin-top:20px;">
<div>
Create new item to show coffee website. Name is used only as identifier
</div>
<div class="form-group">
<label>Name:</label>
<input type="text" ng-model="item.name"></input>
</div>
<input type="button" class="btn btn-success" ng-click="send()" value="create"></input>
</div>
@@ -140,6 +140,12 @@ app.controller('infoadmin_hslitem_create', function($scope, $http,ItemList){
$http.post("/infoscreen/create_hslitem", $scope.item).then(ItemList.loadItems)
}
});
app.controller('infoadmin_coffeeitem_create', function($scope, $http,ItemList){
$scope.item = {}
$scope.send = function(){
$http.post("/infoscreen/create_coffeeitem", $scope.item).then(ItemList.loadItems)
}
});
app.controller('infoadmin_image_create', ['$scope', 'Upload', '$timeout',"ItemList", function ($scope, Upload, $timeout,ItemList) {
$scope.send = function(file) {