JM Nav 2nd Gen prototype x2

Size
5,073 Kb
Views
22,264

How do I make an jm nav 2nd gen prototype x2?

What is a jm nav 2nd gen prototype x2? How do you make a jm nav 2nd gen prototype x2? This script and codes were developed by Jonathan Garner on 13 August 2022, Saturday.

JM Nav 2nd Gen prototype x2 Previews

JM Nav 2nd Gen prototype x2 - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>JM Nav 2nd Gen prototype x2</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!-- http://callmenick.com/post/simple-responsive-tabs-javascript-css -->
<nav class="nav nav-group"> <h1>Jasper Morrison</h1> <a class="menu-toggle" href="#">Menu</a></li> </ul>
</nav><!--end .nav-->
<nav class="full-nav">
<div id="tabs" class="c-tabs no-js"> <div class="c-tabs-nav"> <a href="#" class="c-tabs-nav__link is-active">Projects</a> <a href="#" class="c-tabs-nav__link">Exhibitions</a> <a href="#" class="c-tabs-nav__link">Publications</a> <a href="#" class="c-tabs-nav__link">Studio</a> <a href="#" class="c-tabs-nav__link">Shop</a> <a href="#" class="c-tabs-nav__link">Search</a> </div> <div class="c-tab is-active"> <div class="c-tab__content"> <h2 class="c-tab-title">Tab 1 list</h2> <ul class="c-tab__list"> <li><a href="">Tableware</a></li> <li><a href="">Kitchen</a></li> <li><a href="">Chairs</a></li> <li><a href="">Sofas</a></li> <li><a href="">Tables</a></li> <li><a href="">Storage</a></li> <li><a href="">Lighting</a></li> <li><a href="">Office</a></li> <li><a href="">Electricals</a></li> <li><a href="">Urban</a></li> <li><a href="">Architectural</a></li> <li><a href="">Accessories</a></li> <li><a href="">Editions</a></li> </ul> </div> </div> <div class="c-tab"> <div class="c-tab__content"> <h2 class="c-tab-title">Tab 1 list</h2> <ul class="c-tab__list"> <li>2010 - 2019</li> <li>2000 - 2010</li> <li>1990 - 1999</li> <li>1980 - 1989</li> </ul> </div> </div> <div class="c-tab"> <div class="c-tab__content"> <h2 class="c-tab-title">Tab 3 list</h2> <ul class="c-tab__list"> <li>Books</li> <li>Essays</li> <li>Articles</li> <li>Interviews</li> </ul> </div> </div> <div class="c-tab"> <div class="c-tab__content"> <h2 class="c-tab-title">Tab 4 list</h2> <ul class="c-tab__list"> <li>Office for Design</li> <li>Biography</li> <li>Credits and Links</li> </ul> </div> </div>
</div>
<form class="c-search" action=""> <input type="text" placeholder="Search" /> <button class="c-search__submit">Go</button>
</form>
</nav>
<main class="c-main-content"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Obcaecati, unde earum ad, aliquid quisquam ipsa labore id animi dolorem qui ipsum quo nobis omnis vero aut porro ipsam, cumque mollitia!</p>
</main> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

JM Nav 2nd Gen prototype x2 - Script Codes CSS Codes

