Hallo, benötige eure Hilfe, weil mein IPad immer abstürzt. Danke
lieben lernen
lieben lernen
Code:
jQuery(document).ready(function () {
// Menu Top Fixed
var top = jQuery('.header-wrapper').offset().top - parseFloat(jQuery('.header-wrapper').css('marginTop').replace(/auto/, 0));
jQuery(window).scroll(function (event) {
// what the y position of the scroll is
var y = jQuery(this).scrollTop();
// whether that's below the form
if (y >= top) {
// if so, ad the fixed class
jQuery('.header-wrapper').addClass('fixed-header');
} else {
// otherwise remove it
jQuery('.header-wrapper').removeClass('fixed-header');
}
});
// ReadMore Btn Animate
$('.read-more').hover(function() {
$(this).addClass('transition');
}, function() {
$(this).removeClass('transition');
});
});
$(document).ready(function() {
$('.myMenu > li').bind('mouseover', openSubMenu);
$('.myMenu > li').bind('mouseout', closeSubMenu);
function openSubMenu() {
$(this).find('ul').css('visibility', 'visible');
};
function closeSubMenu() {
$(this).find('ul').css('visibility', 'hidden');
};
});
$(document).ready(function(){
if ($(window).width() > 580) {
$('#cslide-slides, #cslide-slides1, #cslide-slides2, #cslide-slides3, #cslide-slides4, #cslide-slides5, #cslide-slides6, #cslide-slides7, #cslide-slides8, #cslide-slides9, #cslide-slides10, #cslide-slides11').cslide();
} else {
}
});
// Scroll to Section
$(document).ready(function(){
$('a[href^="#"]').on('click',function (e) {
e.preventDefault();
var target = this.hash,
$target = $(target);
$('html, body').stop().animate({
'scrollTop': $target.offset().top
}, 2000, 'swing');
});
});