| Server IP : 199.79.63.27 / Your IP : 216.73.217.128 Web Server : Microsoft-IIS/10.0 System : Windows NT MD-PLESK-WEB5 10.0 build 20348 (Windows Server 2022) AMD64 User : IWPD_6698(lcitec7i) ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : D:/INETPUB/VHOSTS/lcit.edu.in/lcitps.edu.in/assets/js/ |
Upload File : |
/*============================
js index
==============================
==========================================*/
(function($) {
"use strict";
/*================================
Preloader
==================================*/
var preloader = $('#preloader');
$(window).on('load', function() {
preloader.fadeOut('slow', function() { $(this).remove(); });
});
/*================================
stickey Header
==================================*/
$(window).on('scroll', function() {
var scroll = $(window).scrollTop(),
mainHeader = $('.header-bottom');
if (scroll > 50) {
mainHeader.addClass("sticky-header");
} else {
mainHeader.removeClass("sticky-header");
}
});
/*================================
offste search
==================================*/
var offsetSearch = $('.offset-search');
var bodyOverlay = $('.body_overlay');
$('.search_btn').on('click', function() {
$(offsetSearch).addClass('show_hide');
$(bodyOverlay).addClass('show_hide');
});
bodyOverlay.on('click', function() {
$(offsetSearch).removeClass('show_hide');
$(bodyOverlay).removeClass('show_hide');
});
/*================================
Owl Carousel
==================================*/
// slider_area carousel active
function slider_area() {
$('.slider-area').owlCarousel({
margin: 0,
loop: true,
autoplay: false,
autoplayTimeout: 4000,
nav: true,
items: 1,
smartSpeed: 800,
navText: ['<i><img src="assets/images/angle-left.png" alt="icon"/></i><span>prev</span>', '<span>next</span><i><img src="assets/images/angle-right.png" alt="icon"/></i>']
});
};
slider_area();
// course_carousel carousel active
function course_carousel() {
$('.course-carousel').owlCarousel({
loop: true,
autoplay: false,
dots: false,
autoplayTimeout: 4000,
nav: true,
smartSpeed: 800,
navText: ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>'],
responsive: {
0: {
items: 1,
margin: 5
},
480: {
items: 1,
margin: 30
},
768: {
items: 2,
margin: 30
},
1024: {
items: 3,
margin: 30
}
}
});
};
course_carousel();
// commn_carousel carousel active
function commn_carousel() {
$('.commn-carousel').owlCarousel({
loop: true,
autoplay: false,
dots: true,
margin: 0,
autoplayTimeout: 4000,
nav: false,
dotsEach: true,
smartSpeed: 800,
responsive: {
0: {
items: 1,
},
480: {
items: 1,
},
768: {
items: 2,
},
1024: {
items: 3,
}
}
});
};
commn_carousel();
// teacher_carousel carousel active
function teacher_carousel() {
$('.teacher-carousel').owlCarousel({
loop: true,
autoplay: false,
dots: false,
margin: 0,
autoplayTimeout: 4000,
nav: true,
smartSpeed: 800,
navText: ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>'],
responsive: {
0: {
items: 1
},
480: {
items: 1
},
768: {
items: 2
},
1024: {
items: 3
}
}
});
};
teacher_carousel();
// blog_carousel carousel active
function blog_carousel() {
$('.blog-carousel').owlCarousel({
loop: true,
autoplay: false,
margin: 0,
dots: false,
autoplayTimeout: 4000,
nav: true,
smartSpeed: 800,
navText: ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>'],
responsive: {
0: {
items: 1
},
480: {
items: 1
},
768: {
items: 2
},
1024: {
items: 3
}
}
});
};
blog_carousel();
// tst_carousel carousel active
function tst_carousel() {
$('.tst-carousel').owlCarousel({
loop: true,
autoplay: false,
dots: true,
items: 1,
autoplayTimeout: 4000,
nav: false,
smartSpeed: 800,
mouseDrag: false
});
};
tst_carousel();
$('.expand-video').magnificPopup({
type: 'iframe',
gallery: {
enabled: true
}
});
/*================================
slicknav
==================================*/
$('ul#m_menu_active').slicknav({
prependTo: "#mobile_menu"
});
})(jQuery);
// google map activation
function initMap() {
// Styles a map in night mode.
var map = new google.maps.Map(document.getElementById('google_map'), {
center: { lat: 40.674, lng: -73.945 },
scrollwheel: false,
zoom: 12,
styles: [{
"elementType": "geometry",
"stylers": [{
"color": "#f5f5f5"
}]
},
{
"featureType": "poi",
"elementType": "labels.text",
"stylers": [{
"visibility": "off"
}]
},
{
"featureType": "poi",
"elementType": "labels.text.fill",
"stylers": [{
"color": "#757575"
}]
},
{
"featureType": "poi.business",
"stylers": [{
"visibility": "off"
}]
},
{
"featureType": "poi.park",
"elementType": "geometry",
"stylers": [{
"color": "#e5e5e5"
}]
},
{
"featureType": "transit.station",
"elementType": "geometry",
"stylers": [{
"color": "#eeeeee"
}]
}
]
});
var marker = new google.maps.Marker({
position: map.getCenter(),
map: map
});
}