Team:UCLondon/Templates/Content-Slide
From 2012e.igem.org
(Difference between revisions)
Line 36: | Line 36: | ||
<tr> | <tr> | ||
<td><br/><br/><span class="play blue-but">Pitch</span></td> | <td><br/><br/><span class="play blue-but">Pitch</span></td> | ||
- | <td><br/><br/><span class=" | + | <td><br/><br/><span class="playTuts red-but">Tutorials</span></td> |
<td><br/><br/><span class="run-slides green-but">Slideshow</span></td> | <td><br/><br/><span class="run-slides green-but">Slideshow</span></td> | ||
</tr> | </tr> | ||
Line 227: | Line 227: | ||
} | } | ||
+ | |||
+ | /* TUTS */ | ||
+ | var openBox3 = function () { | ||
+ | $('#shadow2').center(); | ||
+ | var input = '<iframe width="560" height="315" src="src="http://www.youtube.com/embed/4xG939EeKns?list=PLtGCURRfxampHgpkl-tUkzSeZhItvY3_u&hl=en_US"" frameborder="0" allowfullscreen></iframe>'; | ||
+ | |||
+ | $('#shadow2').toggle('slow', function() { | ||
+ | $(this).children('#box-content2').html(input); | ||
+ | }); | ||
+ | return false; | ||
+ | } | ||
Line 306: | Line 317: | ||
$('body').off('click', '#close-box2', closeBox2); | $('body').off('click', '#close-box2', closeBox2); | ||
$('body').on('click', '#close-box2', closeBox2); | $('body').on('click', '#close-box2', closeBox2); | ||
+ | |||
+ | $('body').off('click', '.playTuts', openBox3); | ||
+ | $('body').on('click', '.playTuts', openBox3); | ||
Revision as of 16:22, 19 October 2012