|
64 | 64 | </div> |
65 | 65 | <div id="tg-navigation" class="collapse navbar-collapse tg-navigation"> |
66 | 66 | <ul> |
67 | | - <li><a href="https://in.pycon.org/2016/">2016</a></li> |
68 | | - <li><a href="sponsorship.html">Sponsorship</a></li> |
| 67 | + <li><a href="index.html">Home</a></li> |
69 | 68 | <li><a href="#speakers">Speakers</a></li> |
| 69 | + <li><a href="#schedule">Schedule</a></li> |
| 70 | + <li><a href="sponsorship.html">Sponsorship</a></li> |
70 | 71 | <li><a href="https://in.pycon.org/blog/">Blog</a></li> |
71 | 72 | <li><a href="faqs.html">FAQs</a></li> |
72 | 73 | <li class="menu-item-has-children"> |
@@ -401,7 +402,7 @@ <h2>Real Choice For<span>The Real Business</span></h2> |
401 | 402 | *************************************--> |
402 | 403 |
|
403 | 404 | <section class="tg-sectionspace tg-haslayout"> |
404 | | - <div class="container"> |
| 405 | + <div class="container" id="schedule"> |
405 | 406 | <div class="row"> |
406 | 407 | <div class="col-xs-offset-0 col-xs-12 col-sm-offset-0 col-sm-12 col-md-offset-2 col-md-8 col-lg-offset-2 col-lg-8"> |
407 | 408 | <div class="tg-sectionhead"> |
@@ -885,6 +886,34 @@ <h3 class="wow fadeInDown text-center">Latest Blogs</h3> |
885 | 886 | <script src="js/vendor/jquery-library.js"></script> |
886 | 887 | <script src="js/vendor/bootstrap.min.js"></script> |
887 | 888 | <script src="https://maps.google.com/maps/api/js?key=AIzaSyCR-KEWAVCn52mSdeVeTqZjtqbmVJyfSus&language=en"></script> |
| 889 | + <script> |
| 890 | + $(document).ready(function(){ |
| 891 | + // Add scrollspy to <body> |
| 892 | + $('body').scrollspy({target: ".navbar", offset: 50}); |
| 893 | + |
| 894 | + // Add smooth scrolling on all links inside the navbar |
| 895 | + $("#tg-navigation a").on('click', function(event) { |
| 896 | + // Make sure this.hash has a value before overriding default behavior |
| 897 | + if (this.hash !== "") { |
| 898 | + // Prevent default anchor click behavior |
| 899 | + event.preventDefault(); |
| 900 | + |
| 901 | + // Store hash |
| 902 | + var hash = this.hash; |
| 903 | + |
| 904 | + // Using jQuery's animate() method to add smooth page scroll |
| 905 | + // The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area |
| 906 | + $('html, body').animate({ |
| 907 | + scrollTop: $(hash).offset().top |
| 908 | + }, 800, function(){ |
| 909 | + |
| 910 | + // Add hash (#) to URL when done scrolling (default click behavior) |
| 911 | + window.location.hash = hash; |
| 912 | + }); |
| 913 | + } // End if |
| 914 | + }); |
| 915 | + }); |
| 916 | + </script> |
888 | 917 | <script src="js/customScrollbar.min.js"></script> |
889 | 918 | <script src="js/packery.pkgd.min.js"></script> |
890 | 919 | <script src="js/owl.carousel.min.js"></script> |
|
0 commit comments