| Server IP : 5.144.175.180 / Your IP : 216.73.216.131 Web Server : Apache/2.4.63 (Unix) OpenSSL/1.1.1 System : Linux vpsgpz1.itsimplycom.it 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 User : edilchimica ( ) PHP Version : 7.4.33 Disable Function : getmyuid,passthru,leak,listen,diskfreespace,tmpfile,link,shell_exec,dl,exec,system,highlight_file,source,show_source,fpassthru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_open,proc_close,proc_nice,proc_terminate,escapeshellcmd,ini_alter,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error,socket_close,socket_connect,symlink,posix_geteuid,ini_alter,socket_listen,socket_create_listen,socket_read,socket_create_pair,stream_socket_server MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/edilchimica/webapps/edilchimica/wp-content/themes/consultstreet/assets/js/ |
Upload File : |
// OWL SLIDER CUSTOM JS
jQuery(document).ready(function() {
/* ---------------------------------------------- /*
* Header Sticky
/* ---------------------------------------------- */
jQuery(window).scroll(function(){
if (jQuery(window).scrollTop() >= 100) {
jQuery('.header-sticky').addClass('header-fixed-top');
jQuery('.header-sticky').removeClass('not-sticky');
}
else {
jQuery('.header-sticky').removeClass('header-fixed-top');
jQuery('.header-sticky').addClass('not-sticky');
}
});
/* ---------------------------------------------- /*
* Scroll top
/* ---------------------------------------------- */
jQuery(window).scroll(function() {
if (jQuery(this).scrollTop() > 100) {
jQuery('.page-scroll-up').fadeIn();
} else {
jQuery('.page-scroll-up').fadeOut();
}
});
jQuery('a[href="#totop"]').click(function() {
jQuery('html, body').animate({ scrollTop: 0 }, 'slow');
return false;
});
// This JS added for the Toggle button to work with the focus element.
if (window.innerWidth < 992) {
document.addEventListener('keydown', function(e) {
let isTabPressed = e.key === 'Tab' || e.keyCode === 9;
if (!isTabPressed) {
return;
}
const focusableElements =
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
const modal = document.querySelector('.navbar.navbar-expand-lg'); // select the modal by it's id
const firstFocusableElement = modal.querySelectorAll(focusableElements)[1]; // get first element to be focused inside modal
const focusableContent = modal.querySelectorAll(focusableElements);
const lastFocusableElement = focusableContent[focusableContent.length - 1]; // get last element to be focused inside modal
if (e.shiftKey) { // if shift key pressed for shift + tab combination
if (document.activeElement === firstFocusableElement) {
lastFocusableElement.focus(); // add focus for the last focusable element
e.preventDefault();
}
} else { // if tab key is pressed
if (document.activeElement === lastFocusableElement) { // if focused has reached to last focusable element then focus first focusable element after pressing tab
firstFocusableElement.focus(); // add focus for the first focusable element
e.preventDefault();
}
}
});
}
// Accodian Js
function toggleIcon(e) {
jQuery(e.target)
.prev('.panel-heading')
.find(".more-less")
.toggleClass('fa-plus-square-o fa-minus-square-o');
}
jQuery('.panel-group').on('hidden.bs.collapse', toggleIcon);
jQuery('.panel-group').on('shown.bs.collapse', toggleIcon);
jQuery("#theme-main-slider").owlCarousel({
navigation : true, // Show next and prev buttons
slideSpeed : 300,
autoplay : 7000,
smartSpeed: 1000,
autoplayTimeout: 2500,
autoplayHoverPause:true,
singleItem:true,
mouseDrag: true,
loop:true, // loop is true up to 1199px screen.
nav:true, // is true across all sizes
margin:0, // margin 10px till 960 breakpoint
autoHeight: true,
responsiveClass:true, // Optional helper class. Add 'owl-reponsive-' + 'breakpoint' class to main element.
items: 1,
dots: false,
navText: ["<i class='fa fa-long-arrow-left'></i>","<i class='fa fa-long-arrow-right'></i>"]
});
});