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 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 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 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 79: | Line 76: | ||
var md = $(this); | var md = $(this); | ||
var allopts = $.extend(true, {}, defoptions, options); | var allopts = $.extend(true, {}, defoptions, options); | ||
- | + | ||
+ | var amp = '%'; | ||
+ | amp += '20'; | ||
+ | var youurl = "'http://gdata.youtube.com/feeds/api/users/' + allopts.user + '/uploads?alt=jsonc&v=2'"; | ||
+ | var youurl_fixed = youurl.replace('&', amp); | ||
+ | |||
+ | $.getJSON(youurl_fixed, null, function(data) { | ||
var videos = []; | var videos = []; | ||
var playlist = ''; | var playlist = ''; | ||
Line 153: | Line 156: | ||
<!--//--><![CDATA[// ><!-- | <!--//--><![CDATA[// ><!-- | ||
- | + | $.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?id=85815851@N04&tags=featured&lang=en-us&format=json&jsoncallback=?", displayImages); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
function displayImages(data) { | function displayImages(data) { | ||
// Start putting together the HTML string | // Start putting together the HTML string | ||
Line 200: | Line 198: | ||
<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%20v=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%20height=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 211: | Line 210: | ||
//--><!]]> | //--><!]]> | ||
+ | |||
</script> </div> | </script> </div> | ||
</div> | </div> |
Revision as of 18:15, 26 September 2012