Team:NYU Gallatin
From 2012.igem.org
(Difference between revisions)
(2 intermediate revisions not shown) | |||
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> | + | <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"> | ||
Line 118: | 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 126: | 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 138: | 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 150: | 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 189: | 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"> | ||
Line 217: | Line 203: | ||
</div></div></div> <!-- /#main-inner, /#main, /#main-wrapper --> | </div></div></div> <!-- /#main-inner, /#main, /#main-wrapper --> | ||
- | </html> | + | </nowiki></html> |
{{:Team:NYU_Gallatin/Templates/Footer_Content}} | {{:Team:NYU_Gallatin/Templates/Footer_Content}} | ||
<html> | <html> |
Latest revision as of 02:50, 4 October 2012