Dropdown nav example
How do I make an dropdown nav example?
What is a dropdown nav example? How do you make a dropdown nav example? This script and codes were developed by Pablo Ai on 08 December 2022, Thursday.
Dropdown nav example - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Dropdown nav example</title> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="dropdown dropdown-widget-nav"> <button class="btn btn-default dropdown-toggle" type="button" id="dropdown-widget-nav" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> <span class="dropdown-title">Geographical - Downloads & Subscribers</span> <span class="glyphicon glyphicon-menu-down"></span> </button> <ul class="dropdown-menu" aria-labelledby="dropdown-widget-nav"> <li data-shows=".widget-map"><a aria-role="button">Geographical - Downloads & Subscribers</a></li> <li data-shows=".widget-piechart"><a aria-role="button">Metrics - Distributed RPS Content</a></li> <li data-shows=".widget-authors"><a aria-role="button">Top Affiliated Authors in Rankings</a></li> <li data-shows=".widget-barchart"><a aria-role="button">Visits and Downloads for RPS Papers</a></li> </ul>
</div>
<div class="widget-item widget-map active"> MAP
</div>
<div class="widget-item widget-piechart"> PIE CHART
</div>
<div class="widget-item widget-authors"> AUTHORS
</div>
<div class="widget-item widget-barchart"> BAR CHARTS
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Dropdown nav example - Script Codes CSS Codes
body { margin: 20px;
}
.dropdown { margin-bottom: 10px;
}
.dropdown li a { cursor: pointer;
}
.widget-item { border: 1px solid grey; display: none; padding: 50px; text-align: center;
}
.widget-item.active { display: block;
}
Dropdown nav example - Script Codes JS Codes
$( document ).ready(function() { $('.dropdown-menu li').click(function() { var $this = $(this); var widgetSelector = $this.data('shows'); var title = $this.text(); $('.widget-item').removeClass('active'); $(widgetSelector).addClass('active'); $('.dropdown-title').text(title); });
});
Developer | Pablo Ai |
Username | Pablo-Ai |
Uploaded | December 08, 2022 |
Rating | 3 |
Size | 2,483 Kb |
Views | 32,384 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
VueJS | 1,933 Kb |
Loading donut animation | 2,109 Kb |
Fjsv | 2,645 Kb |
Fjqv | 4,061 Kb |
BabyStore v2 | 2,972 Kb |
Mario Bros Mushroom Pure CSS | 2,829 Kb |
Complex Table PoC | 2,301 Kb |
Responsive table POC | 2,774 Kb |
A Pen by Pablo Ai | 1,427 Kb |
Simple custom tooltip | 2,884 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
React Template | Isac | 1,241 Kb |
The Monty Hall Problem | Melatonind | 4,360 Kb |
This in constructor context | _shree33 | 1,718 Kb |
Personal Logo Animation | Lloydwheeler | 3,795 Kb |
Boom | Mhrjnsa1 | 1,794 Kb |
Ball physics | Blackkbot | 3,874 Kb |
Force Counter | Kenlauguico | 2,732 Kb |
Resume | Rottingroom | 5,483 Kb |
A Pen by Oliver Schafeld | Schafeld | 1,720 Kb |
Blank Starter | Mhartington | 2,171 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!