-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
38 lines (28 loc) · 838 Bytes
/
main.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
const hideBar = document.querySelector('.hide-bar');
const navBar = document.querySelector('.nav-bar');
const closeBtn = document.querySelector('.close-btn');
hideBar.onclick = () => {
navBar.style.width = '300px';
}
closeBtn.onclick = () => {
navBar.style.width = '0px';
}
/* Landing page logo */
const containerLogo = [
{pic: "./img/Logo.png"},
{pic: "./img/presto logo.png"},
{pic: "./img/Logo.png"},
{pic: "./img/presto logo.png"},
{pic: "./img/Logo.png"},
{pic: "./img/presto logo.png"},
];
let containerLogoItem = document.querySelector('.logo-container');
containerLogo.map( ({pic}) => {
containerLogoItem.innerHTML += `
<div class="landingpage-logo">
<img src="${pic}" alt="">
</div>
`
console.log(pic);
})
// console.log(landingLogo);