html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>App Footer Navigation</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="script.js" defer></script>
</head>
<body>
<style>
body {
font-family: Arial, sans-serif;
text-align: left;
margin: 0;
padding: 0;
}
/* Preloader Container */
.preloader {
position: fixed;
top: 0;
Enter to Rename, Shift+Enter to Preview
css
css
1
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
document.addEventListener('DOMContentLoaded', function () {
var modeSwitch = document.querySelector('.mode-switch');
modeSwitch.addEventListener('click', function () {
document.documentElement.classList.toggle('dark');
});
});
function openModal(){
let modal= document.querySelector('#modal-window');
modal.classList.add("showModal");
}
function closeM(){
let m= document.querySelector('#modal-window');
m.classList.remove("showModal");
}
document.getElementsByClassName('.mode-switch').onclick = function() {
document.body.classList.toggle('dark');
}
const cardItems = document.querySelectorAll('.main-card');
const modalHeader = document.querySelector('.modalHeader-js');
const modalCardPrice = document.querySelector('.amount');
cardItems.forEach((cardItem) => {
cardItem.addEventListener('click', function () {
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Exécuter