Posts by Luan Fagundes • 833 points
16 posts
-
-3
votes1
answer73
viewsA: Someone can help me understand this code!
Try to use the divides and Conquer because breaking the code makes it easier to understand. for example: What does this first passage mean: from Collections import Counter Dai, you go doing line by…
pythonanswered Luan Fagundes 833 -
0
votes2
answers147
viewsA: Activate the Hover in series
You cannot do css by selecting the element directly. imgHover:hover img { 0% display:none ; opacity: 0; 1% display: block ; opacity: 0; 100% display: block ; opacity: 1; }…
jqueryanswered Luan Fagundes 833 -
43
votes1
answer21497
viewsQ: What is Reactive Programming (Reactive Programming)?
Can someone explain to me clearly and objectively? I read some more articles still not very clear.
-
6
votes3
answers5090
viewsA: Limit text length with jQuery
I don’t know if you need this necessarily in javascript, because this can be solved in css in a very simple way. You can use the property: text-overflow: ellipsis; Here is the example of…
jqueryanswered Luan Fagundes 833 -
5
votes3
answers425
viewsA: Javascript : Give . Hide on everything that is open
You can use a context to select the elements and give a . Hide() Example: Use one selection per class in common. Search for specific attribute. Use parent element and use . find by widgets. Create a…
jqueryanswered Luan Fagundes 833 -
3
votes1
answer154
viewsQ: What is the average cache time for static files?
What is the average cache expiration time for poorly updated static files? There are techniques or recommendations that can help me to determine the expiration time? An example would be:…
-
1
votes2
answers139
viewsA: Use date or class to query DOM elements
Assuming that we are searching for an attribute, I believe that this is slower, because it will check all the elements of the page, which may have this attribute. So, search for tag or make a…
-
1
votes3
answers10752
viewsA: How to debug a website on mobile devices?
You can use the option on google Chrome itself in the options bar next to Elements. Device mode. You can debug and view your website on multiple devices. Emulators will never be 100% but I use a lot…
-
0
votes2
answers3229
viewsA: Open new page and scroll to page anchor
If the anchor link is not solving, you can try using a function to check which parameter arrives at the url and scroll to the desired location. if (param === "#produto1") { window.scrollTo(element)…
htmlanswered Luan Fagundes 833 -
2
votes3
answers430
viewsA: Creating a table in html
Build the table in HTML first (in the same hand). Then use Jquery’s . append() to create it dynamically. Finally put the dynamic values. Can use a loop for iterations of values.…
htmlanswered Luan Fagundes 833 -
4
votes1
answer282
viewsQ: Is sending parameters to another function using object or hash a good practice?
Exemplo: function atualizar(dados, events) { //faz qualquer tratamento dos valores var hash = { novoValor: dados, outroValor: event }; // primeira opção return customize(dados, event); // segunda…
-
1
votes2
answers115
viewsA: Get div above the current
That’s right: .prev(); para ir para o elemento irmão anterior. .next(); para ir para o elemento irmão seguinte. to access his current Journal, use .index(); In its current context it will be:…
-
1
votes4
answers6715
viewsA: How to clear form fields in c#?
Break your code more, for easy reading. The smaller the code the easier it is to understand and debug. Then you can slowly improve. is improve to view duplicate code or code (in this case the…
-
-1
votes1
answer73
viewsA: Disable page drag on a mobile device
This is done at OS level, follow the link for you to check. http://www.mobilexweb.com/blog/safari-ios7-html5-problems-apis-review But there is an interesting solution that is: As soon as you enter…
-
0
votes3
answers1291
viewsA: How to recover the attribute of a dynamically created element?
Another solution would be: function selecionaConta() { $('#conta_selecionada').on('click','.soma_item_conta',function(){ //alert('TETSE'); }); } Take the script or event that creates its dynamic…
-
2
votes3
answers1291
viewsA: How to recover the attribute of a dynamically created element?
A Quick Fix would be to place the function call directly in your dynamically created element. Example: function selecionaConta() { $('#conta_selecionada').on('click','.soma_item_conta',function(){…