Changes

Jump to navigation Jump to search
no edit summary
Line 17: Line 17:  
$('#wagon-configurator li.wagon-slot').click(function(){
 
$('#wagon-configurator li.wagon-slot').click(function(){
 
wagonConfiguratorList = $('#wagon-configurator-list li.selected')[0].classList[0];
 
wagonConfiguratorList = $('#wagon-configurator-list li.selected')[0].classList[0];
$(this).css("background-image", `url(${wagonImages[wagonConfiguratorList ]})` );
+
window['wagonConfiguratorList'] = wagonConfiguratorList;
 +
$(this).css("background-image", `url(${wagonImages[wagonConfiguratorList]})`);
 
alert("You selected " + wagonConfiguratorList);
 
alert("You selected " + wagonConfiguratorList);
 
});
 
});
 
});
 
});

Navigation menu