-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.html
More file actions
44 lines (38 loc) · 1.04 KB
/
dev.html
File metadata and controls
44 lines (38 loc) · 1.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hackastory Slotmachine</title>
<link href="https://fonts.googleapis.com/css?family=Roboto:700" rel="stylesheet">
<link rel="stylesheet" href="css/slotmachine.css">
</head>
<body>
<div id="app">
<team-select
v-if="teams"
v-bind:teams="teams"
v-on:select="handleTeamSelect"
></team-select>
<machine
v-if="selectedTeam"
v-bind:team="selectedTeam"></machine>
</div>
<script src="jspm_packages/system.js"></script>
<script src="jspm.config.js"></script>
<script>
var teamsDataURL;
var teamsParam = /teams=([^&]+)/.exec( location.search );
if ( teamsParam && teamsParam.length == 2 ) {
teamsDataURL = decodeURIComponent( teamsParam.pop() );
}
System.import('slotmachine/js/SlotMachine.js').then( function ( module ) {
new module.default({
data: {
teamsURL: teamsDataURL
},
el: '#app'
});
});
</script>
</body>
</html>