Changes

Jump to navigation Jump to search
59 bytes removed ,  23:09, 2 August 2021
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];
window['wagonConfiguratorList'] = wagonConfiguratorList;
   
$(this).css("background-image", `url(${wagonImages[wagonConfiguratorList]})`);
 
$(this).css("background-image", `url(${wagonImages[wagonConfiguratorList]})`);
 
alert("You selected " + wagonConfiguratorList);
 
alert("You selected " + wagonConfiguratorList);
 
});
 
});
 
});
 
});

Navigation menu