|
@@ -160,6 +160,10 @@ $('.nav-toggle').on('touchstart click', function(e) {
|
|
|
$('#nav').affix({
|
|
|
//offset: {top: $('.intro').height()-$('.navbar').height()}
|
|
|
});
|
|
|
+$('.about').affix({
|
|
|
+ top: 0,
|
|
|
+ bottom: 0
|
|
|
+});
|
|
|
|
|
|
$(function dw_hidenav() {
|
|
|
var headerHeight = $('.navbar').height();
|
|
@@ -191,7 +195,7 @@ $(function dw_hidenav() {
|
|
|
|
|
|
function dw_caro(){
|
|
|
$('#caro-lead').carousel({
|
|
|
- interval: 2777,
|
|
|
+ interval: 5777,
|
|
|
wrap: true,
|
|
|
pause: false
|
|
|
});
|
|
@@ -226,23 +230,24 @@ $('#caro-lead').on('slide.bs.carousel', function(event) {
|
|
|
}
|
|
|
if (consta.find('.item.active').data('id') === 3) {
|
|
|
$('.leader').delay(100).queue(function(closeit){
|
|
|
- $('.posts-front').ScrollTo({
|
|
|
- duration: 1000,
|
|
|
- easing: 'linear',
|
|
|
- callback: function(){
|
|
|
- dw_caro_pause();
|
|
|
- }
|
|
|
- });
|
|
|
+ dw_caro_hide();
|
|
|
closeit();
|
|
|
});
|
|
|
}
|
|
|
}, 10);
|
|
|
});
|
|
|
|
|
|
-function dw_caro_pause(){
|
|
|
- //$('#caro-lead').fadeOut('slow', function() {
|
|
|
- $('#caro-lead').carousel('pause');
|
|
|
- //});
|
|
|
+function dw_caro_hide(){
|
|
|
+ $('.leader').fadeTo(500,0, function() {
|
|
|
+ $('.leader').slideUp(800);
|
|
|
+ $('.leader').delay(1000).queue(function(scrollit){
|
|
|
+ $('.posts-front').ScrollTo({
|
|
|
+ duration: 1000,
|
|
|
+ easing: 'linear',
|
|
|
+ });
|
|
|
+ });
|
|
|
+ $('#caro-lead').carousel('pause');
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
$('#caro-lead').on('slid.bs.carousel', function() {
|