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
async function enviarScript(scriptText){ | |
const lines = scriptText.split(/[\n\t]+/).map(line => line.trim()).filter(line => line); | |
main = document.querySelector("#main"), | |
textarea = main.querySelector(`div[contenteditable="true"]`) | |
if(!textarea) throw new Error("Não há uma conversa aberta") | |
for(const line of lines){ | |
console.log(line) | |
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
{ | |
"countries" : [ | |
{ | |
"name_en": "Afghanistan", | |
"name_es": "Afganistán", | |
"continent_en": "Africa", | |
"continent_es": "África", | |
"capital_en": "Kabul", | |
"capital_es": "Kabul", | |
"dial_code": "+93", |
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
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
/* CSS */ | |