Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <script>
- $(document).ready(function() {
- var hash = window.location.hash.substring(1);
- $("a").click(function(){
- var hash = window.location.hash.substring(1);
- if(hash == "1"){
- $("#main").hide();
- $(".1").show();
- $(".2").hide();
- $(".3").hide();
- $(".4").hide();
- }else if(hash == "2"){
- $("#main").hide();
- $(".1").hide();
- $(".2").show();
- $(".3").hide();
- $(".4").hide();
- }else if(hash == "3"){
- $("#main").hide();
- $(".1").hide();
- $(".2").hide();
- $(".3").show();
- $(".4").hide();
- }else if(hash == "4"){
- $("#main").hide();
- $(".1").hide();
- $(".2").hide();
- $(".3").hide();
- $(".4").show();
- }else{
- $(".start").hide();
- $("#main").show();
- }
- });
- });
- </script>
- <title>Os4Pontos</title>
- </head>
- <body>
- <div id="start">
- <div class="container main text-center">
- <ul>
- <li><a href="#1">1</a></li>
- <li><a href="#2">2</a></li>
- <li><a href="#3">3</a></li>
- <li><a href="#4">4</a></li>
- </ul>
- </div>
- </div>
- <div id="navbar">
- <div class="navbar-fixed-top" style="background: url('img/bg2.jpg')">
- </div>
- </div>
- <div class="container">
- <section id="main">
- <article id="1">
- </article><article id="2">
- </article><article id="3">
- </article><article id="4">
- </article>
- </section>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment