File size: 1,538 Bytes
19968fa |
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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
// navigation menu js
function openNav() {
$("#myNav").addClass("menu_width");
$(".menu_btn-style").fadeIn();
}
function closeNav() {
$("#myNav").removeClass("menu_width");
$(".menu_btn-style").fadeOut();
}
// get current year
function displayYear() {
var d = new Date();
var currentYear = d.getFullYear();
document.querySelector("#displayYear").innerHTML = currentYear;
}
displayYear();
//client section owl carousel
$(".owl-carousel").owlCarousel({
loop: true,
margin: 10,
nav: true,
dots: false,
navText: [
'<i class="fa fa-long-arrow-left" aria-hidden="true"></i>',
'<i class="fa fa-long-arrow-right" aria-hidden="true"></i>'
],
autoplay: true,
autoplayHoverPause: true,
responsive: {
0: {
items: 1
},
768: {
items: 2
},
1000: {
items: 2
}
}
});
// slider carousel control
$('.slider_btn_prev').on('click', function (e) {
e.preventDefault()
$('.slider_text_carousel').carousel('prev')
$('.slider_image_carousel').carousel('prev')
})
$('.slider_btn_next').on('click', function (e) {
e.preventDefault()
$('.slider_text_carousel').carousel('next')
$('.slider_image_carousel').carousel('next')
})
/** 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);
} |