-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathcontact-script.js
More file actions
32 lines (25 loc) · 866 Bytes
/
Copy pathcontact-script.js
File metadata and controls
32 lines (25 loc) · 866 Bytes
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
//Navbar
/* **************** Navbar **************** */
const Button = document.querySelector('#menu');
const navLinks = document.querySelector('.hide-menu');
function toggleBtn(){
const navBar = document.querySelector('.fa-bars');
if(navLinks.classList.contains('hide-menu')){
navLinks.classList.remove('hide-menu');
// navBar.classList.add('d-none');
} else{
navLinks.classList.add('hide-menu');
// navBar.classList.remove('d-none');
}
}
Button.addEventListener('click', toggleBtn);
/* ****************** End of Navbar **************** */
// google map
function initMap() {
var dumbo = {lat: 40.700802, lng:73.987602};
var mapOptions = {
center: dumbo,
zoom: 10
};
var googlemap = new google.maps.Map(document.getElementById("map"), mapOptions);
}