diff --git a/.parcel-cache/lock.mdb b/.parcel-cache/lock.mdb
index 7c4279a..3f69fc9 100644
Binary files a/.parcel-cache/lock.mdb and b/.parcel-cache/lock.mdb differ
diff --git a/package.json b/package.json
index a11e926..28b0061 100644
--- a/package.json
+++ b/package.json
@@ -482,7 +482,7 @@
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
- "start": "parcel planets.html"
+ "start": "parcel index.html"
},
"repository": {
"type": "git",
diff --git a/planets.html b/planets.html
index ebc7226..361cc20 100644
--- a/planets.html
+++ b/planets.html
@@ -20,6 +20,10 @@
+
+
diff --git a/scripts/planets.js b/scripts/planets.js
index 8aefb1d..782d109 100644
--- a/scripts/planets.js
+++ b/scripts/planets.js
@@ -1,7 +1,28 @@
import { api_call } from "./util";
+const planetes = document.getElementById("resultats");
+
console.log('planet.js loaded');
api_call("planets", console.log);
+function remplissage(prout){
+ console.log(prout.results[0]);
+
+ api_call("films/1", (response) => {
+ console.log(response);
+ });
+
+ planetes.innerHTML =
+ `
+
+
+
Prout 1
+
Prout 2
+
Prout 3
+
+`;
+}
+
+api_call("planets", remplissage);
\ No newline at end of file