windhamdavid 4 years ago
parent
commit
455be5f230
3 changed files with 83 additions and 39 deletions
  1. 11 17
      js/studio.js
  2. 51 20
      page-studio.php
  3. 21 2
      style.css

+ 11 - 17
js/studio.js

@@ -33,25 +33,14 @@ jQuery(document).ready(function($) {
 			}  
 		);
 	});
-	$("#studio-caro").wallpaper({source: "../wp-content/themes/dw/img/desk2.jpg"});
-	$('.caro-grad').appear();
-	$('.caro-grad').one('appear', dw_appear);
-	function dw_appear() {
-		$('#caro').carousel({
-			interval: false,
-			wrap: true,
-		});
-		$('#svg-imac').addClass('bg');
-		
-		var anima = new DrawFillSVG({elementId: 'svg-imac'});
-		anima.replay();
-	};
 	
-	$('.studio-subnav a').click(function (e) {
-	  e.preventDefault()
-	  $(this).tab('show')
-	})
+	$("#studio-caro").wallpaper({source: "../wp-content/themes/dw/img/desk2.jpg"});
 
+	$('#caro').carousel({
+		interval: false,
+		wrap: true,
+	});
+	
 	$(document).bind('keyup', function(e) {
 	    if(e.which === 39){
 			$('#caro').carousel('next');
@@ -60,6 +49,11 @@ jQuery(document).ready(function($) {
 			$('#caro').carousel('prev');
 	    }
 	});
+	
+	$('.studio-subnav a').click(function (e) {
+	  e.preventDefault()
+	  $(this).tab('show')
+	})
 
 	$('#caro').on('slid.bs.carousel', function(event) {
 		var consta = $(event.target);

File diff suppressed because it is too large
+ 51 - 20
page-studio.php


+ 21 - 2
style.css

@@ -232,6 +232,18 @@ h5.contact {
 	#caro {
 		min-height: 300px;
 	}
+	#caro #svg-imac {
+		height: 220px !important;
+	}
+	#caro #svg-device {
+		display: none;
+	}
+	#caro #sv {
+		height: 100px !important;
+	}
+	#caro #svg-mac {
+		height: 150px !important;
+	}
 }
 @media (max-width: 768px) and  (min-width: 668px) {
   article.single {
@@ -676,7 +688,7 @@ h5.contact {
 	animation: fadeIn 1s;
 }
 #caro #svg-imac {
-	max-height: 340px;
+	height: 290px;
 }
 #caro #svg-imac.bg {
 	background: transparent url('img/web.gif') no-repeat 28% 15%;
@@ -685,6 +697,13 @@ h5.contact {
 #caro #svg-device {
 	float:right;
 	margin-top:-115px;
+	height: 190px;
+}
+#caro #sv {
+	height: 220px;
+}
+#caro #svg-mac {
+	height: 290px;
 }
 #studio-caro {
 	-webkit-transition: all 1s ease;
@@ -1176,7 +1195,7 @@ img.dw {
 .studio-subnav {
 	border-right: 1px solid #cecece;
 	margin: 28px 0px;
-	padding: 0 10px;
+	padding: 0px;
 }
 .studio-subnav a {
 	color: #000;