Posts by Lucas • 123 points
10 posts
-
7
votes1
answer190
viewsQ: How do I pause a script when I leave the page?
I have a Javascript function that loops, it controls one element of the page that switches places with another, my goal is when you leave the page, this function stops and only comes back when the…
-
0
votes1
answer63
viewsA: How to generate a pdf of the graph generated by Treant JS
I managed to do using a plug-in called html2canvas, he is much like the html2pdf only you can make bigger images, following example //HTML <script…
-
0
votes1
answer63
viewsQ: How to generate a pdf of the graph generated by Treant JS
In my system I have an organization chart generated based on Treant JS and I would like to export as PDF, but exploring through the plug-in page I did not find anything related, anyone knows any way…
-
0
votes1
answer98
viewsA: How to create a variable array with scss in VS community
To work I had to make use of a function that accesses the array, the map-get using it I was able to traverse the foreach Example: map-get($colors, vermelho); a better example of the code used above…
-
0
votes1
answer98
viewsQ: How to create a variable array with scss in VS community
Good morning, I have a project on Ionic and in it I can configure a series of variables $colors: ( /*-CINZA: */ cinza1: #595959, cinza2: #7F7F7F, cinza3: #A5A5A5, cinza4: #CBCBCB, cinza5: #F1F1F1,…
-
0
votes3
answers289
viewsA: Select SELECT field with jquery
Primarily you should add the select to the list, which will get it picked up together, as stated in a previous reply. the main selectors in jquery are: $('elemento') to select all elemenentos of a…
-
0
votes1
answer265
views -
0
votes2
answers63
viewsA: How can I make a "tender" expression in a simpler way
After more google searches I found a suggestion that worked, just change the SingleOrDefault for FirstOrDefault, thus falling into the ternary expression ?? var notaComp = notasFiltradas?.Where(x…
-
0
votes2
answers63
viewsQ: How can I make a "tender" expression in a simpler way
I don’t know a good way to ask this, I googled it but I didn’t think what I wanted, I know the expression variavel?.atributo which makes the code only try to catch the attribute if the variable has…
-
0
votes2
answers48
viewsA: My <img> tag does not respond to my css settings
I believe that it is not just a lack of measure, try to put it this way #imagens1{ height: 19.92px; width: 19.92px; }