-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (30 loc) · 1.03 KB
/
index.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
33
34
35
36
37
38
39
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Lagun</title>
<script type="text/javascript" src="elm.js"></script>
<!-- Milligram -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/milligram.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.2/css/font-awesome.min.css">
<!-- Lagun -->
<link rel="stylesheet" href="css/lagun.css">
</head>
<body>
</body>
<script type="text/javascript">
var defaultSpecUrl = 'https://petstore.swagger.io/v2/swagger.json';
var param = location.search.substring(1);
var item = param.split("=");
var specUrl = item[0] == 'spec' ? decodeURIComponent(item[1]) : defaultSpecUrl;
var a = document.createElement('a');
a.href = specUrl;
var servingHost = a.protocol + '//' + a.hostname + (a.port ? ':' + a.port : '');
Elm.Main.fullscreen({
specUrl: specUrl,
servingHost: servingHost
});
</script>
</html>