Browse Source

duck intro

windhamdavid 5 years ago
parent
commit
130794c08f
4 changed files with 29 additions and 12 deletions
  1. 0 1
      header-home.php
  2. 6 7
      index.php
  3. 20 2
      js/init.js
  4. 3 2
      style.css

+ 0 - 1
header-home.php

@@ -44,7 +44,6 @@
 	<div id="nav">
 		<div class="navbar navbar-fixed-top">
 			<div class="container">
-				<img class="navbar-brand" src="<?php echo get_bloginfo('template_directory');?>/img/daw.png" width="70" class="logo" alt="David Windham"/>
 				<div class="site-title">
 					<a href="#" class="navbar-brand navbar-right light"  data-toggle="offcanvas" data-target=".navmenu" title="David A. Windham" rel="home">David A. Windham</a>			
 				</div>

File diff suppressed because it is too large
+ 6 - 7
index.php


+ 20 - 2
js/init.js

@@ -191,8 +191,8 @@ $(function dw_hidenav() {
 
 function dw_caro(){
 	$('#caro-lead').carousel({
-		interval: 9777,
-		wrap: false,
+		interval: 2777,
+		wrap: true,
 		pause: false
 	});
 	var vidout = document.getElementById('tv');
@@ -224,9 +224,27 @@ $('#caro-lead').on('slide.bs.carousel', function(event) {
 			    pauseit();
 			});
 		}
+		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();
+					}	
+			    });
+			    closeit();
+			});
+		}
 	}, 10);
 });
 
+function dw_caro_pause(){
+	//$('#caro-lead').fadeOut('slow', function() {
+    	$('#caro-lead').carousel('pause');
+		//});	
+}
+
 $('#caro-lead').on('slid.bs.carousel', function() {
 	$('.carousel-caption').fadeOut(600);
 	$('#tv').delay(3200).queue(function(playit){

+ 3 - 2
style.css

@@ -889,7 +889,7 @@ img.dw {
 	color: #1d8;
 }
 .leader {
-	padding: 90px 0 0;
+	padding: 100px 0 0;
 }
 .dark {
 	background: #222;
@@ -923,7 +923,8 @@ article.single {
 article.home {
 	background: rgba(255, 255, 255, 0.9);
 	padding: 70px 60px;
-		border-radius: 10px;
+	border-radius: 10px;
+	min-height: 280px;
 }
 .post {
 	margin-bottom: 40px;