Whenever I click a button on the sidebar and the current tab is the second tab, the navigation bar switches to display the first tab. How can I prevent this switch and keep the second tab displayed when clicking a button on the sidebar?
The code for this issue can be found on jsfiddle.
https://jsfiddle.net/98okrj0f/9/
I have AngularJs scripts that work locally. Can anyone guide me on how to make it function properly on jsfiddle as well?
Below is the HTML code snippet:
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Nav</title>
<link href="nav.css" rel="stylesheet"/>
<script src = "http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
</head>
... (more HTML code here)
CSS code snippet:
#logo{
position: absolute;
right:10px;
bottom: 10px;
}
body{
margin: 0;
padding: 0;
font-size: 12px;
font-family: "Lucida Grande", "Helvetica Nueue", Arial, sans-serif;
}
nav {
background-color: #333;
border: 1px solid #333;
color: #fff;
display: block;
margin: 0;
padding: 0;
z-index: 9999;
}
... (more CSS code here)
Please find the updated version of jsfiddle by following this link: