This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function copyToClipboard(text) { | |
var textarea = document.createElement("textarea"); | |
textarea.value = text; | |
document.body.appendChild(textarea); | |
textarea.select(); | |
document.execCommand("copy"); | |
document.body.removeChild(textarea); | |
alert('Copied successfully!') | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"HTTP":{ | |
"PORT":{ | |
"Equatorial-Guinea":{ | |
"8080":"102.164.252.150" | |
}, | |
"China":{ | |
"8080":"117.144.175.195" | |
}, | |
"China_2":{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let campoIdade; | |
let campoFantasia; | |
let campoAventura; | |
function setup() { | |
createCanvas(800, 400); | |
createElement("h2", "Recomendador de filmes"); | |
createSpan("Sua idade:"); | |
campoIdade = createInput("5"); | |
campoFantasia = createCheckbox("Gosta de fantasia?"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//variáveis da bolinha | |
let xBolinha = 100; | |
let yBolinha = 200; | |
let diametro = 20; | |
let raio = diametro / 2; | |
//variáveis do oponente | |
let xRaqueteOponente = 585; | |
let yRaqueteOponente = 150; |