Navigation List
How do I make an navigation list?
What is a navigation list? How do you make a navigation list? This script and codes were developed by Robert Biggs on 24 August 2022, Wednesday.
Navigation List - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Navigation List</title> <link rel='stylesheet prefetch' href='https://s3-us-west-2.amazonaws.com/s.cdpn.io/77047/truck-ios.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <screen id="main" class="current"> <nav> <h1>Navigation</h1> </nav> <section> <h2>List</h2> <ul class="list" id='list'> <li data-goto='detail:${person.firstName}'> <h3>${person.firstName} ${person.lastName}</h3> <aside> <disclosure></disclosure> </aside> </li> </ul> </section>
</screen>
<screen id="detail" class="next"> <nav> <button class="back">Persons</button> <h1>Chosen Person</h1> </nav> <section> <ul class="list" id='personDetail'> <li> <img class='image' data-src='${person.image}' alt='${person.lastName}'> <div> <h3>${person.firstName} ${person.lastName}</h3> <h4>${ person.detail }</h4> </div> </li> </ul> </section>
</screen> <script src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/77047/truck.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Navigation List - Script Codes CSS Codes
.list > li img { height: 80px; width: auto; margin-right: 10px; } .list > li > div.no-flex { display: flex; max-width: 80px; justify-content: flex-end; } img { width: 40px; height: auto; } .image { align-self: flex-start; width: 8 } .no-flex { max-width: 200px !important; margin-right: 10px; }
Navigation List - Script Codes JS Codes
$(function() { var luminaries = [ {firstName: "Stephen", lastName: "Hawking", image: 'http://wobba.io/truckjs/images/Hawking.jpg', detail: 'Fugiat nulla sequi reiciendis consectetur, nam veritatis iste illo rerum eveniet vel tenetur sit. Velit expedita, consequatur dolores in ab.'}, {firstName: "Albert", lastName: "Einstein", image: 'http://wobba.io/truckjs/images/Einstein.jpg', detail: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloribus laudantium id a eum eveniet dolorum quae aperiam magni dignissimos vero.'}, {firstName: "Leonardo", lastName: "Da Vinci", image: 'http://wobba.io/truckjs/images/DaVinci.jpg', detail: 'Labore molestiae tenetur ex quibusdam aspernatur incidunt possimus perspiciatis eaque animi fugit aperiam itaque, sit culpa, asperiores laboriosam quos tempore!'}, {firstName: "Galileo", lastName: "Galilei", image: 'http://wobba.io/truckjs/images/Galileo.jpg', detail: 'Cupiditate architecto, quam dolore atque velit vel placeat iure facilis suscipit esse ut reiciendis similique iusto, porro quia laboriosam pariatur.'}, {firstName: "Nicholas", lastName: "Copernicus", image: 'http://wobba.io/truckjs/images/Copernicus.jpg', detail: 'Lipsum dolor sit amet, consectetur adipisicing elit. Dolorem id, sequi dicta alias illum fugiat fugit itaque. Totam, aut, voluptate!'} ]; var ListView = $.View({ element: '#list', variable: 'person' }); ListView.render(luminaries); var PersonDetailView = $.View({ element: '#personDetail', variable: 'person' }); var MyApp = $.Router(); MyApp.addRoute([ { route: 'detail', callback: function(id) { var person = luminaries.filter(function(person) { return person.firstName === id; })[0]; PersonDetailView.render(person); } } ]);
});
Developer | Robert Biggs |
Username | rbiggs |
Uploaded | August 24, 2022 |
Rating | 3 |
Size | 2,703 Kb |
Views | 30,360 |
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 |
Simple List | 1,736 Kb |
A Pen by Robert Biggs | 2,103 Kb |
TypeScript d.ts Test | 1,623 Kb |
Tab Bar App | 7,112 Kb |
IOS 7 Segmented Control | 2,577 Kb |
Simple List | 1,674 Kb |
Select List for Android | 2,002 Kb |
IOS 7 Horizontal Paging | 2,133 Kb |
Busy Indicator V5 | 2,055 Kb |
IOS 7 Transparent Sheet | 2,719 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 |
Canvas snow | Win7killer | 2,572 Kb |
Boxes | H3l1um | 2,563 Kb |
We Simplify animation | Meodai | 48,169 Kb |
A Pen by Mohomed Anees | Mohomedanees | 12,597 Kb |
CSS Patterns | Alyda | 3,953 Kb |
Rotate Demo | Agelber | 3,061 Kb |
Simple animated hover effect | Pobee-norris | 3,044 Kb |
3D Text in Sass | Bookcasey | 2,766 Kb |
Polo, the flying squirrel | Agbales | 2,445 Kb |
CSS3 Butterfly | Timohausmann | 3,430 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!