-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom.js
48 lines (40 loc) · 1014 Bytes
/
custom.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
39
40
41
42
43
44
45
46
47
48
// to get current year
function getYear() {
var currentDate = new Date();
var currentYear = currentDate.getFullYear();
document.querySelector("#displayYear").innerHTML = currentYear;
}
getYear();
// client section owl carousel
$(".client_owl-carousel").owlCarousel({
loop: true,
margin: 20,
dots: false,
nav: true,
navText: [],
autoplay: true,
autoplayHoverPause: true,
navText: [
'<i class="fa fa-angle-left" aria-hidden="true"></i>',
'<i class="fa fa-angle-right" aria-hidden="true"></i>'
],
responsive: {
0: {
items: 1
},
600: {
items: 2
},
1000: {
items: 2
}
}
});
/** google_map js **/
function myMap() {
var mapProp = {
center: new google.maps.LatLng(40.712775, -74.005973),
zoom: 18,
};
var map = new google.maps.Map(document.getElementById("googleMap"), mapProp);
}