Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- jQuery(document).ready(function($) {
- $('.tab-title').each(function () {
- var section_id = $(this).find("a").attr("href");
- $(this).find("a").removeAttr("href");
- $(this).click(function() {
- $(this).siblings().removeClass("active-tab");
- $(this).addClass("active-tab");
- $('.tab-content').hide();
- $(section_id).show();
- $('html, body').animate({scrollTop: $(section_id).offset().top - 97}, 1000);
- });
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement