History.JS demo
How do I make an history.js demo?
What is a history.js demo? How do you make a history.js demo? This script and codes were developed by Martin Michálek on 29 September 2022, Thursday.
History.JS demo - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>History.JS demo</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script>
</head>
<body> <ul role="navigation"> <li><a href="/prvni">První</a></li> <li><a href="/druhy">Druhý</a></li> <li><a href="/treti">Třetí</a></li>
</ul> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/history.js/1.7.1/bundled/html4+html5/jquery.history.js'></script> <script src="js/index.js"></script>
</body>
</html>
History.JS demo - Script Codes JS Codes
// History.js example
(function(window,undefined){ // Prepare var History = window.History; // Note: We are using a capital H instead of a lower h $('[role=navigation] a').click(function(e){ History.pushState(null, null, $(this).attr('href')); e.preventDefault(); }) History.Adapter.bind(window,'statechange',function(){ var State = History.getState(); History.log(State.data, State.title, State.url); });
})(window);
Developer | Martin Michálek |
Username | machal |
Uploaded | September 29, 2022 |
Rating | 3 |
Size | 1,788 Kb |
Views | 24,288 |
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 |
CSS3 Background Size with gradient | 1,659 Kb |
SVG Star Ratings with Partially Filled Star | 2,397 Kb |
SVG simple example | 1,362 Kb |
CSS3 Sharp Gradients | 2,043 Kb |
LESS mixin for font-size in rem units with pixels fallback | 1,657 Kb |
CSS3 Border Image with gradient | 1,665 Kb |
CSS3 Border Radius demo | 1,859 Kb |
Removing 300ms delay without FastClick library | 1,924 Kb |
CSS3 Media Queries demo | 1,824 Kb |
Lazy loading with Unveil.js | 2,389 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 |
Loading animation - freedom purchase | Rocbear | 2,567 Kb |
Swiftype Lower Third | Zumwalt | 4,796 Kb |
Loading animation with css | Icebob | 2,947 Kb |
Birthday Party Starter | Aussieyang | 1,629 Kb |
Polygon Dodecahedron in CSS | Vennsoh | 7,606 Kb |
Objects | Bonzaipenguin | 2,616 Kb |
Obligatory CSS3 UI Nav | Romandiaz | 9,017 Kb |
Segments mouse following | Nosir | 2,909 Kb |
Z-index demo | Kblh | 1,534 Kb |
Login with flip 3d animation | Afiq | 3,012 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!