Posts by Frank Santos • 46 points
4 posts
-
1
votes2
answers949
viewsA: How to get the value of a field of a JSON object
You need to pass on the answer you got on fetch for the function that inserts the Earnings on the page. function appendEarnings(earnings) { var ElementEarnings = document.getElementById("Earnings");…
-
0
votes2
answers471
viewsA: Display a sequence of Divs in two lines
My solution, assuming you can set the display property of the parent element of these elements, is to use the display: flex, and set the order properties to define the order of the elements within…
-
2
votes2
answers250
viewsA: Align Label with Text
Place all elements in a single div and use a display: flex and flex-wrap: wrap, the latter for responsiveness, the Justify-content: space between serves to give an equal space between elements.…
cssanswered Frank Santos 46 -
0
votes2
answers1140
viewsA: How to change the color of a div every 40 seconds?
Select the div you want to change the color and use a setTimeout function with the number of seconds you need, in the case of 40000, use an if to make a counter always be the two indexes of an array…