/* apply a natural box layout model to all elements, but allowing components to change */
html { box-sizing: border-box;
}
*, *:before, *:after { box-sizing: inherit;
}
body { color: #9d9282;
}
.c-tabs { padding-top: 1em; display: flex; align-items: stretch; -webkit-transition: height 1s; transition: height 1s;
}
.c-tabs a { color: #9d9282; text-decoration: none;
}
.c-tabs a:hover { color: black;
}
.c-tabs-nav { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; flex-wrap: wrap; align-content: flex-start; list-style: none; width: 50%; border-right: solid 1px #9d9282; margin: 0; padding-top: 0 1em;
}
.c-tabs-nav__link { -webkit-box-flex: 1; -webkit-flex: 1; -ms-flex: 1; flex: 1; flex-basis: 100%; text-align: right; margin-bottom: 0.25em; padding-right: 1em; -webkit-transition: color 0.3s; transition: color 0.3s;
}
.c-tabs-nav__link:last-child { margin-right: 0; background: red;
}
.c-tabs-nav__link:hover { color: black;
}
.c-tabs-nav__link.is-active { color: black;
}
.c-tabs-nav__link i,
.c-tabs-nav__link span { margin: 0; padding: 0; line-height: 1;
}
.c-tabs-nav__link i { font-size: 18px;
}
.c-tabs-nav__link span { display: none; font-size: 18px;
}
.c-search { margin: 1em; display: flex;
}
.c-search input { flex-basis: 100%; -webkit-transition: width 0.3s; transition: width 0.3s;
}
.c-search .c-search__submit { width: 2.7em;
}
@media all and (min-width: 720px) { .c-tabs-nav__link i { margin-bottom: 12px; font-size: 22px; } .c-tabs-nav__link span { display: block; }
}
/** * Tab */
.c-tab { display: none; width: 50%;
}
.c-tab.is-active { display: block;
}
.c-tab__content { padding: 0 1em;
}
.c-tab__content ul { list-style: none; margin: 0; padding: 0;
}
.c-tab__content li { margin-bottom: 0.25em;
}
/** * Tabs no-js fallback */
.c-tabs.no-js { display: flex; flex-wrap: wrap;
}
.c-tabs.no-js .c-tabs-nav { display: none;
}
.c-tabs .c-tab-title { display: none;
}
.c-tabs.no-js .c-tab-title { display: block;
}
.c-tabs.no-js .c-tab__list { display: flex; flex-wrap: wrap;
}
.c-tabs.no-js .c-tab { display: block; flex-basis: 100%; border-bottom: solid 1px;
}
.c-tabs.no-js .c-tab:last-child { margin-bottom: 0;
}
.c-main-content { color: black; padding: 0 1em; width: 100%; height: 500px;
}
.nav-group { display: flex; justify-content: space-between; align-items: center; padding: 0 1em; border-bottom: solid 1px #9d9282;
}
.nav-group h1 { font-size: 1em;
}
.nav-group .menu-toggle { text-decoration: none; color: #9d9282;
}
.full-nav { max-height: 0; overflow: hidden; -webkit-transition: max-height 0.2s; transition: max-height 0.2s;
}
.full-nav.is-active { max-height: 1000px;
}

JM Nav 2nd Gen prototype x2 - Script Codes JS Codes

(function() { 'use strict'; /** * tabs * * @description The Tabs component. * @param {Object} options The options hash */ var tabs = function(options) { var el = document.querySelector(options.el); var tabNavigationLinks = el.querySelectorAll(options.tabNavigationLinks); var tabContentContainers = el.querySelectorAll(options.tabContentContainers); var activeIndex = 0; var initCalled = false; /** * init * * @description Initializes the component by removing the no-js class from * the component, and attaching event listeners to each of the nav items. * Returns nothing. */ var init = function() { if (!initCalled) { initCalled = true; el.classList.remove('no-js'); for (var i = 0; i < tabNavigationLinks.length; i++) { var link = tabNavigationLinks[i]; handleClick(link, i); } } }; /** * handleClick * * @description Handles click event listeners on each of the links in the * tab navigation. Returns nothing. * @param {HTMLElement} link The link to listen for events on * @param {Number} index The index of that link */ var handleClick = function(link, index) { link.addEventListener('click', function(e) { e.preventDefault(); goToTab(index); }); }; /** * goToTab * * @description Goes to a specific tab based on index. Returns nothing. * @param {Number} index The index of the tab to go to */ var goToTab = function(index) { if (index !== activeIndex && index >= 0 && index <= tabNavigationLinks.length) { tabNavigationLinks[activeIndex].classList.remove('is-active'); tabNavigationLinks[index].classList.add('is-active'); tabContentContainers[activeIndex].classList.remove('is-active'); tabContentContainers[index].classList.add('is-active'); activeIndex = index; } }; /** * Returns init and goToTab */ return { init: init, goToTab: goToTab }; }; /** * Attach to global namespace */ window.tabs = tabs;
})();
var myTabs = tabs({ el: '#tabs', tabNavigationLinks: '.c-tabs-nav__link', tabContentContainers: '.c-tab' });
myTabs.init();
$(document).ready(function() { $('body').addClass('js'); var $topNavToggle = $('.menu-toggle'), $fullNav = $('.full-nav'); // When clicking on toggle $topNavToggle.click(function() { $fullNav.toggleClass('is-active'); return false; }); });
JM Nav 2nd Gen prototype x2 - Script Codes
JM Nav 2nd Gen prototype x2 - Script Codes
Home Page Home
Developer Jonathan Garner
Username jonathangarner
Uploaded August 13, 2022
Rating 3
Size 5,073 Kb
Views 22,264
Do you need developer help for JM Nav 2nd Gen prototype x2?

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!

Jonathan Garner (jonathangarner) Script Codes
Create amazing SEO content with AI!

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!