From 401a26149cb923fd17437ed42aebd9ec75f85e2d Mon Sep 17 00:00:00 2001 From: Lorenzo De macedo Date: Fri, 16 Feb 2024 15:56:02 +0100 Subject: [PATCH 1/9] ajout de extra.js --- js/extra.js | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 js/extra.js diff --git a/js/extra.js b/js/extra.js new file mode 100644 index 0000000..811daa5 --- /dev/null +++ b/js/extra.js @@ -0,0 +1,4 @@ +function Extra(name, price) { + this.name = name; + this.price = price; +} -- GitLab From 5c76fb6b02e5b19eecd818f4e4771e34214a97da Mon Sep 17 00:00:00 2001 From: Lorenzo De macedo Date: Fri, 16 Feb 2024 15:58:11 +0100 Subject: [PATCH 2/9] ajout de car.js --- js/car.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 js/car.js diff --git a/js/car.js b/js/car.js new file mode 100644 index 0000000..178e65a --- /dev/null +++ b/js/car.js @@ -0,0 +1,11 @@ +function Car(image, make, model, description, price, category, year, mileage, extras) { + this.image = image; + this.make = make; + this.model = model; + this.description = description; + this.price = price; + this.category = category; + this.year = year; + this.mileage = mileage; + this.extras = extras; +} -- GitLab From 5d9a4de3dac5f69de67f255ac8cdec1cd9484db1 Mon Sep 17 00:00:00 2001 From: Lorenzo De macedo Date: Fri, 16 Feb 2024 16:01:21 +0100 Subject: [PATCH 3/9] methode generateCar --- index.html | 5 ++++- js/index.js | 12 ++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index be6da78..6142325 100644 --- a/index.html +++ b/index.html @@ -32,12 +32,15 @@ - + +