D
D
drtvader2015-09-28 14:15:59
css
drtvader, 2015-09-28 14:15:59

How to make directory blocks always open?

Good afternoon! I am editing the site now, and I stopped at the Catalog block. There are 4 blocks with goods, the trick is that when you select 1 block, the remaining 3 are closed. What to do so that they do not close all? I took the block from another site, but I can’t figure it out in any way.
drtvader.esy.es/bad

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dk-web, 2015-09-28
@drtvader

At first glance, you need to dig into the main.js file

$("#t2").click(function () {
    $(this).addClass("active");
    $("#t1, #t3, #t4").removeClass("active");
    $("#i2").show();
    $("#i1, #i3, #i4").hide();
});

looks like it. - 4 groups.. one is shown, the rest are hidden..
To remain, respectively, you need to remove hide and removeClass, but I have little idea what will happen then ... and so it's not the easiest presentation of the catalog.
PS Oops, are you distracted from our site? this is strong))
Update: the
main.js file seems to be from the old versions . hang an alert on clicks - you will see where it works ... there is a lot of code and it is difficult to fully understand right away,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question