Skip to content

Commit 7a6632a

Browse files
committed
ajout footer + navbar
1 parent 4de3606 commit 7a6632a

File tree

5 files changed

+32
-7
lines changed

5 files changed

+32
-7
lines changed

404.html

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
6+
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
77
<script src="js/JQuery.js"></script>
88
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
99
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
10+
<title>Erreur 404</title>
11+
<meta charset="UTF-8">
1012
</head>
1113
<body>
12-
14+
<h1> Erreur 404</h1>
15+
<h2>Ce site est work in progress</h2>
1316
</body>
1417
</html>

footer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<div>
2-
footer
2+
©️ Xgui4 Studio
33
</div>

header.html

+18-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,18 @@
1-
<div> header </div>
1+
<div>
2+
<nav class="navbar navbar-expand-lg bg-body-tertiary">
3+
<div class="container-fluid">
4+
<a class="navbar-brand" href="#">Navbar</a>
5+
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
6+
<span class="navbar-toggler-icon"></span>
7+
</button>
8+
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
9+
<div class="navbar-nav">
10+
<a class="nav-link active" aria-current="page" href="#">Home</a>
11+
<a class="nav-link" href="#">Features</a>
12+
<a class="nav-link" href="#">Pricing</a>
13+
<a class="nav-link disabled" aria-disabled="true">Disabled</a>
14+
</div>
15+
</div>
16+
</div>
17+
</nav>
18+
</div>

index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
6+
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
77
<script src="js/JQuery.js"></script>
88
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
99
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
1010
<title>Home</title>
1111
</head>
1212
<body>
13-
<div class="header"></div>
13+
<div id="header"></div>
1414
<main>
1515
<p><h1 align="center">Bonjour, je suis Xgui4</h1> <a href=" https://notbyai.fyi"> <img src="https://notbyai.fyi/img/written-by-human-not-by-ai-white.svg" alt="not by ai"> </a></p>
1616
<h3 align="center">Je suis un futur programmeur</h3>
@@ -40,6 +40,6 @@ <h3 align="center">Je suis un futur programmeur</h3>
4040

4141
<p><img align="center" src="https://github-readme-streak-stats.herokuapp.com/?user=xgui4&" alt="xgui4" /></p>
4242
</main>
43-
<div class="footer"></div>
43+
<div id="footer"></div>
4444
</body>
4545
</html>

js/JQuery.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
function add_jqmigrate_script() {
2+
wp_register_script('jquery', 'https://code.jquery.com/jquery-3.7.2.min.js', false, true);
3+
wp_enqueue_script('jquery');
4+
}
5+
16
$(function(){
27
$("#header").load("header.html");
38
$("#footer").load("footer.html");

0 commit comments

Comments
 (0)