Posts by Ricardo Passos • 149 points
8 posts
-
1
votes1
answer28
viewsA: Cannot read Property 'addeventlistener' of null wordpress
Given your request in the comments of your question, I dedicate to create this answer to maintain the organization. $(document).ready(function () { const modal = $("#modal-form-popup"); const…
-
2
votes1
answer41
viewsQ: Promise solved or rejected multiple times by "blocking" execution of the rest of the code
My goal is to get the user’s email and then send it to the database. For this, I put a "change" event in the input that captures the email. My idea is that every time the input goes out of focus,…
-
0
votes0
answers58
viewsQ: Condition problems (if/Else) using React.js
My expectation: create a button that opens a modal for the user to enter information and this information turns a card to be shown on screen. The problem: I made an example in Codesandbox that…
-
2
votes1
answer416
viewsQ: State returning wrong/late value
The application: by clicking on a button, an event onClick is fired and a fetch There is an API that returns data in JSON is performed. Right after this data is transformed into an object, the…
-
2
votes1
answer26
viewsQ: CSS personal-selectors do not seem to work with the querySelector method
Basically, I need to access the href of the last tag anchovy and change their value. const modHref = document.querySelector('.menu a:last-child'); modHref.setAttribute('href', 'ricardo.com');…
-
2
votes1
answer24
viewsQ: What is the behavior of the "order" property when not defined?
My goal is this: The site has a shopping area that displays 3 different plans. When this plane area is accessed on a screen larger than 800px wide, it is displayed as follows: The plans are laid out…
-
1
votes2
answers76
viewsQ: Gradient Animation CSS
I’m trying to make an animation like this link: https://codepen.io/TheCodeDepository/pen/jKBaoN It turns out, the code below (which I copied line by line) is with some problem that does not allow…
-
2
votes1
answer740
viewsQ: Python arithmetic progression with decimal numbers
I was doing some exercises on the Internet and I came across the following: create a program that reads the first term and the reason and calculate the umpteenth term of this P.A. I did the program…
python-3.xasked Ricardo Passos 149