fixed js not responding
This commit is contained in:
parent
58b640a21d
commit
ff7b64c850
|
@ -1,5 +1,5 @@
|
|||
@import url('webfonts/OpenSans');
|
||||
@import url('webfonts/Montserrat');
|
||||
@import url('../webfonts/OpenSans-Regular.ttf');
|
||||
@import url('../webfonts/Montserrat-Regular.ttf');
|
||||
|
||||
body {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
<title>Anna & Dan</title>
|
||||
|
||||
<!-- 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/all.css">
|
||||
<link rel="stylesheet" href="css/animate.css">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function scroll_to(clicked_link, nav_height) {
|
||||
var element_class = clicked_link.attr('href').replace('#', '.');
|
||||
var scroll_to = 0;
|
||||
if(element_class != '.top-content') {
|
||||
if(element_class != '.home') {
|
||||
element_class += '-container';
|
||||
scroll_to = $(element_class).offset().top - nav_height;
|
||||
}
|
||||
|
@ -20,20 +20,20 @@ jQuery(document).ready(function() {
|
|||
scroll_to($(this), $('nav').outerHeight());
|
||||
});
|
||||
// toggle "navbar-no-bg" class
|
||||
$('.top-content .text').waypoint(function() {
|
||||
$('.home .text').waypoint(function() {
|
||||
$('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-content').backstretch("resize");
|
||||
$('.home').backstretch("resize");
|
||||
});
|
||||
$('#top-navbar-1').on('hidden.bs.collapse', function(){
|
||||
$('.top-content').backstretch("resize");
|
||||
$('.home').backstretch("resize");
|
||||
});
|
||||
|
||||
$('a[data-toggle="tab"]').on('shown.bs.tab', function(){
|
||||
|
|
Loading…
Reference in New Issue