-
Notifications
You must be signed in to change notification settings - Fork 387
/
navbar-template.html
56 lines (55 loc) · 2.27 KB
/
navbar-template.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
<nav class="navbar navbar-expand-lg navbar-light fixed-top">
<a class="navbar-brand" href="index.html">
<img src="images/global/loopback-full-logo-blue.svg" width=150px>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="nav navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="/getting-started.html">Getting Started</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/doc/en/lb4">Docs</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/contribute.html">Contribute</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/resources.html">Resources</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/blog">Blog</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://github.com/loopbackio/loopback-next" target="_blank" rel="noopener noreferrer">
<i class="fa fa-github fa-lg"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://twitter.com/strongloop" target="_blank" rel="noopener noreferrer">
<i class="fa fa-twitter fa-lg"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://join.slack.com/t/loopbackio/shared_invite/zt-2s5ttd53m-yaYSDEpU5LSv9APk0KKVng" target="_blank" rel="noopener noreferrer">
<i class="fa fa-slack fa-lg"></i>
</a>
</li>
</ul>
</div>
</nav>
<script>
$(document).ready(function ($) {
var url = window.location.href;
var activePage = url;
$('.nav a').each(function () {
var linkPage = this.href;
if (activePage == linkPage) {
$(this).closest("li").addClass("active");
}
});
});
</script>