• Das Erstellen neuer Accounts wurde ausgesetzt. Bei berechtigtem Interesse bitte Kontaktaufnahme über die üblichen Wege. Beste Grüße der Admin

Hilfe bei Skript - IPad-Absturz nach Animation

kwkurzer

New member
Hallo, benötige eure Hilfe, weil mein IPad immer abstürzt. Danke

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');
	});
});
 
Erkenne jetzt nichts auffälliges. Entferne doch mal das ganze JS und baue es Schritt für Schritt wieder ein. So kannst du einschränken, was das Problem verursacht.

PS: Ich finde es ja super, dass der Fluss "Leben" nicht in den "Hafen des Lebens" mündet...
PPS: Warum hast du vier document.ready? Einer alleine würede auch schon reichen.
 
Zurück
Oben