fixed js not responding
This commit is contained in:
parent
58b640a21d
commit
ff7b64c850
|
@ -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;
|
||||||
|
|
|
@ -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">
|
||||||
|
|
|
@ -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(){
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<title>Anna & Dan</title>
|
<title>Anna & Dan</title>
|
||||||
|
|
||||||
<!-- CSS -->
|
<!-- CSS -->
|
||||||
<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">
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="css/style.css">
|
||||||
|
@ -50,8 +50,8 @@
|
||||||
<!-- Javascript -->
|
<!-- Javascript -->
|
||||||
<script src="js/jquery-3.2.1.min.js"></script>
|
<script src="js/jquery-3.2.1.min.js"></script>
|
||||||
<script src="js/jquery-migrate-3.0.0.min.js"></script>
|
<script src="js/jquery-migrate-3.0.0.min.js"></script>
|
||||||
<script src="js/popper.min.js"></script>
|
<script src="js/popper.min.js"></script>
|
||||||
<script src="js/bootstrap.min.js"></script>
|
<script src="js/bootstrap.min.js"></script>
|
||||||
<script src="js/jquery.backstretch.min.js"></script>
|
<script src="js/jquery.backstretch.min.js"></script>
|
||||||
<script src="js/wow.min.js"></script>
|
<script src="js/wow.min.js"></script>
|
||||||
<script src="js/retina-1.1.0.min.js"></script>
|
<script src="js/retina-1.1.0.min.js"></script>
|
||||||
|
|
Loading…
Reference in New Issue