-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
31 lines (28 loc) · 695 Bytes
/
index.js
File metadata and controls
31 lines (28 loc) · 695 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
// on-scroll navbar animaion
window.onscroll = function () {
$("nav").toggleClass("scrolled", $(window).scrollTop() > 640);
};
$(".nav .nav-link").on("click", function () {
console.log("clicked " + $this)
// $(".nav-item").find(".active").removeClass("active");
// $(this).addClass("active");
});
// map api
function initMap() {
// The location of Calicut
var calicut = {
lat: 11.258,
lng: 75.780
};
// The map, centered at Caicut
var map = new google.maps.Map(
document.getElementById('map'), {
zoom: 18,
center: calicut
});
// The marker, positioned at Uluru
var marker = new google.maps.Marker({
position: calicut,
map: map
});
}