Skip to content

Commit

Permalink
j'esseye de comprendre le bordel que vous assez fait
Browse files Browse the repository at this point in the history
  • Loading branch information
salut-17 committed Jan 7, 2025
1 parent 5100875 commit ceaf25e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
3 changes: 3 additions & 0 deletions html/recipes.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
<link rel="stylesheet" href="../css/recipes.css">
<link rel="stylesheet" href="../css/all.css">
<title>Recipes</title>
<script src="/js/index.js"></script>
</head>
<body>
<button class="button add-button" onclick="openModal()">+</button>

<a href="menu.html"><i class="fa fa-arrow-left" style="color: black"></i></a>

<div class="recettes">
Expand Down
18 changes: 0 additions & 18 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,7 @@ <h3>Ajouter un article</h3>
<div class="category-content" id="category-content">
</div>
</div>
<script>
function showCategory(category) {
const categoryContent = document.getElementById('category-content');
let content = '';
switch (category) {
case 'Boisson':
content = '<ul><li>coca cola - 0,80€</li><li>chocolat chaud - 0,80€</li></ul>';
break;
case 'Nourriture':
content = '<ul><li>twix - 0,80€</li><li>pain au nutela - 0,40€</li></ul>';
break;
case 'Menu':
content = '<ul><li>Menu 1 - 1,5€</li><li>Menu 2 - 1,5€</li></ul>';
break;

}
categoryContent.innerHTML = content;
}
</script>
</div>
<div class="container">
<span class="left-panel">
Expand Down

0 comments on commit ceaf25e

Please sign in to comment.