Posts by Randys Machado • 91 points
9 posts
-
-1
votes3
answers168
viewsA: Add and remove class when using pure Javascript getElementById
After much cost I managed to solve the problem (in my own way). Follows the code: const selectMapID = document.querySelectorAll('.map a'); const selectArticles = document.querySelectorAll('.map…
javascriptanswered Randys Machado 91 -
1
votes2
answers967
viewsQ: Error adding and removing Uncaught Typeerror class: Cannot read Property 'classList' of null
I created a script to add and remove a class, it works, but sometimes when there is this change of classif this error happens: Uncaught TypeError: Cannot read property 'classList' of null. Can…
javascriptasked Randys Machado 91 -
1
votes3
answers168
viewsQ: Add and remove class when using pure Javascript getElementById
I created the function to add the active class in the ID that was clicked, but if I click another I want you to remove the previous class and add active in the one that was currently clicked. With…
javascriptasked Randys Machado 91 -
0
votes4
answers210
viewsQ: Get post ID with Javascript
I need to get the id of the HTML tag generated dynamically by Wordpress. Wordpress has the option to add the post ID in the HTML tag so: How do I get the ID inside the tag <article> with…
javascriptasked Randys Machado 91 -
2
votes3
answers63
viewsQ: Event at mouse click
I have the following script: $(document).ready(function(){ $('#toca').mouseenter(function(){ $('#msg-toca').show(); }); $('#toca').mouseleave(function(){ $('#msg-toca').hide(); }); }); How do I make…
javascriptasked Randys Machado 91 -
1
votes1
answer396
viewsQ: Javascript does not work in Wordpress
I am running the following Javascript code on the site I made in Wordpress. var itens = document.querySelectorAll('h1'); console.log(itens); I am pulling a file that is in the js folder, but it does…
-
0
votes1
answer576
viewsQ: Change page information with PHP
I am doing a College job and in it I need to change page information like title-intro, blockquote and the cite from the page below, but it has to be done through another page as if it were an…
-
2
votes1
answer49
viewsQ: Using shapes with CSS
I would like to make a layout in this way, where the green part and the text is made with CSS I used Rotate and skew, but I could not do it. Could someone help me??…
-
0
votes1
answer306
viewsQ: Problems with modal bootstrap
I am creating a page to generate coupon code and I am using the modal of bootstrap to open a modal with the coupon data, but when clicking one of the buttons opens all at the same time, how can I…