12345678910111213141516171819202122232425262728293031 |
- $(document).ready(function() {
- $(window).scroll(function() {
- var nav_img = $('.navbar-brand img');
- if ($(document).scrollTop() < 130) {
- $('nav').addClass('transparent');
- nav_img.attr("src","img/biotherm-white-dots.png");
- } else {
- $('nav').removeClass('transparent').css('color: black');
- nav_img.attr("src","img/biotherm-black-dots.png");
- }
- });
-
- if (window.location.hash) {
- var hash = window.location.hash;
- $('html, body').animate({
- scrollTop : $(hash).offset().top
- }, 500);
- };
-
- });
- $(document).on('click', '[data-toggle="lightbox"]', function(event) {
- event.preventDefault();
- $(this).ekkoLightbox();
- });
- $('#front-carousel').carousel({
- interval: 8000
- });
|