Commit 1d78f30e authored by ALGLAVE Ivan's avatar ALGLAVE Ivan
Browse files

added MyFavouriteRecipes.php and the corresponding navigation bar increments

parent 5f595235
......@@ -10,10 +10,11 @@
<div id="content">
<div class="topnav">
<button id="tabBtnI" class="active" value="Hierarchy.php" onclick="tabButtonClicked('tabBtnI')">Hiérarchie</button>
<button id="tabBtnA" value="AdvancedSearch.php" onclick="tabButtonClicked('tabBtnA')">Avancé</button>
<button id="tabBtnC" value="Cocktails.php" onclick="tabButtonClicked('tabBtnC')">Cocktails</button>
<button id="tabBtnMA" class="right" value="MyAccount.php" onclick="tabButtonClicked('tabBtnMA')">Mon Compte</button>
<button id="tabBtnI" class="active" value="Hierarchy.php" onclick="tabButtonClicked(this)">Hiérarchie</button>
<button id="tabBtnA" value="AdvancedSearch.php" onclick="tabButtonClicked(this)">Avancé</button>
<button id="tabBtnC" value="Cocktails.php" onclick="tabButtonClicked(this)">Cocktails</button>
<button id="tabBtnMA" class="right" value="MyAccount.php" onclick="tabButtonClicked(this)">Mon Compte</button>
<button id="tabBtnF" class="right" value="MyFavouriteRecipes.php" onclick="tabButtonClicked(this)">Favoris</button>
</div>
<iframe id="tabFrame" frameborder="0" src="Hierarchy.php">
......@@ -85,9 +86,8 @@
tabFrame.setAttribute('src', viewSrc);
}
function tabButtonClicked(tabButtonId)
function tabButtonClicked(b)
{
let b = document.getElementById(tabButtonId);
if(b.id != activeTabButton.id)
{
b.classList.add('active');
......
<!DOCTYPE html>
<html>
<head>
<title>Drinkpedia</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="css/MyAccount.css">
</head>
<body>
<h1>My Favourite Recipes</h1>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment