Posts by Davi Francisco • 23 points
5 posts
-
2
votes1
answer264
viewsQ: How to increase and decrease the speed of a video?
I would like to know how to slow down and increase the speed of the video because I would like to offer this option to the user who uses the platform! This is the only problem I did not find a…
-
0
votes2
answers80
viewsA: Create red square on the screen - I need to create a button, where every time it is pressed, a red square is created
You can use document.createElement in this way: <div id="meuDiv"><!--Aqui será criado o quadrado--></div> <button onclick="myFunction()"><!--Toda vez que apertar esse…
javascriptanswered Davi Francisco 23 -
0
votes1
answer32
viewsA: Detecting Input Value is Transforming to Message
I don’t know if I got it right, but is this like what you want to do? Follows: function rodar(){ var roll = Math.floor(Math.random() * 100) + 1; if(hp < roll){ console.log("1"); }else{…
-
-2
votes4
answers44
viewsA: I would like to know how to add html div through pure js
is quite simple, we can do using Document.createelement() <div id="meuDiv"></div> <script> function myFunction(){ var div = document.createElement("DIV");//crio uma variável para…
-
0
votes6
answers2057
viewsA: Modify the title of a browser tab with Javascript
Create a variable to store the input, then put it as a variable tag "title" var input = document.getElementById("texto").value; document.getElementsByTagName('title')[0].innerHTML = input; /*Peguei…
javascriptanswered Davi Francisco 23