crawlerApp/static/app/js/custom.js

64 lines
1.4 KiB
JavaScript
Raw Normal View History

2022-02-05 21:35:04 +00:00
// to get current year
function getYear() {
var currentDate = new Date();
var currentYear = currentDate.getFullYear();
document.querySelector("#displayYear").innerHTML = currentYear;
}
getYear();
// owl carousel script
$(".client_owl-carousel").owlCarousel({
loop: true,
margin: 20,
nav: true,
autoplay: true,
navText: ['<i class="fa fa-long-arrow-left" aria-hidden="true"></i>', '<i class="fa fa-long-arrow-right" aria-hidden="true"></i>'],
autoplayHoverPause: true,
responsive: {
0: {
items: 1
},
1000: {
items: 2
}
}
});
// end owl carousel script
// product section owl carousel
$(".product_owl-carousel").owlCarousel({
autoplay: true,
loop: true,
margin: 5,
autoHeight: true,
nav: 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
},
576: {
items: 2
},
767: {
items: 3
},
1000: {
items: 4
}
}
});
/** 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);
}