test navbar for admin dashboard
This commit is contained in:
@@ -24,24 +24,10 @@
|
||||
-->
|
||||
<link rel="stylesheet" href="{{ asset('css/app.css') }}">
|
||||
<link rel="stylesheet" href="{{ asset('css/bootstrap.css') }}">
|
||||
<!-- Custom stylesheet for navbar -->
|
||||
<link ref="stylesheet" href="{{ asset('css/admin/navbar.css') }}">
|
||||
<!-- Scrollbar Custom CSS -->
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<!-- Admin Layouts Navbar -->
|
||||
@include('layouts.admin.navbar')
|
||||
<!-- Page Content -->
|
||||
<div id="content">
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||
<div class="container-fluid">
|
||||
<button type="button" id="sidebarCollapse" class="btn btn-info">
|
||||
<i class="fas fa-align-left"></i>
|
||||
<span>Toggle Sidebar</span>
|
||||
</button>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
<!-- Included Messages -->
|
||||
<div class="container">
|
||||
@include('inc.messages')
|
||||
@@ -58,23 +44,5 @@
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
|
||||
<!-- Bootstrap JS -->
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
|
||||
<!-- jQuery Custom Scroller CDN -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.concat.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#sidebar").mCustomScrollbar({
|
||||
theme: "minimal"
|
||||
})
|
||||
|
||||
$('#sidebarCollapse').on('click', function() {
|
||||
//Open or close the navbar
|
||||
$('#sidebar').toggleClass('active');
|
||||
//Close the dropdown
|
||||
$('.collapse.in').toggleClass('in');
|
||||
//Adjust aria-expanded attributes we use for the open/clossed arrows in our CSS
|
||||
$('a[aria-expanded=true]').attr('aria-expanded', 'false');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user