Posts by Gabriel Gonçalves • 1,632 points
64 posts
-
2
votes1
answer69
viewsA: Manipulating CSS Gradient
You can use this by determining the start and end range of the color: .area{ width: 100%; padding: 10px 0; position: relative; } .area::before{ background-image:linear-gradient( to right, #e1202d…
-
4
votes2
answers62
viewsA: Use of Pseudo Classes in CSS
You can both use in tags specific, as in class, id and even tags specific to a id, for example: p:hover{ font-size: 20px; } .paragrafo:hover{ color: #ff0026; } #p1:hover, #p2:hover, #p3:hover{…
-
2
votes3
answers126
viewsA: creating note/observation field
The code reduction option is to use the linear-gradient: .nota{ background-image: linear-gradient(to right, #0F0 2%, #FF0 2%); width: 500px; height: 50px; display: flex; align-items: center; } .nota…
-
1
votes1
answer59
viewsA: A display:flex property is bugging my image
See if it solves the problem: #img-container{ width: 300px; height: 200px; overflow: hidden; display: flex; justify-content: flex-start; align-items: flex-end; } #imagem{ width: 300px; height:…
-
1
votes2
answers83
viewsA: Popular inputs according to the selected option value
In function getData() a parameter is passed, the index value of each <option>, then it takes the parameter for JS and uses as an array index: var cidades = new Array("Acre", "Bahia", "Minas…
-
0
votes2
answers2837
viewsA: Insert item into html list, using javascript
function produto(nome, tipo, preco, descricao){ this.nome = nome; this.tipo = tipo; this.preco = preco; this.desc =…
-
1
votes2
answers12407
viewsA: Insert javascript image
Array index and field you want to get missing book[0]["stars"]: var s; var book = [ { title: "O Tatuador de Auschwitz", stars: 4, Author: "Heather Morris", Validation: true } ]; for(s = 0; s <…
javascriptanswered Gabriel Gonçalves 1,632 -
1
votes1
answer63
viewsA: Insert text from a variable (resulting from an if) within a <p> after a button click
I guess you weren’t including jQuery in your code, since you’re working with .hasClass(). I left the first <input> with the class .mauticform-has-error for testing, if you withdraw you can see…
-
0
votes2
answers324
viewsA: Onclick event in a list show an image
By clicking on the text of <li> it performs the function, which will change the display of the image so that it can appear: function aparecer(){ imagem = document.getElementById("imagem");…
html5answered Gabriel Gonçalves 1,632 -
3
votes1
answer67
viewsA: URL checking by % correct words
You may be testing this similar_text(), see if it solves the problem : <?php $texto1 = 'Teste com Variavel'; $texto2 = 'Teste com Var PHP'; $iguais = similar_text($texto1, $texto2, $porcentagem);…
phpanswered Gabriel Gonçalves 1,632 -
0
votes2
answers86
viewsA: How do I use parseFloat in this algorithm?
It shall remain so for the operation, the parseFloat goes directly into the variable: var s1 = prompt("Insira a nota do 1 Bimestre: "); var s2 = prompt("Insira a nota do 2 Bimestre: "); var s3 =…
-
0
votes2
answers55
viewsA: Field with # does not appear in Mysql for _GET
What you may be doing is separating the shipping field : meusite/ir/parse.php? [email protected]&nick=Teste&num=6287 And then "join" the two in PHP: $nick =…
mysqlanswered Gabriel Gonçalves 1,632 -
2
votes1
answer631
viewsA: How to make input content appear on Alert?
HTML <input type="text" id="inputId"> <input type="submit" value="Enviar" onclick="MyFunction()"> JS function MyFunction(){ var id = document.getElementById("inputId").value; alert(id);…
-
0
votes1
answer80
viewsQ: How to create a . click() limiter in JS?
I’m trying to create a JS calendar. First I made a <table> that will fill the <td> according to the days, leaving all available to click and select a particular day. The user selects a…