Changes

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

Navigation menu