Patarimai

Leškok patarimų:
Pasirinkti gamintoją
Visi Ieškok patarimų
adidas
Converse
DC
Lacoste
New Balance
New Era
Nike
Paez
Puma
Reebok
Timberland
Vans
Kiti patarimai
Pasirinkti modelį
Visi Ieškok patarimų
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
[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('Pasirinkti modelį');} 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('Pasirinkti modelį');$('.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 = 'Visi Ieškok patarimų';itemsContnr.append(elem);} else {elem = document.createElement('div');elem.dataset.brand = 'br-all';elem.dataset.model = 'mo-all';elem.innerHTML = 'Visi Ieškok patarimų';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 = 'Kiti patarimai';itemsContnr.append(elem);}}});[/script]
Grįžti

Informuojame, kad šioje svetainėje naudojami slapukai (angl. cookies). Sutikdami, paspauskite mygtuką „Sutinku“. Savo duotą sutikimą bet kada galėsite atšaukti pakeisdami savo interneto naršyklės nustatymus ir ištrindami įrašytus slapukus.

Sutinku
×
[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]