-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheventsystem.html
More file actions
52 lines (36 loc) · 1.11 KB
/
Copy patheventsystem.html
File metadata and controls
52 lines (36 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<body>
<div id="eventsystem" ng-app="eventsystem">
<h1>Eventsystem</h1>
<input type="text" id="add_name">
<p>{{ test }}</p>
<table class="persons">
<tr><th>Startnr</th><th>Navn</th><th>Brakke</th><th>Team</th></tr>
<tr class="persons_row"></tr>
</table>
<button onclick="add_user()">Add {{ test }} to database</button>
<div id="dl"></div>
<pre>{{ output_db() }}</pre>
</div>
</body>
<script src="./js/angular.min.js"></script>
<script src="./js/eventsystem.js"></script>
<script>
// *** EVENT SYSTEM ANGULAR APP
var app = angular.module('eventsystem', [])
// *** EVENT SYSTEM ANGULAR CONTROLLER
app.controller('esController', function ($scope) {
$scope.test = "Test"
$scope.output_db = function() { db.toJson() }
})
</script>
<script>
window.addEventListener("load", display_users)
const db = new EventDatabase()
db.loadDatabaseFromLocalStorage()
//display_users()
// db.addPerson(new Person(88, "Thomas", "R", "Weeners"))
// db.addPerson(new Person(77, "Stefan", "S", "Peeners"))
download_db(db, "db1")
</script>
</html>