Tipps

Tipp Suche:
Marken Suche
Alle
adidas
Converse
DC
Lacoste
New Balance
New Era
Nike
Paez
Puma
Reebok
Timberland
Vans
Sonstige Ratgeber
Modell Suche
Alle
adidas Gazelle
adidas Superstar
adidas Stan Smith
adidas X_PLR
adidas ZX Flux
Converse Chuck Taylor
New Balance 574
Nike Air Force
Nike Air Max
Nike Cortez
Nike Roshe
Nike Stefan Janoski
Puma Suede
Reebok Classic Leather
Timberland Premium 6 INCH
Vans Old Skool
[script]$(document).ready(function(){/* Initial instructions */var ddmModelContainer = $('#ddm-model.custom-select');disableMenu(ddmModelContainer);cleanBrandsMenu();sortMenuItems('#ddm-brand');sortMenuItems('#ddm-model');/* EVENT HANDLERS *//* Toggling custom select menus' options */$('#ddm-brand .select-selected').click(function(){$(this).siblings('.select-items').removeClass('select-hide');$('#ddm-model.custom-select').children('.select-items').addClass('select-hide');});$('#ddm-model .select-selected').click(function(){$(this).siblings('.select-items').removeClass('select-hide');$('#ddm-brand.custom-select').children('.select-items').addClass('select-hide');});$('.select-items div').click(function(){$(this).parent().addClass('select-hide');$(this).parent().siblings('.select-selected').html($(this).html());});$('#ddm-brand .select-items div').click(function(){$(this).parent().siblings('.select-selected').attr('data-brand-selected',$(this).attr('data-brand'));});document.addEventListener('click', closeAllSelect, true);function closeAllSelect(){$('.custom-select').children('.select-items').addClass('select-hide');}/* Filtering brands */$('#ddm-brand.custom-select div[data-brand]').click(function(){var attBrand = $(this).attr('data-brand');attBrand = attBrand.replace('\'','');if( attBrand.indexOf('br-all') === 0 ){$('.guide-name').slideDown();disableMenu(ddmModelContainer);$('#ddm-model > .select-selected').html('Modell Suche');} else if ( attBrand.indexOf('br-other') === 0 ){$('.guide-name a:not([data-brand*=\''+ attBrand +'\'])').parent().slideUp();$('.guide-name a[data-brand*=\''+ attBrand +'\']').parent().slideDown();disableMenu(ddmModelContainer);} else {$('#ddm-model > .select-selected').html('Modell Suche');$('.guide-name a:not([data-brand*=\''+ attBrand +'\'])').parent().slideUp();$('.guide-name a[data-brand*=\''+ attBrand +'\']').parent().slideDown();ddmModelContainer.children('.select-selected').removeClass('select-disabled');/* Cleaning options in models' menu */if( attBrand.indexOf('br-other') !== 0){$('#ddm-model.custom-select .select-items > div').hide();/* Showing only models of the chosen brand */$('#ddm-model.custom-select .select-items > div[data-brand*=\''+ attBrand +'\'], #ddm-model.custom-select .select-items > div[data-model*=\'mo-all\']').show();/* Hiding models that don't have available guides */cleanModelsMenu();}}});/* Filtering models */$('#ddm-model.custom-select div[data-model]').click(function(){var attBrandSelected = $('#ddm-brand .select-selected').attr('data-brand-selected');var attModel = $(this).attr('data-model');attModel = attModel.replace('\'','');if( $(this).attr('data-model').indexOf('mo-all') !== 0 ){$('.guide-name a:not([data-model*=\''+ attModel +'\'])').parent().slideUp();$('.guide-name a[data-model*=\''+ attModel +'\']').parent().slideDown();} else {$('.guide-name a[data-brand*=\''+ attBrandSelected +'\']').parent().slideDown();}});function disableMenu(target){target.children('.select-selected').addClass('select-disabled');}function cleanBrandsMenu(){var collection = {};var b = '';var allMenuBrands = $('#ddm-brand div[data-brand]');for(var i = 0; i < allMenuBrands.length; i++){b = allMenuBrands[i].getAttribute('data-brand');b = b.replace('\'','');if (b.indexOf('br-all') !== 0){collection = $('.guide-name a[data-brand*=\''+ b +'\']');if (collection.length !== null && collection !== null && collection.length === 0){$('#ddm-brand div[data-brand*=\''+ b +'\']').hide();}}}}function cleanModelsMenu(){var collection = {};var m = '';var allMenuModels = $('#ddm-model div[data-model]');for(var i = 0; i < allMenuModels.length; i++){m = allMenuModels[i].getAttribute('data-model');m = m.replace('\'','');if (m.indexOf('mo-all') !== 0){collection = $('.guide-name a[data-model*=\''+ m +'\']');if (collection.length !== null && collection !== null && collection.length === 0){$('#ddm-model div[data-model*=\''+ m +'\']').hide();}}}}function sortMenuItems(id){var arrItems = [];var items = $(id + ' div[data-brand]');var br = (id.indexOf('#ddm-brand') === 0) ? 1 : 0;var elem = {};for (var j = 1; j < (items.length - br); j++){arrItems[j] = items[j];}arrItems.sort(function(a,b){var x = a.innerHTML.toLowerCase();var y = b.innerHTML.toLowerCase();if (x < y) { return -1; }else if (x > y) { return 1; }else { return 0; }});var itemsContnr = $(id + ' .select-items');itemsContnr.empty();if (br === 1){elem = document.createElement('div');elem.dataset.brand = 'br-all';elem.innerHTML = 'Alle';itemsContnr.append(elem);} else {elem = document.createElement('div');elem.dataset.brand = 'br-all';elem.dataset.model = 'mo-all';elem.innerHTML = 'Alle';itemsContnr.append(elem);}for (j = 0; j < arrItems.length; j++){itemsContnr.append(arrItems[j]);}if (br === 1){elem = document.createElement('div');elem.dataset.brand = 'br-other';elem.innerHTML = 'Sonstige Ratgeber';itemsContnr.append(elem);}}});[/script]
Zurück

Um deine Präferenzen kennen zu lernen und dir die Suche auf unserer Seite zu erleichtern, verwenden wir Cookies. Wenn du weiter auf unserer Seite bleibst, erklärst du dich damit einverstanden. Mehr über Cookies und ihren Verwendungszweck kannst du hier erfahren

OK, ich verstehe
×
[script]$(document).ready(function() { /* MP - Bug ENPSUP-12079 */ $('#js-header').mouseenter(function() { $('.zoomContainer').css('z-index', '0'); }); $('#js-header').mouseleave(function() { $('.zoomContainer').css('z-index', '100'); });});[/script]