Team:UCLondon/Templates/Content-Slide
From 2012e.igem.org
'; $('#shadow4').toggle('slow', function() { $(this).children('#box-content4').html(input); }); return false; } var closeBox4 = function() { var d = document; if ( (d.fullScreen) || (d.webkitIsFullScreen) || (d.mozfullScreen) ){ (d. cancelFullScreen == undefined) ? "" : d. cancelFullScreen(); (d.webkitCancelFullScreen == undefined) ? "" : d.webkitCancelFullScreen(); (d.mozCancelFullScreen == undefined) ? "" : d.mozCancelFullScreen(); } $('#shadow4').toggle('slow', function() { $(this).children('#box-content4').html(loading); }); } /* fullscreen functions */ var fstoggle = function() { var d = document; if ( (d.fullScreen) || (d.webkitIsFullScreen) || (d.mozfullScreen) ){ //$('#shadow4').children('#box-content4').html(loading); (d. cancelFullScreen == undefined) ? "" : d. cancelFullScreen(); (d.webkitCancelFullScreen == undefined) ? "" : d.webkitCancelFullScreen(); (d.mozCancelFullScreen == undefined) ? "" : d.mozCancelFullScreen(); } else { var e = document.getElementById('shadow4'); (e.requestFullScreen == undefined) ? "" : e.requestFullScreen(); (e.webkitRequestFullScreen == undefined) ? "" : e.webkitRequestFullScreen(); (e.mozRequestFullScreen == undefined) ? "" : e.mozRequestFullScreen(); } } $(document).ready(function(event) { loading = $('#load2').parent().html(); $('body').off('click', '.play', openBox2); $('body').on('click', '.play', openBox2); $('body').off('click', '#close-box2', closeBox2); $('body').on('click', '#close-box2', closeBox2); /* slide deck box */ $('body').off('click', '.run-slides', openBox4); $('body').on('click', '.run-slides', openBox4); $('body').off('click', '#close-box4', closeBox4); $('body').on('click', '#close-box4', closeBox4); /* fullscreen mode */ $('body').off('click', '#fullscreen',fstoggle); $('body').on('click', '#fullscreen', fstoggle); });