sjy-ecos/views/ei.html

37 lines
929 B
HTML
Raw Normal View History

2016-12-23 10:16:12 +00:00
<%- include('comm/header.html') %>
<div class="container">
2018-02-01 05:44:52 +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">
<% if (page_cont == 'inc') { %>
<%- include('inc/' + inc_tag) %>
<% } %>
</div>
</div>
2016-12-23 10:16:12 +00:00
</div>
<script type="text/javascript">
2018-02-01 05:44:52 +00:00
$(function () {
var $tree = $('#tree').treeview({
levels: 666,
data: json_tree_ei,
showBorder: false,
enableLinks: true,
selectedBackColor: "#1DA57A"
});
var pathname = window.location.pathname;
if (pathname.indexOf('ei') === 1) {
$(".navbar-nav li a[href='/ei/classification_area']").addClass('active');
}
$('.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", "#1DA57A");
}
})
});
2016-12-23 10:16:12 +00:00
</script>
<%- include('comm/footer.html') %>