Browse Source

duck intro

windhamdavid 10 years ago
parent
commit
130794c08f
4 changed files with 26 additions and 9 deletions
  1. 0 1
      header-home.php
  2. 3 4
      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 id="nav">
 		<div class="navbar navbar-fixed-top">
 		<div class="navbar navbar-fixed-top">
 			<div class="container">
 			<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">
 				<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>			
 					<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>
 				</div>

File diff suppressed because it is too large
+ 3 - 4
index.php


+ 20 - 2
js/init.js

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

+ 3 - 2
style.css

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

Some files were not shown because too many files changed in this diff