summaryrefslogtreecommitdiffstats
path: root/f/templates
diff options
context:
space:
mode:
authorokalintu <ilkka.oksanen@aalto.fi>2015-03-03 15:46:01 +0200
committerokalintu <ilkka.oksanen@aalto.fi>2015-03-03 15:46:01 +0200
commit10eb4471ab820bb2323077cb7be8029a2e9b0759 (patch)
tree0d3b77b065d46bd9657359d7e33f7e4c2881c323 /f/templates
parent6cb2891f117e29ea7adc68f62fe422285fc8364b (diff)
sanitized routes
Diffstat (limited to 'f/templates')
-rw-r--r--f/templates/adm.html18
-rw-r--r--f/templates/index.html23
2 files changed, 41 insertions, 0 deletions
diff --git a/f/templates/adm.html b/f/templates/adm.html
new file mode 100644
index 0000000..bbc4209
--- /dev/null
+++ b/f/templates/adm.html
@@ -0,0 +1,18 @@
+<!doctype HTML>
+<html >
+<head>
+<script src="f/scripts/angular/angular.min.js"></script>
+<script src="/socket.io/socket.io.js"></script>
+<script src="/f/scripts/client.js"></script>
+<title>Jono</title>
+</head>
+<body ng-app="ioc" >
+<div ng-controller="ioctrl">
+ <div ng-click="popfirst()" style="font-size:72px;">
+ <div>Jonoa: {{qsize}}</div>
+ <div>Rivi: {{que[0].row}}</div>
+ <div>Nimi: {{que[0].name}}</div>
+ </div>
+</div>
+</body>
+</html>
diff --git a/f/templates/index.html b/f/templates/index.html
new file mode 100644
index 0000000..822c162
--- /dev/null
+++ b/f/templates/index.html
@@ -0,0 +1,23 @@
+<!doctype HTML>
+<html >
+<head>
+<script src="/f/scripts/angular/angular.min.js"></script>
+<script src="/socket.io/socket.io.js"></script>
+<script src="/f/scripts/client.js"></script>
+<title>Jono</title>
+</head>
+<body ng-app="ioc" >
+<div ng-controller="ioctrl" style="font-size:36px;width:400px;margin-left:auto;margin-right:auto;">
+<div>Rivi: <input type="text" ng-model="row"></input></div>
+<div> Nimi: <input type="text" ng-model="name"></input></div>
+<button ng-click="submit();">Add</button>
+
+<table>
+<tr ng-repeat="person in que">
+ <td >{{person.row}}</td>
+ <td >{{person.name}}</td>
+</tr>
+</table>
+</div>
+</body>
+</html>