sjy-ecos/views/intro.html

35 lines
849 B
HTML
Raw Normal View History

2016-12-23 10:16:12 +00:00
<%- include('comm/header.html') %>
<div class="container">
<div class="row">
<div class="col-md-3 col-xs-12">
<div id="tree"></div>
</div>
2016-12-24 18:55:33 +00:00
<div class="col-md-9 col-xs-12 text-cont text-left">
<%= page_cont ? page_cont : '' %>
2016-12-23 10:16:12 +00:00
</div>
</div>
</div>
<script type="text/javascript">
$(function () {
var $tree = $('#tree').treeview({
levels: 666,
data: json_tree_intro,
showBorder: false,
enableLinks: true
});
2017-01-12 07:33:58 +00:00
$('.navbar-nav li a').each(function () {
if ($(this).attr('href') == '/intro') {
2017-01-12 07:57:35 +00:00
$(this).parent().addClass('active');
2017-01-12 07:33:58 +00:00
}
});
2017-01-12 07:57:35 +00:00
$('.treeview ul.list-group li a').each(function () {
if ($($(this))[0].href == String(window.location)) {
$(this).parent().css("color", "#fff");
$(this).parent().css("background-color", "#428bca");
}
})
2016-12-23 10:16:12 +00:00
});
</script>
2016-12-24 18:55:33 +00:00
<%- include('comm/footer.html') %>