Line 265: | Line 265: | ||
right: 15px; | right: 15px; | ||
z-index: 2; | z-index: 2; | ||
− | margin-top: - | + | margin-top: -38px; |
} | } | ||
Line 503: | Line 503: | ||
function resizeVid() { | function resizeVid() { | ||
− | $('.covervid-video').css("width", "") | + | $('.covervid-video').css("width", "") |
− | + | .css("height", ""); | |
height = $(document).outerHeight(true); | height = $(document).outerHeight(true); | ||
width = $(document).outerWidth(true); | width = $(document).outerWidth(true); | ||
Line 518: | Line 518: | ||
$('nav').mouseover( | $('nav').mouseover( | ||
function() { | function() { | ||
− | $('#img-logo').css('transition', '.35s ease-in') | + | $('#img-logo').css('transition', '.35s ease-in') |
− | + | .css('opacity', '1'); | |
− | $('#img-igemlogo').css('transition', '.35s ease-in') | + | $('#img-igemlogo').css('transition', '.35s ease-in') |
− | + | .css('opacity', '1'); | |
$('nav ul').addClass("hover"); | $('nav ul').addClass("hover"); | ||
} | } | ||
Line 529: | Line 529: | ||
var scroll = $(window).scrollTop(); | var scroll = $(window).scrollTop(); | ||
if (scroll > 0) { | if (scroll > 0) { | ||
− | if ($(window).width() >= | + | if ($(window).width() >= 1090) { |
var pushed = $('body').hasClass('pushed'); | var pushed = $('body').hasClass('pushed'); | ||
if (pushed == false) { | if (pushed == false) { | ||
− | $('#img-logo').css('transition', '.25s ease') | + | $('#img-logo').css('transition', '.25s ease') |
− | + | .css('opacity', '0'); | |
− | $('#img-igemlogo').css('transition', '.25s ease') | + | $('#img-igemlogo').css('transition', '.25s ease') |
− | + | .css('opacity', '0'); | |
$('nav ul').removeClass("hover"); | $('nav ul').removeClass("hover"); | ||
$('nav').css('transition', '.5s ease'); | $('nav').css('transition', '.5s ease'); | ||
Line 547: | Line 547: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
function checkWidth() { | function checkWidth() { | ||
− | if ($(window).width() < | + | if ($(window).width() < 1090 || $('nav').hasClass('pushed')) { |
$('nav li').css('display', 'none'); | $('nav li').css('display', 'none'); | ||
$('#img-more').css('display', 'block'); | $('#img-more').css('display', 'block'); | ||
$('nav ul').addClass("hover"); | $('nav ul').addClass("hover"); | ||
− | $('#img-logo').css('transition', '.35s ease-in') | + | $('#img-logo').css('transition', '.35s ease-in') |
− | + | .css('opacity', '1'); | |
− | $('#img-igemlogo').css('transition', '.35s ease-in') | + | $('#img-igemlogo').css('transition', '.35s ease-in') |
− | + | .css('opacity', '1') | |
} else { | } else { | ||
$('nav li').css('display', 'inline'); | $('nav li').css('display', 'inline'); | ||
Line 560: | Line 560: | ||
$('nav ul').removeClass("hover"); | $('nav ul').removeClass("hover"); | ||
if ($(window).scrollTop() > 0) { | if ($(window).scrollTop() > 0) { | ||
− | $('#img-igemlogo').css('transition', '.25s ease') | + | $('#img-igemlogo').css('transition', '.25s ease') |
− | + | .css('opacity', '0'); | |
− | $('#img-logo').css('transition', '.25s ease') | + | $('#img-logo').css('transition', '.25s ease') |
− | + | .css('opacity', '0'); | |
$('nav ul').addClass("scrolled"); | $('nav ul').addClass("scrolled"); | ||
} | } | ||
Line 579: | Line 579: | ||
$('nav').toggleClass('pushed'); | $('nav').toggleClass('pushed'); | ||
$('nav img').toggleClass('pushed'); | $('nav img').toggleClass('pushed'); | ||
− | if ($(window).width() >= | + | if ($(window).width() >= 1090) { |
var pushed = $('body').hasClass('pushed'); | var pushed = $('body').hasClass('pushed'); | ||
if (pushed == false) { | if (pushed == false) { | ||
Line 585: | Line 585: | ||
$('#img-more').css('display', 'none'); | $('#img-more').css('display', 'none'); | ||
$('nav ul').removeClass("hover"); | $('nav ul').removeClass("hover"); | ||
− | |||
− | |||
− | |||
− | |||
} | } | ||
} | } | ||
Line 597: | Line 593: | ||
var scroll = $(window).scrollTop(); | var scroll = $(window).scrollTop(); | ||
if (scroll > 0) { | if (scroll > 0) { | ||
− | if ($(window).width() >= | + | if ($(window).width() >= 1090) { |
nav.addClass("scrolled"); | nav.addClass("scrolled"); | ||
nav.removeClass("hover"); | nav.removeClass("hover"); | ||
− | $('#img-logo').css('transition', '.25s ease') | + | $('#img-logo').css('transition', '.25s ease') |
− | + | .css('opacity', '0'); | |
− | $('#img-igemlogo').css('transition', '.25s ease') | + | $('#img-igemlogo').css('transition', '.25s ease') |
− | + | .css('opacity', '0'); | |
} | } | ||
} else { | } else { | ||
nav.removeClass("scrolled"); | nav.removeClass("scrolled"); | ||
− | $('#img-logo').css('transition', '.35s ease-in') | + | $('#img-logo').css('transition', '.35s ease-in') |
− | + | .css('opacity', '1'); | |
− | $('#img-igemlogo').css('transition', '.35s ease-in') | + | $('#img-igemlogo').css('transition', '.35s ease-in') |
− | + | .css('opacity', '1'); | |
} | } | ||
}); | }); |
Revision as of 02:29, 11 October 2016
</div>
</div>
Projects
We set out to slow the pace of global warming by sequestering methane in the environment. Along the way we are engineering a DIY -80 C freezer to increase access to synthetic biology.