-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev.html
32 lines (32 loc) · 1.08 KB
/
dev.html
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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Bracket Builder</title>
<script src="dev.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" href="bracket-builder.css">
</head>
<body>
<div class="container" style="position: relative;">
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="bracket"></div>
</div>
<script>
var app = Elm.BracketBuilder.init({
node: document.getElementById('bracket'),
flags: {
id: 2362,
bracketsUrl: "http://demo.curling.test:3000/en/admin/events/3742/brackets",
teamsUrl: "http://demo.curling.test:3000/en/admin/events/3742/teams",
backUrl: "http://demo.curling.test:3000/en/admin/events/3742/stages"
}
});
app.ports.dragstart.subscribe(function (event) {
event.dataTransfer.setData("text", "");
});
</script>
</body>
</html>