Informatie

Cat bnha x lezer

Cat bnha x lezer



We are searching data for your request:

Forums and discussions:
Manuals and reference books:
Data from registers:
Wait the end of the search in all databases.
Upon completion, a link will appear to access the found materials.

Cat bnha x lezer:

<,div class="category-list" id="category-list">,

<,div id="cat-group" class="grid-contner_11 no-overflow">,

<,div class="one-third" id="cat-group-left">,

<,div class="grid-wrap">,

<,div class="grid_1">,<,/div>,

<,div class="grid_1">,<,/div>,

<,div class="grid_1">,<,/div>,

<,/div>,

<,/div>,

<,div class="one-third" id="cat-group-right">,

<,div class="grid-wrap">,

<,div class="grid_1">,<,/div>,

<,div class="grid_1">,<,/div>,

<,div class="grid_1">,<,/div>,

<,/div>,

<,/div>,

<,/div>,

<,/lichaam>,

<,/html>,

Javascript-code:

var a = $('#cat-list-left').width(),

var b = $('#cat-group-left').width(),

var breedte = ( a / 4 ) + "",

var hoogte = ( b / 4 ) + "",

var grid_1 = "breedte: " + breedte + ", hoogte: " + hoogte,

$('#cat-list-left,#cat-group-left,#cat-group-right').each(function(){

$(this).find('.grid_1').each(function(){

$(this).addClass(grid_1),

}),

}),

Hoe kan ik deze code optimaliseren?

EEN:

Ik vond deze code en het werkt goed:

HTML:

<,div class="cat-row">,

<,div class="grid_1 cat-group cat-group-left">,

<,div id="cat-group-left">,<,/div>,

<,div class="grid_1">,<,/div>,

<,/div>,

<,div class="grid_1 cat-group cat-group-right">,

<,div id="cat-group-right">,<,/div>,

<,div class="grid_1">,<,/div>,

<,/div>,

<,/div>,

CSS:

.cat-rij {

hoogte: 100%,

weergave: tafel,

breedte: 100%,

}

.grid_1 {

breedte:100%,

display:tabel-cel,

}

.cat-groep {

weergave:tabelrij,

}

.cat-groep-links {

weergave: tafelrij,

hoogte: 0,

vulling: 0,

}

.cat-groep-recht {

weergave: tafelrij,

hoogte: 0,

vulling: 0,

}

.cat-groep-links, .cat-groep-rechts {

border-bottom: 1px effen #999,

}

En js:

var grid_1 = $('.grid_1'),

var cat_group_left = $('.cat-group-left'),

var cat_group_right = $('.cat-group-right'),

$('.cat-group-left').klik(functie () {

cat_group_left.removeClass('in'),

cat_group_right.removeClass('in'),

cat_group_left.addClass('uit'),

cat_group_right.addClass('uit'),

}),

$('.cat-group-right').klik(functie () {

cat_group_left.removeClass('uit'),

cat_group_right.removeClass('uit'),

cat_group_left.addClass('in'),

cat_group_right.addClass('in'),

}),

$('lichaam').klik(functie () {

$('.cat-group-left').removeClass('out'),

$('.cat-group-right').removeClass('out'),

$('.cat-group-left').addClass('in'),

$('.cat-group-right').addClass('in'),

}),

EEN:

Ik denk dat het komt omdat kat-groep-links en katten-groep-rechts in dezelfde klas zitten.

Om het te repareren heb ik je twee regels code vervangen door:

$('.cat-group-left, .cat-group-right').klik(functie () {

$('.cat-group-left').removeClass('out'),

$('.cat-group-right').removeClass('out'),

$('.cat-group-left').addClass('in'),

$('.cat-group-right').addClass('in'),

}),

Hier is de JSFiddle ervoor.

BEWERKING

Ik denk dat je dit bedoelde:

$('.cat-group-left, .cat-group-right').klik(functie () {

$('.cat-group-left').removeClass('out


Bekijk de video: Cat Deku AU bakuDeku? + bit of KiriKami (Augustus 2022).

Video, Sitemap-Video, Sitemap-Videos