/
index.html
133 lines (105 loc) · 3.56 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html>
<head>
<title>Dependency resolution with Coursier</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- FIXME Get from WebJars -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-treeview.css">
<style>
.icon-action {
cursor: pointer;
}
#resolveButton {
margin-top: 20px;
margin-bottom: 20px;
}
#results {
display: none;
}
.customButton {
margin: 5px;
}
.popover {
max-width: 400px;
}
</style>
</head>
<body style="margin: 0px">
<div class="container theme-showcase" role="main">
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand active" href="#mainTab" data-toggle="tab" onclick="$('#mainNavBar li').removeClass('active')">Coursier</a>
</div>
<div class="collapse navbar-collapse" id="mainNavBar">
<ul class="nav navbar-nav">
<li><a href="#demo" data-toggle="tab">Demo</a></li>
<li><a href="https://github.com/coursier/coursier/blob/master/USAGE.md">Usage</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/coursier/coursier">Github</a></li>
</ul>
</div>
</div>
</nav>
<div class="tab-content" id="mainTabContent">
<div class="tab-pane fade in active" id="mainTab">
<div class="jumbotron">
<h1>Coursier</h1>
<p>Pure Scala Artifact Fetching</p>
<p><a href="https://github.com/coursier/coursier">Project Page</a></p>
</div>
</div>
<div class="tab-pane fade" id="demo">
<div id="demoContent"></div>
</div>
<div class="tab-pane fade" id="usageCli">
<p>CLI</p>
</div>
<div class="tab-pane fade" id="usageApi">
<p>API</p>
</div>
</div>
</div>
<script>
// From scalajs-react examples
function jsonp(url, callback) {
var callbackName = 'jsonp_callback_' + Math.round(100000 * Math.random());
window[callbackName] = function(data) {
delete window[callbackName];
callback(data);
};
var script = document.createElement('script');
script.src = url + (url.indexOf('?') >= 0 ? '&' : '?') + 'callback=' + callbackName;
document.body.appendChild(script);
}
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- Paths changed by push-gh-pages.sh before pushing to gh-pages -->
<script src="../web-jsdeps.js"></script>
<script src="../web-fastopt.js"></script>
<script src="https://cdn.rawgit.com/strathausen/dracula/26010eb3b0df037cf507886897e20c02c4ec041b/lib/dracula_graph.js"></script>
<script src="https://cdn.rawgit.com/strathausen/dracula/26010eb3b0df037cf507886897e20c02c4ec041b/lib/dracula_graffle.js"></script>
<script>
// From http://www.bootply.com/VQqzOawoYc
// Javascript to enable link to tab
var hash = document.location.hash;
if (hash) {
console.log('match');
// $('.nav-tabs a[href='+hash+']').tab('show');
$('a[href='+hash+']').trigger('click');
}
// Change hash for page-reload
// Working?
$('.nav-tabs a').on('shown.bs.tab', function (e) {
window.location.hash = e.target.hash;
});
</script>
<script>
coursier.web.Main().main();
</script>
</body>
</html>