dammhirsch
Themenersteller
Neuling (1 Beiträge)

javascript kann von iPhone nicht geladen werden

am 19.09.2014, 13:33 Uhr eröffnete dammhirsch folgenden Thread
AJAX & JavaScript (JS)    1930 mal gelesen    0 Antwort(en).

Hallo

Ich habe das untenstehende Skript in mein Webseite eingebunden. Nun wird sie vom iPhone und iPad nicht oder nur teilweise geladen. Andere Smartphones haben damit kein Problem. Kann mir da jemand helfen?

Herzlichen Dank

jQuery(function($){

var Brandx = window.Brandx || {};

/* ==================================================
Mobile Navigation
================================================== */
var mobileMenuClone = $('#menu').clone().attr('id', 'navigation-mobile');

Brandx.mobileNav = function(){
var windowWidth = $(window).width();

if( windowWidth <= 979 ) {
if( $('#mobile-nav').length > 0 ) {
mobileMenuClone.insertAfter('#menu');
$('#navigation-mobile #menu-nav').attr('id', 'menu-nav-mobile');
}
} else {
$('#navigation-mobile').css('display', 'none');
if ($('#mobile-nav').hasClass('open')) {
$('#mobile-nav').removeClass('open');
}
}
}

Brandx.listenerMenu = function(){
$('#mobile-nav').on('click', function(e){
$(this).toggleClass('open');

if ($('#mobile-nav').hasClass('open')) {
$('#navigation-mobile').slideDown(500, 'easeOutExpo');
} else {
$('#navigation-mobile').slideUp(500, 'easeOutExpo');
}
e.preventDefault();
});

$('#menu-nav-mobile a').on('click', function(){
$('#mobile-nav').removeClass('open');
$('#navigation-mobile').slideUp(350, 'easeOutExpo');
});
}


/* ==================================================
Slider Options
================================================== */

Brandx.slider = function(){
$.supersized({
// Functionality
slideshow : 1, // Slideshow on/off
autoplay : 1, // Slideshow starts playing automatically
start_slide : 1, // Start slide (0 is random)
stop_loop : 0, // Pauses slideshow on last slide
random : 0, // Randomize slide order (Ignores start slide)
slide_interval : 12000, // Length between transitions
transition : 1, // 0-None, 1-Fade, 2-Slide Top, 3-Slide Right, 4-Slide Bottom, 5-Slide Left, 6-Carousel Right, 7-Carousel Left
transition_speed : 300, // Speed of transition
new_window : 1, // Image links open in new window/tab
pause_hover : 0, // Pause slideshow on hover
keyboard_nav : 1, // Keyboard navigation on/off
performance : 1, // 0-Normal, 1-Hybrid speed/quality, 2-Optimizes image quality, 3-Optimizes transition speed // (Only works for Firefox/IE, not Webkit)
image_protect : 1, // Disables image dragging and right click with Javascript

// Size & Position
min_width : 0, // Min width allowed (in pixels)
min_height : 0, // Min height allowed (in pixels)
vertical_center : 1, // Vertically center background
horizontal_center : 1, // Horizontally center background
fit_always : 0, // Image will never exceed browser width or height (Ignores min. dimensions)
fit_portrait : 1, // Portrait images will not exceed browser height
fit_landscape : 0, // Landscape images will not exceed browser width

// Components
slide_links : 'blank', // Individual links for each slide (Options: false, 'num', 'name', 'blank')
thumb_links : 0, // Individual thumb links for each slide
thumbnail_navigation : 0, // Thumbnail navigation
slides : [ // Slideshow Images
{image : '_include/img/slider-images/image01.jpg', title : '

', thumb : '', url : ''},
{image : '_include/img/slider-images/image02.jpg', title : '

', thumb : '', url : ''},
{image : '_include/img/slider-images/image03.jpg', title : '

', thumb : '', url : ''},
{image : '_include/img/slider-images/image04.jpg', title : '

', thumb : '', url : ''}
],

// Theme Options
progress_bar : 0, // Timer for each slide
mouse_scrub : 0

});

}




    « zurück zu: AJAX & JavaScript (JS)

    Das Seitenreport Forum hat aktuell 5276 Themen und 36111 Beiträge.
    Insgesamt sind 48364 Mitglieder registriert.