fixed js not responding

This commit is contained in:
Vicky Steeves 2019-08-02 11:59:00 -04:00 committed by Remi Rampin
parent 58b640a21d
commit ff7b64c850
4 changed files with 11 additions and 13 deletions

View File

@ -1,5 +1,5 @@
@import url('webfonts/OpenSans'); @import url('../webfonts/OpenSans-Regular.ttf');
@import url('webfonts/Montserrat'); @import url('../webfonts/Montserrat-Regular.ttf');
body { body {
font-family: 'Open Sans', sans-serif; font-family: 'Open Sans', sans-serif;

View File

@ -10,8 +10,6 @@
<title>Anna & Dan</title> <title>Anna & Dan</title>
<!-- CSS --> <!-- CSS -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,600">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:300">
<link rel="stylesheet" href="css/bootstrap.min.css"> <link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/all.css"> <link rel="stylesheet" href="css/all.css">
<link rel="stylesheet" href="css/animate.css"> <link rel="stylesheet" href="css/animate.css">

View File

@ -1,7 +1,7 @@
function scroll_to(clicked_link, nav_height) { function scroll_to(clicked_link, nav_height) {
var element_class = clicked_link.attr('href').replace('#', '.'); var element_class = clicked_link.attr('href').replace('#', '.');
var scroll_to = 0; var scroll_to = 0;
if(element_class != '.top-content') { if(element_class != '.home') {
element_class += '-container'; element_class += '-container';
scroll_to = $(element_class).offset().top - nav_height; scroll_to = $(element_class).offset().top - nav_height;
} }
@ -20,20 +20,20 @@ jQuery(document).ready(function() {
scroll_to($(this), $('nav').outerHeight()); scroll_to($(this), $('nav').outerHeight());
}); });
// toggle "navbar-no-bg" class // toggle "navbar-no-bg" class
$('.top-content .text').waypoint(function() { $('.home .text').waypoint(function() {
$('nav').toggleClass('navbar-no-bg'); $('nav').toggleClass('navbar-no-bg');
}); });
/* /*
Background slideshow Background
*/ */
$('.top-content').backstretch("../img/splash.jpg"); $('.home').backstretch("../img/splash.jpg");
$('#top-navbar-1').on('shown.bs.collapse', function(){ $('#top-navbar-1').on('shown.bs.collapse', function(){
$('.top-content').backstretch("resize"); $('.home').backstretch("resize");
}); });
$('#top-navbar-1').on('hidden.bs.collapse', function(){ $('#top-navbar-1').on('hidden.bs.collapse', function(){
$('.top-content').backstretch("resize"); $('.home').backstretch("resize");
}); });
$('a[data-toggle="tab"]').on('shown.bs.tab', function(){ $('a[data-toggle="tab"]').on('shown.bs.tab', function(){