Team:UCLondon/Templates/Content-Slide
From 2012e.igem.org
(Difference between revisions)
Line 230: | Line 230: | ||
/* slide show box */ | /* slide show box */ | ||
+ | var started = false; | ||
var openBox4 = function () { | var openBox4 = function () { | ||
$('#shadow4').center(); | $('#shadow4').center(); | ||
+ | if (! started){ | ||
var input = '<div id="impress"><div id="start" class="step" ><p>Creating Stunning Visualizations</p><p>Impress.js </p><p class="hint_text">Press <em>Spacebar</em> or Tab To Get Started</p></div><div id="slide1" class="step" data-x="-1200"><p>This Slide Moves From Left To Right</p></div></div>'; | var input = '<div id="impress"><div id="start" class="step" ><p>Creating Stunning Visualizations</p><p>Impress.js </p><p class="hint_text">Press <em>Spacebar</em> or Tab To Get Started</p></div><div id="slide1" class="step" data-x="-1200"><p>This Slide Moves From Left To Right</p></div></div>'; | ||
+ | started = true; | ||
+ | } | ||
$('#shadow4').toggle('slow', function() { | $('#shadow4').toggle('slow', function() { | ||
$(this).children('#box-content4').html(input); | $(this).children('#box-content4').html(input); | ||
impress().init(); | impress().init(); | ||
- | + | ||
}); | }); | ||
return false; | return false; |
Revision as of 03:57, 19 October 2012