Posts by Leandro Nascimento • 81 points
27 posts
-
1
votes1
answer65
viewsQ: How to drop drag anywhere in the container
I decided to create an application WEB using user interaction using API Drag And Drop (Drag and drop) of Javascript. <html> <head> <meta charset="UTF-8"> <style> body {…
javascriptasked Leandro Nascimento 81 -
1
votes2
answers136
viewsA: How to take the scroll out of an input date field?
Good, you can disable the field input pattern input="date" with Javascript, for example. let campoInput = window.document.querySelectorAll("input[type=date]"); for(let i = 0; i <…
-
1
votes2
answers186
viewsA: How to make a video start and restart automatically?
Good you could do for the video start and restart in this way. <video autoplay="autoplay" loop="loop" controls src="Fundo/greninja.mp4" type="video/mp4 controls" height="180%"width="100%">…
-
1
votes3
answers196
viewsA: Fill in a text field with information from another field by clicking on a radio button
It’s quite simple to look at the code below. function selecioneCoordenador() { var nomeUsuario = window.document.querySelector("#nomeUsuario"); var selecionar =…
-
1
votes2
answers42
viewsQ: In this case am I or am I not required to declare the same variables?
function clock() { var date = new Date(); var dateLocate = date.toLocaleString() var paragraph = window.document.querySelector("#data"); paragraph.textContent = dateLocate;…
javascriptasked Leandro Nascimento 81 -
0
votes2
answers134
viewsQ: How do I leave the right-aligned button on top of the table?
Well, I’m creating a system of registering people using HTML, CSS, JAVASCRIPT my application is working normally, the application is very complex and it is quite code I recommend you to run the code…
-
0
votes1
answer21
viewsQ: What is happening in this code the Event parameter would be a this?
<!doctype html> <html lang="pt-br"> <head> <meta charset="utf-8"> <title>Document</title> </head> <body> <script>…
javascriptasked Leandro Nascimento 81 -
2
votes2
answers277
viewsA: background-image is not working
To URL of the folder and the image you entered do not exist. Your file index.css is in the folder css and its file index.html is one level below this folder, so what you’re trying to do is insert an…
-
3
votes2
answers94
viewsQ: How to erase the symbols of a CPF in an input?
I’m creating a website that asks for the name and the person’s number the CPF has to be in format xxx.xxx.xxx-xx. And by pressing the button he registers the person (The data is only displayed on…
javascriptasked Leandro Nascimento 81 -
1
votes1
answer160
viewsQ: How to delete character by character from input when pressing the button?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <input id="box" type="text"> <button…
-
2
votes2
answers772
viewsA: How to center an ul inside the div?
You can use flexbox to center the ul. Put it display: flex in the parent element of ul that would be the #nav. So you will define the parent element so that your children are flexible. Then just add…
-
1
votes2
answers73
viewsQ: How to make the button always right at the top inside the div?
function customAlert(customMessage) { var interface = window.document.createElement("div"); var button = window.document.createElement("button"); var paragraph = window.document.createElement("p");…
-
-2
votes2
answers202
viewsA: Hide files from inspect
This can’t be done, think the browser needs to know where your files are in order to render your site either locally or on the server.
-
1
votes3
answers820
viewsA: How to do when the person takes the mouse from the top decrease the size only with css
A pseudo-class :hover is a type of selector that happens only when the mouse is over the specified element. <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8">…
-
5
votes5
answers93
viewsA: How to explain this FOR loop in Javascript?
Good at variable x you have a value referencing the classes in html that is the class cidade. var x = document.getElementsByClassName("cidade"); Referring to these classes. <h2…
-
-3
votes1
answer97
viewsQ: What is the operator for?
var n = prompt("Digite um numero"); if(n & 1){ alert("Impar"); } else { alert("Par"); } alert(n); This code block is very simple, but the focus is on this operator &. What’s he good for? and…
-
0
votes2
answers1548
viewsA: Remove standard container space
Just add this code to the CSS. .container { padding: 0; } For it is the <div> with class container who has the padding and not the <div> classy borda worth remembering that you are…
-
2
votes2
answers164
viewsA: How do I create a theme for the same textarea as VS Code?
That’s not a problem, you asked for it to happen, you applied a property to the parent element and your children are getting your father’s inheritance. At a glance Cascade and inheritance. Like you…
-
0
votes2
answers110
viewsA: Show result inside a div without load on the page
You are not skipping to another page note your URL is the same. The logic problem is that you are using the method write() this method it is used most of the time for testing and not for projects…
-
0
votes1
answer32
viewsA: Targeting a Javascript solution
This, example I created for you is fine, simple, probably what you want. <!doctype html> <html lang="pt-br"> <head> <meta charset="utf-8"> <meta name="viewport"…
javascriptanswered Leandro Nascimento 81 -
1
votes0
answers43
viewsQ: How to make the suggested <datalist> data appear only when typed?
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta…
-
0
votes2
answers66
viewsA: block with css on the mouseover
In Javascript the code would look like this. <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,…
-
7
votes3
answers547
viewsQ: Why does the "text-align: center" property work in image?
I don’t understand why text-align: center is centering the image because this property is not used to center text? because it centralizes the image too? I created an example. @charset "utf-8";…
-
1
votes2
answers295
viewsQ: writeln in Javascript is in disuse or not?
I didn’t find any documentation saying that writeln is obsolete, but he was supposed to write in a new line, but it’s not what’s happening, it works the same as the write and stays in one line only.…
javascriptasked Leandro Nascimento 81 -
0
votes3
answers1601
viewsQ: z-index doesn’t work because?
I have this very simple code, my div#d4 is coming out of your container and falling into the div#d2 this because the div daughters do not fit in the div father. And by defining a position: absolute…
-
1
votes1
answer60
viewsQ: Why is <li> centered?
@charset "UTF-8"; body { background-color: rgb(0, 0, 0); } /* header principal */ header#main-header { width: 246px; height: 42px; background-color: rgb(68, 68, 68); margin: auto; }…
-
4
votes2
answers108
viewsQ: Why doesn’t the <p> tag inherit your father’s color?
I have the following very simple code <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,…