sjy-ecos/views/intro.html

40 lines
957 B
HTML
Raw Permalink Normal View History

2016-12-23 10:16:12 +00:00
<%- include('comm/header.html') %>
<div class="container">
2018-01-29 02:41:53 +00:00
<div class="row">
<div class="col-md-3 col-xs-12">
<div id="tree"></div>
</div>
<div class="col-md-9 col-xs-12 text-cont text-left">
<% if (page_cont == 'inc') { %>
<%- include('inc/intro/' + inc_tag) %>
<% } %>
</div>
</div>
2016-12-23 10:16:12 +00:00
</div>
<script type="text/javascript">
2018-01-29 02:41:53 +00:00
$(function () {
var $tree = $('#tree').treeview({
levels: 666,
data: json_tree_intro,
showBorder: false,
enableLinks: true,
selectedBackColor: "#1DA57A"
});
2018-02-01 05:44:52 +00:00
var pathname = window.location.pathname;
if (pathname.indexOf('intro') === 1) {
$(".navbar-nav li a[href='/intro/location']").addClass('active');
}
2018-01-29 02:41:53 +00:00
$('.treeview ul.list-group li a').each(function () {
2018-02-01 05:44:52 +00:00
if ($($(this))[0].href === String(window.location)) {
2018-01-29 02:41:53 +00:00
$(this).parent().css("color", "#fff");
$(this).parent().css("background-color", "#1DA57A");
}
})
2018-02-01 05:44:52 +00:00
})
;
2016-12-23 10:16:12 +00:00
</script>
2016-12-24 18:55:33 +00:00
<%- include('comm/footer.html') %>