-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
39 lines (33 loc) · 1.08 KB
/
index.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
29
30
31
32
33
34
35
36
37
38
function titlePage() {
const h1 = document.querySelector("h1");
h1.innerText = "Amazon fake";
}
function backgroundPage() {
const bodyPage = document.querySelector("body");
document.body.style.backgroundColor = "red";
}
function footerAddress() {
const footer = document.querySelector("footer");
footer.innerText = "Champ de Mars, 5 Av. Anatole France, 75007 Paris, France";
}
function AddLinks() {
const links = document.querySelectorAll("a");
for (let i = 0; i < links.length; i++) {
links[i].classList.add("linksClasses");
}
}
function imageTablejs() {
const imagetable = document.querySelectorAll("img")
for (let i = 0; i < imagetable.length; i++) {
imagetable[i].style.visibility = "hidden";
}
}
let red = Math.floor(Math.random() * 256);
let green = Math.floor(Math.random() * 256);
let blue = Math.floor(Math.random() * 256);
function colorPrice() {
const pricecolor = document.querySelectorAll("span")
for (let i = 0; i < pricecolor.length; i++) {
pricecolor[i].style.color = `rgb(${red}, ${green}, ${blue})`
}
}