Team:UCLA

From 2013.igem.org

(Difference between revisions)
m
Line 1: Line 1:
 +
{{:Team:UCLA/Template}}
<html><head>
<html><head>
-
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
 
-
<script>
 
-
$(document).ready(function(){
 
-
 
-
var $window = $(window); //You forgot this line in the above example
 
-
 
-
$('section[data-type="background"]').each(function(){
 
-
var $bgobj = $(this); // assigning the object
 
-
$(window).scroll(function() {
 
-
var yPos = -( ($(window).scrollTop() - $bgobj.offset().top) / $bgobj.data('speed'));
 
-
// Put together our final background position
 
-
var coords = '50% '+ yPos + 'px';
 
-
// Move the background
 
-
$bgobj.css({ backgroundPosition: coords });
 
-
});
 
-
});
 
-
});
 
-
</script>
 
<title>UCLA iGEM </title>
<title>UCLA iGEM </title>
<style>
<style>

Revision as of 23:28, 25 September 2013

UCLA iGEM


WELCOME TO UCLA IGEM