Team:NYU Gallatin/
From 2012.igem.org
(Difference between revisions)
m |
m |
||
Line 1: | Line 1: | ||
{{:Team:NYU_Gallatin/Templates/Styles}} | {{:Team:NYU_Gallatin/Templates/Styles}} | ||
<html><body> | <html><body> | ||
- | <div class="html front | + | <div class="html front 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 22: | Line 22: | ||
<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> | + | <div class="tabs"><h2 class="element-invisible">Primary tabs</h2><ul class="tabs primary"><li class="active"><a href="/Team:NYU_Gallatin/node/1" class="active">View<span class="element-invisible">(active tab)</span></a></li> |
+ | <li><a href="/Team:NYU_Gallatin/node/1/edit">Edit</a></li> | ||
+ | <li><a href="/Team:NYU_Gallatin/node/1/devel">Devel</a></li> | ||
+ | </ul></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 76: | Line 79: | ||
var md = $(this); | var md = $(this); | ||
var allopts = $.extend(true, {}, defoptions, options); | var allopts = $.extend(true, {}, defoptions, options); | ||
- | $.getJSON('http://gdata.youtube.com/feeds/api/users/' + allopts.user + '/uploads?alt=jsonc& | + | $.getJSON('http://gdata.youtube.com/feeds/api/users/' + allopts.user + '/uploads?alt=jsonc&v=2', null, function(data) { |
var videos = []; | var videos = []; | ||
var playlist = ''; | var playlist = ''; | ||
Line 150: | Line 153: | ||
<!--//--><![CDATA[// ><!-- | <!--//--><![CDATA[// ><!-- | ||
- | + | var amp = '%'; | |
+ | amp += '20'; | ||
+ | var flickurl = "http://api.flickr.com/services/feeds/photos_public.gne?id=85815851@N04&tags=featured&lang=en-us&format=json&jsoncallback=?"; | ||
+ | var flickurl_fixed = flickurl.replace('&', amp); | ||
+ | |||
+ | $.getJSON(flickurl_fixed, displayImages); | ||
function displayImages(data) { | function displayImages(data) { | ||
// Start putting together the HTML string | // Start putting together the HTML string | ||
Line 192: | Line 200: | ||
<p><a href="/Notebook/Videos" class="more-link">More Videos</a></p> | <p><a href="/Notebook/Videos" class="more-link">More Videos</a></p> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | |||
<!--//--><![CDATA[// ><!-- | <!--//--><![CDATA[// ><!-- | ||
- | var featured_url = "http://gdata.youtube.com/feeds/api/playlists/8340F2FAB32CAB64?alt=jsonc | + | var featured_url = "http://gdata.youtube.com/feeds/api/playlists/8340F2FAB32CAB64?alt=jsonc&v=2"; |
$.get(featured_url, function(data) { | $.get(featured_url, function(data) { | ||
- | var src = 'http://www.youtube.com/embed/' + data.data.items[0].video.id + '?width=250 | + | var src = 'http://www.youtube.com/embed/' + data.data.items[0].video.id + '?width=250&height=180'; |
ifr = $('<iframe scrolling="no" frameborder="no">'); | ifr = $('<iframe scrolling="no" frameborder="no">'); | ||
ifr.attr({'src': src, width: 250, height: 180}); | ifr.attr({'src': src, width: 250, height: 180}); | ||
Line 204: | Line 211: | ||
//--><!]]> | //--><!]]> | ||
- | |||
</script> </div> | </script> </div> | ||
</div> | </div> |
Revision as of 18:14, 26 September 2012