Team:UCLondon/Templates/Content-Slide
From 2012e.igem.org
(Difference between revisions)
Line 79: | Line 79: | ||
- | <div id=" | + | <div id="shadow2" style="display:none;" > |
<div id="close-box" style="background:url(http://db.tt/N9CUKlnO) no-repeat 0 0; height:35px; width:35px; cursor:pointer;"></div> | <div id="close-box" style="background:url(http://db.tt/N9CUKlnO) no-repeat 0 0; height:35px; width:35px; cursor:pointer;"></div> | ||
Line 149: | Line 149: | ||
var openBox = function () { | var openBox = function () { | ||
- | $('# | + | $('#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>'; | ||
- | $('# | + | $('#shadow2').toggle('slow', function() { |
$(this).children('#box-content').html(input); | $(this).children('#box-content').html(input); | ||
}); | }); | ||
Line 159: | Line 159: | ||
var closeBox = function() { | var closeBox = function() { | ||
- | $('# | + | $('#shadow2').toggle('slow', function() { |
$(this).children('#box-content').html(loading); | $(this).children('#box-content').html(loading); | ||
}); | }); | ||
Line 182: | Line 182: | ||
<style> | <style> | ||
- | # | + | #shadow2 { |
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from( rgba(255, 255, 255, 1) ), to( rgb(249, 249, 249) ) ); | background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from( rgba(255, 255, 255, 1) ), to( rgb(249, 249, 249) ) ); |
Revision as of 06:15, 19 September 2012