Skip to content

Commit

Permalink
fix navigation
Browse files Browse the repository at this point in the history
remove extra script tags
  • Loading branch information
Paul Medlock-Walton committed Dec 2, 2017
1 parent 27f674e commit 7171791
Show file tree
Hide file tree
Showing 15 changed files with 291 additions and 115 deletions.
6 changes: 2 additions & 4 deletions howtos/howtos.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<button type="button" class="btn btn-default back" aria-label="Back" style="display:none;">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
</button>


<div class="internal">
<div class="panel-group">
Expand Down Expand Up @@ -129,4 +127,4 @@ <h4 class="panel-title">
</div>
</div>

<script src="scripts/howto.js"></script>
<!-- <script src="scripts/howto.js"></script> -->
8 changes: 6 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,15 @@
</head>
<body>
<ul class="nav nav-tabs top">
<li role="presentation" class="tab active" rel="tutorials/tutorials.html"><a>Tutorials</a></li>
<li role="presentation" class="tab" rel="howtos/howtos.html"><a>How Tos</a></li>
<li role="presentation" class="tab active tutorialTab" rel="tutorials/tutorials.html"><a>Tutorials</a></li>
<li role="presentation" class="tab howToTab" rel="howtos/howtos.html"><a>How Tos</a></li>
<li role="presentation" class="tab" rel="blocks/blocks.html" style="display:none"><a>Blocks</a></li>
</ul>

<button type="button" class="btn btn-default back" aria-label="Back" style="display:none;">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
</button>

<div class="content"></div>
</body>
<script src="scripts/tabs.js"></script>
Expand Down
14 changes: 5 additions & 9 deletions scripts/tabs.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
$(document).ready( function() {
if ($(".tab").hasClass("active")) {
$(".content").load($(".tab").attr("rel"));
/*if ($(".tab").hasClass("active")) {
//$(".content").load($(".tab").attr("rel"));
} else {
$(".content").load("tutorials/tutorials.html");
//$(".content").load("tutorials/tutorials.html");
$(".tab").addClass("active");
}

$(".tab").click(function(e) {
$(this).tab('show');
$(".content").load($(this).attr("rel"));
});
}*/

});
Loading

0 comments on commit 7171791

Please sign in to comment.