Rmarkdown and TB link update
This commit is contained in:
@ -13,7 +13,7 @@
|
||||
|
||||
<title>online_kms</title>
|
||||
|
||||
<script src="site_libs/header-attrs-2.14/header-attrs.js"></script>
|
||||
<script src="site_libs/header-attrs-2.18/header-attrs.js"></script>
|
||||
<script src="site_libs/jquery-3.6.0/jquery-3.6.0.min.js"></script>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link href="site_libs/bootstrap-3.3.5/css/readable.min.css" rel="stylesheet" />
|
||||
@ -132,11 +132,15 @@ $(document).ready(function () {
|
||||
href = "index.html";
|
||||
var menuAnchor = $('a[href="' + href + '"]');
|
||||
|
||||
// mark it active
|
||||
menuAnchor.tab('show');
|
||||
|
||||
// if it's got a parent navbar menu mark it active as well
|
||||
menuAnchor.closest('li.dropdown').addClass('active');
|
||||
// mark the anchor link active (and if it's in a dropdown, also mark that active)
|
||||
var dropdown = menuAnchor.closest('li.dropdown');
|
||||
if (window.bootstrap) { // Bootstrap 4+
|
||||
menuAnchor.addClass('active');
|
||||
dropdown.find('> .dropdown-toggle').addClass('active');
|
||||
} else { // Bootstrap 3
|
||||
menuAnchor.parent().addClass('active');
|
||||
dropdown.addClass('active');
|
||||
}
|
||||
|
||||
// Navbar adjustments
|
||||
var navHeight = $(".navbar").first().height() + 15;
|
||||
@ -165,8 +169,8 @@ $(document).ready(function () {
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.tabset-dropdown > .nav-tabs > li.active:before {
|
||||
content: "";
|
||||
.tabset-dropdown > .nav-tabs > li.active:before, .tabset-dropdown > .nav-tabs.nav-tabs-open:before {
|
||||
content: "\e259";
|
||||
font-family: 'Glyphicons Halflings';
|
||||
display: inline-block;
|
||||
padding: 10px;
|
||||
@ -174,16 +178,9 @@ $(document).ready(function () {
|
||||
}
|
||||
|
||||
.tabset-dropdown > .nav-tabs.nav-tabs-open > li.active:before {
|
||||
content: "";
|
||||
border: none;
|
||||
}
|
||||
|
||||
.tabset-dropdown > .nav-tabs.nav-tabs-open:before {
|
||||
content: "";
|
||||
content: "\e258";
|
||||
font-family: 'Glyphicons Halflings';
|
||||
display: inline-block;
|
||||
padding: 10px;
|
||||
border-right: 1px solid #ddd;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.tabset-dropdown > .nav-tabs > li.active {
|
||||
|
Reference in New Issue
Block a user