| Server IP : 213.186.33.4 / Your IP : 216.73.216.193 Web Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : awebpaca ( 35430) PHP Version : 8.5.0 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/awebpaca/visitevirtuelle/templates/floyd/js/ |
Upload File : |
jQuery(document).ready(function(){
//Adding fixed position to header
jQuery(document).scroll(function() {
if (jQuery(document).scrollTop() >= 500) {
jQuery('.navbar').addClass('navbar-fixed-top');
jQuery('html').addClass('has-fixed-nav');
} else {
jQuery('.navbar').removeClass('navbar-fixed-top');
jQuery('html').removeClass('has-fixed-nav');
}
});
//Navigation Scrolling
jQuery('a[href*=#]').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = jQuery(this.hash);
target = target.length ? target : jQuery('[name=' + this.hash.slice(1) +']');
if (target.length) {
jQuery('html,body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
});
//Close navbar on click
jQuery('.nav a').on('click', function(){
if (jQuery(window).width() < 768) {
jQuery(".navbar-toggle").click();
}
});
//Nav Selection
jQuery('#nav').onePageNav({
currentClass: 'active',
scrollOffset: 50
});
//Home Text Slider
jQuery('.home-slider').flexslider({
animation: "slide",
directionNav: false,
controlNav: false,
direction: "vertical",
slideshowSpeed: 5000,
animationSpeed: 1000,
smoothHeight: true,
useCSS: false
});
//Elements animation
jQuery('.animated').appear(function(){
var element = jQuery(this);
var animation = element.data('animation');
var animationDelay = element.data('delay');
if (animationDelay) {
setTimeout(function(){
element.addClass( animation + " visible" );
element.removeClass('hiding');
if (element.hasClass('counter')) {
element.children('.value').countTo();
}
}, animationDelay);
}else {
element.addClass( animation + " visible" );
element.removeClass('hiding');
if (element.hasClass('counter')) {
element.children('.value').countTo();
}
}
},{accY: -150});
//Portfolio filters
jQuery('#portfolio-grid').mixitup({
effects: ['fade','scale'],
easing: 'snap'
});
//Portfolio project slider
// function initProjectSlider() {
// jQuery('.project-slider').flexslider({
// prevText: "",
// nextText: "",
// useCSS: false,
// animation: "slide"
// });
// };
//Portfolio Project Loading
jQuery('.open-project').click(function(){
var projectUrl = jQuery(this).attr("href");
jQuery('#project-content').animate({opacity:0}, 400,function(){
jQuery("#project-content").load(projectUrl);
jQuery('#project-content').delay(400).animate({opacity:1}, 400);
});
//Project Page Open
jQuery('#project-extended').slideUp(600, function(){
jQuery('#project-extended').addClass('open');
jQuery('html, body').animate({ scrollTop: jQuery(".portfolio-bottom").offset().top }, 900);
}).delay(500).slideDown(600,function(){
jQuery('#project-content').fadeIn('slow',function(){
if (jQuery('.project-slider').length > 0) {
// initProjectSlider();
$('.carousel').carousel({
interval: 2000
})
}
});
});
return false;
});
//Project Page Close
jQuery('#close-project').click(function(event) {
jQuery('#project-content').animate({opacity:0}, 400,function(){
jQuery('#project-extended').delay(400).slideUp(400).removeClass('open');
jQuery('html, body').animate({ scrollTop: jQuery(".portfolio-top").offset().top -60}, 900);
});
return false;
});
//Pricing table selection
jQuery('.plan').click(function(){
jQuery('.plan').removeClass('selected');
jQuery(this).addClass('selected');
});
//Testimonials slider
jQuery('.testimonials-slider').flexslider({
animation: "slide",
directionNav: false,
slideshowSpeed: 4000,
useCSS: false
});
//Clients carousel
jQuery("#clients-carousel").owlCarousel({
items : 4,
itemsDesktop : [1000,4],
itemsDesktopSmall : [900,3],
itemsTablet: [600,2],
itemsMobile : false,
autoPlay: 4000,
pagination: false
});
trimString = jQuery('body .fa').text();
var re = new RegExp(String.fromCharCode(45), "g");
trimString = jQuery.trim(trimString.replace(re, ""));
jQuery('body .fa').html(trimString);
// Fix IE9
jQuery('.catItemIntroText iframe').each(function(){
var url = jQuery(this).attr("src");
jQuery(this).attr("src",url+"?wmode=transparent");
});
jQuery('.itemIntroText iframe').each(function(){
var url = jQuery(this).attr("src");
jQuery(this).attr("src",url+"?wmode=transparent");
});
});
if (typeof jQuery != 'undefined' && typeof MooTools != 'undefined' ) {
Element.implement({
slide: function(how, mode){
return this;
}
});
}