Posts by Qwertiy • 129 points
8 posts
-
2
votes1
answer45
viewsA: Module Help - Native Javascript (ES6)
let ObjectApplication = {}; Choose an option window.ObjectApplication = null; globalThis.ObjectApplication = null; this.ObjectApplication = null; (0, eval)('this').ObjectApplication = null; So…
javascriptanswered Qwertiy 129 -
0
votes3
answers156
viewsA: How to make the counter work to allow three attempts?
var login_cadastrado = "alura"; var senha_cadastrada = "alura123"; function login(n) { for (var tentativa = 0; tentativa < n;…
javascriptanswered Qwertiy 129 -
0
votes2
answers64
viewsA: Clear only a part of the URL
https://developer.mozilla.org/en-US/docs/Web/API/URL var url = new URL(window.location.href) url.searchParams.delete("msg") history.replaceState(history.state, null, url.toString()); Idea…
javascriptanswered Qwertiy 129 -
0
votes3
answers109
views -
-1
votes2
answers1593
views -
1
votes3
answers146
viewsA: write json sentences html
function loadJsonData() { return $.ajax({ url: './Json/JsonSite.json', dataType: 'json', ); } loadJsonData().then(function (data) { document.getElementById("tituloareas").textContent =…
-
0
votes2
answers413
viewsA: Inputmask Regex
^(?=.{0,61}$)\w\w(\.\w\w)+-\w$ input { box-sizing: border-box; width: 100%; border: 1px solid; outline: none; } :valid { border-color: green; } :invalid { border-color: red; } <input…
-
0
votes2
answers1352
viewsA: Validate field to accept integer and decimal numbers
input { box-sizing: border-box; width: 100%; border: 1px solid; outline: none; } :valid { border-color: green; } :invalid { border-color: red; } <input pattern="\d+,?\d{0,2}" autofocus>…