1234567891011121314 |
- $(document).on('click', '[data-toggle="lightbox"]', function(event) {
- event.preventDefault();
- $(this).ekkoLightbox();
- });
- $("#nav ul li a[href^='#']").on('click', function(e) {
- e.preventDefault();
- var hash = this.hash;
- $('html, body').animate({
- scrollTop: $(hash).offset().top
- }, 300, function(){
- window.location.hash = hash;
- });
- });
|