Project

General

Profile

Revision 36d4e296

ID36d4e296cd50f94e99a916b7f8040c82f3a7f221

Added by Dan Shope over 8 years ago

Updated website with shopping cart and pricing page. Updated CAD model & testing layouts.

View differences:

docs/www/colonyscout/index.php
19 19
		<meta name="keywords" content="Scout, robotics, Carnegie Mellon University, autonomous, engineer"> 
20 20
 
21 21
<?php include("header.php"); ?>
22
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
23
<script type="text/javascript">
24
	google.load("jquery", "1.4.2");
25
	
26
	numphotos = 6;
27
	photoselect = (Math.floor(Math.random() * numphotos) + 1);
28
	
29
	photo = new Image();
30
	photo.src = "photos/" + photoselect + ".jpg";
31
	
32
	nextphoto = new Image();
33
	nextphoto.src = "photos/" + ((photoselect % numphotos) + 1) + ".jpg";
34
	
35
	google.setOnLoadCallback(function() {	
36
		$(document).ready(function() {
37
			$('#photo').css('background-image', "url('" + photo.src + "')");
38
			$('#photo').fadeIn();
39
		});
40
	});
41
	
42
	
43
	function changephoto(){
44
		photoselect = ((photoselect % numphotos) + 1);
45
		photo = nextphoto;
46
		
47
		$('#photo').fadeOut(500, function(){
48
			$('#photo').css('background-image', "url('" + photo.src + "')");
49
			$('#photo').fadeIn();
50
		});
51
		
52
		nextphoto = new Image();
53
		nextphoto.src = "photos/" + ((photoselect % numphotos) + 1); + ".jpg";
54
	}
55
	
56
</script>
22 57
<script src="Cambria_400.font.js" type="text/javascript"></script>
23 58
<script type="text/javascript">
24 59
	Cufon.replace('#hero-banner-text', { fontFamily:'Cambria', textShadow:'#CCCCCC 1px 1px' });
......
34 69
		<div id="body-boxes">
35 70
			<div class="box-row">
36 71
				<div id="hero-banner">
37
					<div id="hero-banner-text">A low cost, versatile research platform for autonomous systems in collaborative robotics
72
					<div id="hero-banner-text">An affordable, versatile research platform for autonomous systems in collaborative robotics
38 73
						<br/><br/>
39 74
						<a href="gallery.php" class="small">See it in action &gt;&gt;</a>
40 75
					</div>
......
42 77
				<div id="hero-banner-side"></div>
43 78
			</div>
44 79

  
80
			<div id="photo" style="display: none; width:700px; height:367px; margin: 0 0 0 0; background-color: #000000; background-image:url('photos/1.jpg'); background-repeat:no-repeat;">
81
				<a href="javascript: changephoto();" style="width:700px; height:367px; margin:0 0 10 0; float:left; text-decoration: none; color: #000000;"></a>
82
			</div>
83

  
84
			
45 85
			<div class="box-row topmargin">
46 86
				<div class="white-top"></div>
47 87
				<div class="white-body text-box">

Also available in: Unified diff