Team:NYU Gallatin/
From 2012.igem.org
(Difference between revisions)
m |
|||
(18 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
{{:Team:NYU_Gallatin/Templates/Styles}} | {{:Team:NYU_Gallatin/Templates/Styles}} | ||
<html><body> | <html><body> | ||
- | <div class="html front logged-in no-sidebars page-node page-node- page-node-1 node-type-page" > | + | <div class="html front not-logged-in no-sidebars page-node page-node- page-node-1 node-type-page" > |
<div id="top-main-menu" class="navigation"> | <div id="top-main-menu" class="navigation"> | ||
<h2 class="element-invisible">Main menu</h2><ul id="top-main-menu-links" class="links clearfix"><li class="menu-218 first active"><a href="/Team:NYU_Gallatin/" title="Home of Aseatobacter." class="active">Home</a></li> | <h2 class="element-invisible">Main menu</h2><ul id="top-main-menu-links" class="links clearfix"><li class="menu-218 first active"><a href="/Team:NYU_Gallatin/" title="Home of Aseatobacter." class="active">Home</a></li> | ||
Line 8: | Line 8: | ||
<li class="menu-308"><a href="/Team:NYU_Gallatin/Parts" title="Our work with the parts registry.">Parts</a></li> | <li class="menu-308"><a href="/Team:NYU_Gallatin/Parts" title="Our work with the parts registry.">Parts</a></li> | ||
<li class="menu-310"><a href="/Team:NYU_Gallatin/Modeling" title="How we put it all together.">Modeling</a></li> | <li class="menu-310"><a href="/Team:NYU_Gallatin/Modeling" title="How we put it all together.">Modeling</a></li> | ||
- | <li class="menu- | + | <li class="menu-584"><a href="/Team:NYU_Gallatin/Notebook" title="Lab notebooks, news, and photos.">Notebook</a></li> |
<li class="menu-312"><a href="/Team:NYU_Gallatin/Safety" title="Our commitment to safety.">Safety</a></li> | <li class="menu-312"><a href="/Team:NYU_Gallatin/Safety" title="Our commitment to safety.">Safety</a></li> | ||
<li class="menu-313"><a href="/Team:NYU_Gallatin/Attributions" title="Give credit where credit is due.">Attributions</a></li> | <li class="menu-313"><a href="/Team:NYU_Gallatin/Attributions" title="Give credit where credit is due.">Attributions</a></li> | ||
- | <li class="menu-306 last"><a href="https://igem.org/Team.cgi?year=2012& | + | <li class="menu-306 last"><a href="https://igem.org/Team.cgi?year=2012&team_name=NYU_Gallatin" title="Official iGEM 2012 profile.">Profile</a></li> |
</ul></div> <!-- /#main-menu --> | </ul></div> <!-- /#main-menu --> | ||
<div id="page-wrapper"><div id="page"> | <div id="page-wrapper"><div id="page"> | ||
Line 17: | Line 17: | ||
</html> | </html> | ||
{{:Team:NYU_Gallatin/Templates/Header_Default}} | {{:Team:NYU_Gallatin/Templates/Header_Default}} | ||
- | < | + | <html><nowiki> |
<div id="main-wrapper" class="clearfix"><div id="main" class="clearfix"><div id="main-inner"> | <div id="main-wrapper" class="clearfix"><div id="main" class="clearfix"><div id="main-inner"> | ||
<div id="igem-content" class="column"><div class="igem-section"> | <div id="igem-content" class="column"><div class="igem-section"> | ||
<h1 class="title" id="page-title">Cellulose Architecture</h1> | <h1 class="title" id="page-title">Cellulose Architecture</h1> | ||
- | <div class="tabs" | + | <div class="tabs"></div> |
- | + | ||
- | + | ||
- | + | ||
<div class="region region-content"> | <div class="region region-content"> | ||
<div id="block-system-main" class="block block-system"> | <div id="block-system-main" class="block block-system"> | ||
Line 121: | Line 118: | ||
$('#blog .loading').replaceWith('<ul />'); | $('#blog .loading').replaceWith('<ul />'); | ||
$ul = $('#blog ul'); | $ul = $('#blog ul'); | ||
- | for (var i=0; i< | + | for (var i=0; i<4; i++) { |
var p = posts[i]; | var p = posts[i]; | ||
- | |||
var title = p['regular-title'] || p['link-text'] || null; | var title = p['regular-title'] || p['link-text'] || null; | ||
if (title) { | if (title) { | ||
Line 129: | Line 125: | ||
var dateMonth = months[date.getMonth()]; | var dateMonth = months[date.getMonth()]; | ||
var dateDay = date.getDate(); | var dateDay = date.getDate(); | ||
- | var html = | + | var html = dateMonth+' '+dateDay+' <a href="'+p['url']+'" rel="lightframe">'+title+'<br />'; |
$ul.append(html); | $ul.append(html); | ||
} | } | ||
Line 141: | Line 137: | ||
<div class="loading">Loading...</div> | <div class="loading">Loading...</div> | ||
</div> | </div> | ||
- | <!-- Bottom of the page, probably. Change host --><script src="http://aseatobacter.tumblr.com/api/read/json?callback=tumblr& | + | <p><a href="http://aseatobacter.tumblr.com" target="_new">View More Blog Posts</a></p> |
+ | <!-- Bottom of the page, probably. Change host --><script src="http://aseatobacter.tumblr.com/api/read/json?callback=tumblr&num=10" type="text/javascript"></script> </div> | ||
</div> | </div> | ||
<div id="block-block-9" class="block block-block"> | <div id="block-block-9" class="block block-block"> | ||
Line 153: | Line 150: | ||
<!--//--><![CDATA[// ><!-- | <!--//--><![CDATA[// ><!-- | ||
- | $ | + | if($('#images').length != 0) { |
- | function displayImages(data) { | + | |
- | + | setTimeout(function() {$.getJSON(flickr_url, displayImages);},1500); | |
- | + | function displayImages(data) { | |
- | + | // Start putting together the HTML string | |
- | + | var htmlString = ""; | |
- | + | ||
- | + | // Now start cycling through our array of Flickr photo details | |
- | + | var k=0; | |
- | + | $.each(data.items, function(i,item){ | |
- | + | if(k == 0) { | |
- | + | // I only want the ickle square thumbnails | |
- | + | // var sourceSquare = (item.media.m).replace("_m.jpg", "_s.jpg"); | |
- | + | var sourceSquare = item.media.m; | |
- | + | var l_sourceSquare = (item.media.m).replace("_m.jpg", "_b.jpg"); | |
- | + | ||
- | + | // Here's where we piece together the HTML | |
- | + | htmlString += '<li><a href="'+l_sourceSquare+'" rel="lightbox">'; | |
- | + | htmlString += '<img title="' + item.title + '" src="' + sourceSquare; | |
- | + | htmlString += '" alt="'; htmlString += item.title + '" />'; | |
- | + | htmlString += ''; | |
- | + | k++; | |
- | + | } | |
- | + | }); | |
- | + | ||
- | + | // Pop our HTML in the #images DIV | |
- | + | $('#images').html(htmlString); | |
+ | } | ||
- | |||
} | } | ||
Line 192: | Line 189: | ||
<div class="content"> | <div class="content"> | ||
- | < | + | <iframe width="250" height="200" src="http://www.youtube.com/embed/EBZTe9RWZLo" frameborder="0" allowfullscreen=""></iframe> </div> |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | </ | + | |
</div> | </div> | ||
<div id="block-block-6" class="block block-block"> | <div id="block-block-6" class="block block-block"> |
Latest revision as of 02:47, 4 October 2012