init.js 495 B

123456789101112131415161718
  1. $(document).ready(function() {
  2. $(window).scroll(function() {
  3. var nav_img = $('.navbar-brand img');
  4. if ($(document).scrollTop() < 130) {
  5. $('nav').addClass('transparent');
  6. nav_img.attr("src","img/biotherm-white-dots.png");
  7. } else {
  8. $('nav').removeClass('transparent').css('color: black');
  9. nav_img.attr("src","img/biotherm-black-dots.png");
  10. }
  11. });
  12. });
  13. $(document).on('click', '[data-toggle="lightbox"]', function(event) {
  14. event.preventDefault();
  15. $(this).ekkoLightbox();
  16. });