Posts by Lucas Inácio • 496 points
33 posts
-
0
votes1
answer37
viewsA: php - Open another screen with the HTML table value
I don’t really understand what you really want (ID line/tuple value or index). But following the logic of the code below you will be able to do what you want (I believe). Follows Code: <?php…
-
1
votes1
answer353
viewsQ: how to change input number value
I am facing some difficulties to change the value of an input (as stated in the question). Follow the code below: function alteraQtdProduto(op) { if (op == 'up') { var num =…
-
1
votes2
answers358
viewsQ: how to get class name with javascript
I’m making an accordion and it’s already functional as I’d like (just a few details I’ll get right later). Only now I need that when clicked and the panel expanded, the + (show more) sign be changed…
-
0
votes1
answer813
viewsQ: Hover image using bootstrap
I’m trying to apply an effect with Hover, but I’m not getting it. I am using bootstrap 4. I managed to accomplish what I want or almost that, the problem is that appears below and not on the image.…
-
1
votes1
answer71
viewsQ: pop-up with picture box using jquery
I’m trying to make a pop-up, but it’s making a mistake fadeIn is not a function at HTMLAnchorElement, because I use that jquery via Cdn because of the bootstrap:…
-
1
votes1
answer180
viewsQ: div is not centered on mobile
I have the following modal and inside it basically there’s an image in the upper left area and a text on the right side of the image and then a form. Everything is working perfectly well, but when…
-
0
votes1
answer241
viewsQ: icons via Cdn are not displayed on the website
I own a card and a link where I wanted to carry an icon of download, I use the class provided by font awesome, but the icon does not appear. I’ve read about specificity right here in SO-pt, I also…
-
0
votes1
answer60
viewsQ: Centralize cards on mobile device
I’m not getting these cards stay centered when on the mobile device, I’ve been told to use media queries, but in that sense I would have to create a new class to assign the css code, I mean, I…
-
0
votes0
answers1074
viewsQ: Configuring PHP Codesniffer in Vscode
I am unable to configure the phpcs extension in vscode. What I’ve already done I already downloaded and installed the Composer I installed the phpcs extension in vscode I’ve been trying to set this…
-
3
votes3
answers65
viewsQ: vertical menu with select
Could someone give me a north on how to display a vertical menu when the first items select is selected, I’m doing it in a very crude way, as they will notice that I put margin-top to move the…
-
-1
votes1
answer27
viewsQ: how to read operating greater than 9
How to read an operand composed of 2 or more characters, in the code I created I go through all the string in order to identify each type of operation and number, only that I am traversing this…
-
1
votes2
answers511
viewsQ: margin-top has no effect on text within the div
I’m trying to apply margin-top in tag p of my text with the intention that it should come down, but I do not know why it is not working. Every time I apply the margin-top, the effect ends up being…
-
2
votes4
answers674
viewsA: code of the PHP page appearing when clicking the Submit button of the form
I solved the problem! I will answer here to leave registered and that new users with similar problems can test this hypothesis. The problem is in the file .php(file name "index.php") which is called…
-
2
votes4
answers674
viewsQ: code of the PHP page appearing when clicking the Submit button of the form
On my html page I have the following form: <form method="POST" action="index.php" class="header"> <label for="km_tdo" id="lbTdo">KM troca de óleo:</label><input…
-
0
votes2
answers171
viewsQ: I can’t get content (number) of some tags read
The idea is to take a sequence of values arranged in li’s that share the same class, convert to integer, add to then perform a conditional test. I’m using…
-
1
votes1
answer87
viewsQ: I cannot access value of a JSON object and display it in the div
I’m running some tests with a file .json with the intention of implementing the code in my application (if I succeed in the tests). I am using the following json file. Follows the code: <!DOCTYPE…
-
1
votes2
answers637
viewsQ: How to add icons before the placeholder
I am working on the front of a login and I am wanting to insert the contact icons for the email field and the lock for the password. I want to insert before the message of placeholder. I am not…
-
-1
votes3
answers51
viewsQ: Modal’s button doesn’t work!
I own a modal that warns about Policies and Terms of Use. Basically it will close if clicked on any area outside of it and the close button, but I tried to implement (unsuccessfully) that it was…
-
2
votes1
answer36
viewsQ: how to display the full output of a repeat loop in the console
I have a very simplistic example of code. Segue Ex.: for(var i = 0; i < 5; i++){ console.log("alguma coisa"); } In the Chrome Devtools does not appear well the output I expected, the output is…
-
0
votes2
answers510
viewsA: How to return the git add --all command
I typed the command git log and copied the hash of a commit previous, soon after I used the command git reset --hard hash. P.S.: hash concerning the commit…
-
2
votes2
answers510
viewsQ: How to return the git add --all command
I ended up using this command improperly, and added many files that should not, wanted to return the previous state, command git reset HEAD <file> returns only one file, and as there are many…
-
1
votes1
answer202
viewsQ: Error saving monetary values in Mysql database
I have a table column from my bank called salario_base where it is of the type Decimal(7,2). I enter the value in a textbox, I convert the same and pass this and other variables to an insert class…
-
3
votes2
answers237
viewsQ: How to increase the top margin of the element
The problem I’m facing is to increase the upper margin between that title "Log in" of div main, I thought with a margin top I could do that, maybe I’m using it wrong, I tried, I tried but I…
-
0
votes1
answer29
viewsA: I’m having trouble using Google fonts in CSS and the codes are right, apparently
Try to close the tag H2, you opened but didn’t close. It’s like this <h2>Lorem ipsum is...<h2> That’s the way the slide would be <h2>Lorem ipsum is...</h2>…
cssanswered Lucas Inácio 496 -
0
votes2
answers204
viewsA: How to save an array of chars in a variable?
I. The example variable was being rewritten. II. it is not a global variable but a local variable, so it only exists in that context, if you try to use it outside the structure for will accuse error…
-
2
votes3
answers126
viewsQ: creating note/observation field
I would like to know how these fields are created, I created an example, but I do not know if this is really how it is created. Follow an example of what I created: .nota { background-color: #CCC;…
-
1
votes2
answers204
viewsQ: I’m not getting to work with localStorage
I have the following javascript code: const player1 = "X"; const player2 = "O"; var playTime = player1; var gameOver = false; var pontuacaoX = 0; var pontuacaoO = 0; var chaveX = 'scoreX'; var…
-
0
votes1
answer476
viewsQ: Title getting out of the div
I have a div parent containing two Divs son and one of these div son contains two other Divs son. The title of one of these is getting out of it. I modified the sizes of the same due to the…
-
1
votes1
answer57
viewsQ: How to remove value after floating point
I have the code section exposed below: var calcularSoma = function (primeiroValor, segundoValor) { var soma = primeiroValor + segundoValor; if (soma < 10) { console.log(soma, "Unidades."); return…
-
3
votes1
answer33
viewsQ: displayed result exceeding the condition
I have the following code snippet: var num = 0; while (num <= 12) { console.log(num); num = num + 2; } checking here now when posting the doubt, I saw that the result counts up to 12, but testing…
javascriptasked Lucas Inácio 496 -
0
votes1
answer41
viewsQ: Help using setItem and getItem from localStorage
I’m trying to save an answer, but I’m not getting it every time I refresh the previous answer back. Follow what I’m trying to implement: <!DOCTYPE html> <html lang="pt-BR"> <head>…
-
1
votes3
answers53
viewsQ: How to display the current date while loading the page
I’m willing to display the current date on a particular div while loading the page, I have already made a working sketch of the code, but I am using the button. I followed the code: function…
-
1
votes1
answer126
viewsQ: Back to top button is not overwriting the footer
I have the following problem, I created a button back to the top, positioned it in the lower right corner and gave a position:fixed in it. I’m making use of jQuery library. The problem occurred when…