anduril.js
// displayed on the page to make sure that we're updating the right films
displayed on the page to make sure that we're updating the right films
displayed on the page to make sure that we ' re updating the right films
function resetFilmNumbers(){
	var figuratives = tagger("figure");
	for(var i = 0; i < figuratives.length; i++){
		figuratives[i].id = "film" + i.toString();
		figuratives[i].childNodes[0].id = "poster" + i.toString();
	}
}
function resetFilmNumbers ( ) { var figuratives = tagger ( "figure" ) ; for ( var i = 0 ; i < figuratives . length ; i ++ ) { figuratives [ i ] . id = "film" + i . toString ( ) ; figuratives [ i ] . childNodes [ 0 ] . id = "poster" + i . toString ( ) ; } }
displayed on the page to make sure that we're updating the right films
displayed on the page to make sure that we ' re updating the right films
//get all 'Figure' elements using their tag lookup //loop through the returned array-like object // (alas, no forEach can be used!) //for each figure, update the ID and the poster child