Posts by Rafael Pelizza • 97 points
8 posts
-
0
votes0
answers74
viewsQ: nodejs Doubt about module.Exports
Good evening. I have a question maybe a little bit simple but that is keeping me up at night and I think I’m doing it the wrong way. However, if someone can correct me and explain why I made a…
-
2
votes2
answers97
viewsQ: HTML escape inside <code> element - No jQuery
Good evening. I’m developing a chat and I’m racking my brain here. I capture the text, treat it, check what is img or link and just put inside the tags <img> and <a>, respectively. If it…
-
1
votes3
answers46
viewsA: Changing position of multiple DIVS with same selector in Jquery
Would that be? $('.preco-a-vista').each((i,e) => { $('.preco').eq(i).appendTo($(e).html()); }) In this case it is for equal numbers of div'.preco-a-vista' and . 'price'. There are N ways to do…
-
1
votes3
answers46
viewsA: Changing position of multiple DIVS with same selector in Jquery
I don’t quite understand your question, but... $('.preco-a-vista').each((i,e) => { $('.preco').eq(i).html(e.textContent); })
-
-1
votes2
answers71
viewsA: Modify an HTML element or a browser native function
The solution with the help of Sérgio Cabral!!!! `(Function() { if (!(/Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor))) { var dialogs =…
-
1
votes2
answers71
viewsQ: Modify an HTML element or a browser native function
Guys, next... Google Core supports the element <dialog> and its functions showModal() and close(). However, some browsers do not support it. I made a simple script, which checks whether the…
-
1
votes2
answers93
viewsQ: Filter code elements
Speak, guys.. Blz? I have a question here. I am developing a chat app on Youtube, and say I send or receive a message as follows: msg = "Oi, fulano. Acesse esse <a href="link">link</a> e…
-
3
votes3
answers6975
viewsQ: Javascript function 1 wait function return 2 (Sync await Promise.all)
I am very doubtful about the use of async/await and also of Promise.all. I have the following code: class Conexao { constructor(loading) { this.loading = loading; } acessar(rota) { return…