| Linux webm010.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 Path : /home/cuisinesj/www/new/wp-content/themes/wp-intouch/js/ |
| Current File : /home/cuisinesj/www/new/wp-content/themes/wp-intouch/js/custom.js |
jQuery.noConflict()(function($){
"use strict";
$(document).ready(function() {
$('p:empty').remove();
//$('.sf-menu').css({'display':'block'});
// Pretty Photo
$('a[data-rel]').each(function() {
$(this).attr('rel', $(this).data('rel'));
});
$("a[rel^='prettyPhoto']").prettyPhoto({
animationSpeed: 'normal', /* fast/slow/normal */
opacity: 0.80, /* Value between 0 and 1 */
showTitle: true, /* true/false */
theme:'light_square',
deeplinking: false
});
$('.widget_recent_entries li, .widget_recent_comments li, .widget_nav_menu li, .ct-monthly-archives li, .ct-subject-archives li').addClass('ct-google-font');
$('.widget_categories li, .widget_archive li, .comment-meta a, .fn .url, .logged-in-as').addClass('ct-google-font');
$('.entry-sitemap .category-name li, .entry-sitemap .pages-name li ').addClass('ct-google-font');
$('.comment-navigation .nav-previous a, .comment-navigation .nav-next a, .comment-reply-link, .author-link, .comment-notes').addClass('ct-google-font');
$('.form-submit input[type="submit"]').addClass('btn btn-default');
$('a.add_to_cart_button').click(function(e) {
var link = this;
$(link).parents('.product').find('.overlay-image').addClass('overlay-product-added');
setTimeout(function(){
$(link).parents('.product').find('.product-images img').animate({opacity: 0.3});
$(link).parents('.product').find('.product-added').fadeIn();
}, 100);
});
// Load Scroll To Top
$(window).scroll(function(){
if ($(this).scrollTop() > 100) {
$('.ct-totop').fadeIn();
} else {
$('.ct-totop').fadeOut();
}
});
$('.ct-totop').click(function(){
$("html, body").animate({ scrollTop: 0 }, 600);
return false;
});
});
});
jQuery.noConflict()(function($){
"use strict";
$(document).ready(function() {
$("<select />").appendTo(".navigation");
$("<option />",{
"selected":"selected",
"value":"",
"text": ( typeof ct_localization != 'undefined' || ct_localization != null ) ? ct_localization.go_to : "MENU"
}).appendTo(".navigation select");
$(".navigation li a").each(function() {
var el = $(this);
$("<option />",{
"value":el.attr("href"),
"text":el.text()
}).appendTo(".navigation select");
});
$(".navigation select").change(function() {
window.location = $(this).find("option:selected").val();
});
});
});
/***************************************************
SuperFish Menu
***************************************************/
jQuery.noConflict()(function(){
"use strict";
jQuery('ul.sf-menu').superfish({
delay:400,
autoArrows:true,
dropShadows:false,
animation:{opacity:'show'},
animationOut: {opacity:'hide'}
});
});
/*-------------------------------------------------*/
/* CUSTOM BACKGROUND
/*-------------------------------------------------*/
jQuery(window).load(function() {
"use strict";
var theWindow = jQuery(window),
$bg = jQuery("#bg-stretch"),
aspectRatio = $bg.width() / $bg.height();
function resizeBg() {
if ( (theWindow.width() / theWindow.height()) < aspectRatio ) {
$bg
.removeClass()
.addClass('bg-height');
} else {
$bg
.removeClass()
.addClass('bg-width');
}
var pW = (theWindow.width() - $bg.width())/2;
$bg.css("left", pW);
var pH = (theWindow.height() - $bg.height())/2;
$bg.css("top", pH);
}
theWindow .resize(function() {
resizeBg();
}).trigger("resize");
});