Posts by Kup • 218 points
5 posts
-
1
votes1
answer50
viewsQ: Receive correct $index after filter use
Hello, I have an image gallery that contains a search box, basically when the user clicks on an image opens a lightbox with that image. I’m basically passing the $index for a function that opens the…
-
2
votes1
answer402
viewsQ: Override the preventDefault() method
Is there any way to "undo" the method preventDefault()? I have this little code that solves this for me, but I was wondering if there’s any more efficient way to do it. var $form = $('form');…
-
0
votes2
answers135
viewsA: The domain of the hosted site does not appear in the Google search engine
There are numerous reasons for this to happen, as @Kaduamaral said, check to see if the robots.txt isn’t blocking anything. Then add the site in this link,…
-
1
votes1
answer306
viewsA: How to create subcategories with Javascript
How about using CSS to select the element through the Category title to set the asset class? for example, // Javascript nativo document.querySelector('a[title="Masculino"]').classList.add('active');…
-
6
votes2
answers1433
viewsA: Switch colors in table with PHP
You can do the same, but you put up a counter, $index = 0; while(...) { if($index%2==0){ echo 'class="branco"'; } else { echo 'class="cinza"'; } $index++; }…