From 3d95aa9fc2817e5ed235663e7efd265512cb7bee Mon Sep 17 00:00:00 2001 From: Ziedelth Date: Tue, 22 Mar 2022 17:27:11 +0100 Subject: [PATCH] Prepare --- src/main/webapp/index.jsp | 12 +----------- src/main/webapp/js/main.js | 24 ++++++++++++++++++++---- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index 9d4aea4..6ae2bc8 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -15,18 +15,8 @@ FilmFlix logo -
-
-
-
Lorem ipsum dolor sit amet, consectetur adipisicing elit. At debitis expedita quaerat? Ad delectus dolorem dolorum excepturi impedit quae recusandae! Alias at aut corporis eius, hic ipsum recusandae sequi velit?
-

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Atque dicta necessitatibus sequi. Accusantium architecto corporis, deleniti dolorem eligendi et excepturi fugit id in iste, magni officia quos ut vel velit? Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laborum, numquam quibusdam? Adipisci corporis dicta eos, esse eveniet hic id iusto maxime minima, natus neque nihil, porro quas soluta unde voluptate. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium architecto commodi dignissimos dolore ducimus eum fuga hic ipsa laborum minima mollitia, nulla officia quasi recusandae repellendus reprehenderit, sed similique, temporibus. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Asperiores aut autem beatae cupiditate hic magnam maxime natus neque odit perferendis porro quaerat quidem repellendus sequi sunt temporibus, ut velit voluptatum!

+
-
- Il y a 20 minutes - 1h20min -
-
-
diff --git a/src/main/webapp/js/main.js b/src/main/webapp/js/main.js index c3667bf..36f4b98 100644 --- a/src/main/webapp/js/main.js +++ b/src/main/webapp/js/main.js @@ -1,7 +1,23 @@ $(document).ready(function () { console.log("OK"); - $.get("https://ziedelth.fr/api/v1/country/fr/page/1/limit/9/episodes", function (data) { - console.table(data); - }); -}); \ No newline at end of file + $("#films").append(generateFilmCard("lorem", "lorem")); + + // $.get("https://ziedelth.fr/api/v1/country/fr/page/1/limit/9/episodes", function (data) { + // console.table(data); + // }); +}); + +function generateFilmCard(title, description) { + return `
+
+
${title}
+

${description}

+ +
+ Il y a 20 minutes + 1h20min +
+
+
`; +} \ No newline at end of file