Team:UCLondon/Templates/Content-Slide
From 2012e.igem.org
(Difference between revisions)
Line 148: | Line 148: | ||
- | var | + | var openBox2 = function () { |
$('#shadow2').center(); | $('#shadow2').center(); | ||
var input = '<video id="CTPmediaElement0" class="CTPmediaElement" controls="" preload="auto" autoplay="" style="width: 98%px !important;" src="http://o-o---preferred---google-man2---v11---lscache7.c.youtube.com/videoplayback?upn=FMukt0sLvoA&sparams=cp%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&fexp=916404%2C908476%2C907519%2C920917%2C922401%2C920704%2C912806%2C913419%2C913558%2C913556%2C912706&ms=au&itag=18&ipbits=8&signature=6F38A9D14D9ABE7EA6C9D902473388813AADDB4E.35C67DF589B48BAC9DBF1EED71FE0FC391082B6A&mv=m&sver=3&mt=1348035011&ratebypass=yes&source=youtube&expire=1348057964&key=yt1&ip=82.27.228.209&cp=U0hTTVBQVV9LTkNOM19ISllKOmp1OGxQejVXcUNN&id=df21d1b2218dd6b6&newshard=yes&title=Elevator%20pitch%20draft.avi" poster="https://i.ytimg.com/vi/3yHRsiGN1rY/hqdefault.jpg"></video>'; | var input = '<video id="CTPmediaElement0" class="CTPmediaElement" controls="" preload="auto" autoplay="" style="width: 98%px !important;" src="http://o-o---preferred---google-man2---v11---lscache7.c.youtube.com/videoplayback?upn=FMukt0sLvoA&sparams=cp%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&fexp=916404%2C908476%2C907519%2C920917%2C922401%2C920704%2C912806%2C913419%2C913558%2C913556%2C912706&ms=au&itag=18&ipbits=8&signature=6F38A9D14D9ABE7EA6C9D902473388813AADDB4E.35C67DF589B48BAC9DBF1EED71FE0FC391082B6A&mv=m&sver=3&mt=1348035011&ratebypass=yes&source=youtube&expire=1348057964&key=yt1&ip=82.27.228.209&cp=U0hTTVBQVV9LTkNOM19ISllKOmp1OGxQejVXcUNN&id=df21d1b2218dd6b6&newshard=yes&title=Elevator%20pitch%20draft.avi" poster="https://i.ytimg.com/vi/3yHRsiGN1rY/hqdefault.jpg"></video>'; | ||
Line 158: | Line 158: | ||
} | } | ||
- | var | + | var closeBox2 = function() { |
$('#shadow2').toggle('slow', function() { | $('#shadow2').toggle('slow', function() { | ||
$(this).children('#box-content2').html(loading); | $(this).children('#box-content2').html(loading); | ||
Line 168: | Line 168: | ||
loading = $('#load2').parent().html(); | loading = $('#load2').parent().html(); | ||
- | $('body').off('click', '.play', | + | $('body').off('click', '.play', openBox2); |
- | $('body').on('click', '.play', | + | $('body').on('click', '.play', openBox2); |
- | $('body').off('click', '#close-box2', | + | $('body').off('click', '#close-box2', closeBox2); |
- | $('body').on('click', '#close-box2', | + | $('body').on('click', '#close-box2', closeBox2); |
}); | }); |
Revision as of 06:20, 19 September 2012