Difference between revisions of "Team:Groningen/Jamboree"

Line 66: Line 66:
 
<script>
 
<script>
 
var previds = [];
 
var previds = [];
$('.previd').each(function(idx){ previds[idx] = false }).on('ended', function(){
+
$('.previd').each(function(idx){  
previds[this.id] = true;
+
previds[idx] = false;
if(previds.every(function(e){ return e; })){
+
this.id = 'p' + idx;
$('#outtakes').show();
+
this.addEventListener('ended', function(){
}
+
previds[+this.id.substr(1)] = true;
 +
 +
if(previds.every(function(e){ return e; })){
 +
$('#outtakes').show();
 +
}
 +
});
 
});
 
});
 
</script>
 
</script>
 
</html>
 
</html>
 
{{Groningen/footer}}
 
{{Groningen/footer}}

Revision as of 00:00, 2 December 2016