Team:UCLondon/Templates/Content-Slide
From 2012e.igem.org
(Difference between revisions)
Line 242: | Line 242: | ||
$(this).children('#box-content4').html(loading); | $(this).children('#box-content4').html(loading); | ||
}); | }); | ||
+ | } | ||
+ | |||
+ | var fstoggle = function() { | ||
+ | |||
+ | if (document.fullScreen){ | ||
+ | document.cancelFullScreen(); | ||
+ | } | ||
+ | else { | ||
+ | $('#shadow4').requestFullScreen(); | ||
+ | } | ||
} | } | ||
Line 255: | Line 265: | ||
- | + | /* slide deck box */ | |
- | + | ||
$('body').off('click', '.run-slides', openBox4); | $('body').off('click', '.run-slides', openBox4); | ||
$('body').on('click', '.run-slides', openBox4); | $('body').on('click', '.run-slides', openBox4); | ||
Line 262: | Line 271: | ||
$('body').off('click', '#close-box4', closeBox4); | $('body').off('click', '#close-box4', closeBox4); | ||
$('body').on('click', '#close-box4', closeBox4); | $('body').on('click', '#close-box4', closeBox4); | ||
+ | |||
+ | /* fullscreen mode */ | ||
+ | $('body').off('click', '#fullscreen',fstoggle); | ||
+ | $('body').on('click', '#fullscreen', fstoggle); | ||
+ | |||
}); | }); |
Revision as of 23:01, 18 October 2012