Posts by Ricardo Ferreira • 241 points
16 posts
-
2
votes7
answers44529
viewsA: How to get only the numbers of a string in Javascript?
Simply remove all characters that are not numbers using the following regex: string.replace(/\D/g, '') // substitui o que nao for numero por nada Example: var str = '(11)…
-
1
votes1
answer49
viewsA: Bootstrap 4 does not place columns side by side in Angular8
Your loop is creating new rows so it is not aligning side by side. You should loop in the div with the column classes. Follows the amendment: <div class="row"> <div *ngFor="let item of…
-
0
votes4
answers2324
viewsA: Angular 7 - Popular object on return of API service. httpClient
Instead of returning the value return an observable in your service: TodasCoberturas(): Observable<Coberturas[]> { return this.http.get<Coberturas[]>(this.UrlServiceV1 +…
-
0
votes2
answers3616
viewsA: target Blank right in the URL
The short answer is no. This is not possible because a URL is requested through the navigation bar the browser makes a GET and your page is reloaded completely. Which means that for the browser is…
-
0
votes5
answers511
viewsA: Problem with footer on mobile sites
I create an example using flexbox. Its already compatible with Most of the browsers as you can see in the can this link: can I use - flexbox css html, body { height: 100%; padding: 0; margin: 0; }…
-
3
votes3
answers189
viewsA: Global and local scope variable
Your code is not working because you have not changed its scope. Wrapping the code with {} does not mean that it is in a different scope. To change scope you must create a function. Follow the…
-
0
votes3
answers2918
viewsA: pass input text value to an angle function
First you need to insert some event in your template, in this case the event "onchange". <input type="search" (change)="//seu methodo" /> Once done, insert your method with the parameter you…
angularanswered Ricardo Ferreira 241 -
1
votes2
answers967
viewsA: Error adding and removing Uncaught Typeerror class: Cannot read Property 'classList' of null
About the error The error shown says that the classList property of "null could not be found". Why the variable is set to "null"? on the line: const id = element.getAttribute('href').replace('#',…
javascriptanswered Ricardo Ferreira 241 -
1
votes2
answers34
viewsA: Show slect if previous select receives value
You can use the same approach you used for the checkbox but this time when you select it to change value. Follow the example: var myCheckbox$ = $('#myCheckbox'); var fooSelect$ = $('#fooSelect');…
javascriptanswered Ricardo Ferreira 241 -
0
votes3
answers41
viewsA: Sidebar open at the place I click?
Just enter "javascript:void(0)" in the href of your link that fires the event to open the side menu. <a href="javascript:void(0)" onclick="openSlideMenu()">...
-
0
votes5
answers585
viewsA: Footer content does not cover the entire screen
As Sam said, Oce needs to use the right classes for his structure to work as it should. Here’s an example of how you can build your base. header, footer { background: #eaeaea; } <link…
-
0
votes3
answers38537
viewsA: Alignment of buttons with css
First of all I suggest you research on "mobile first", this will make you write much less and its development becomes more "intuitive". Note here that I added the "display" property with the value…
cssanswered Ricardo Ferreira 241 -
1
votes2
answers252
viewsA: Jquery Table Selector with bootstrap
You can use the functions "focusin" and "focusout": $(function(){ $(".input-group input").focusin(function(){ $(this).parent().find('.btnGravar').removeClass('hidden'); }) .focusout(function(){…
-
1
votes3
answers7373
viewsA: How to Rotate an Image in the Background?
This is a solution I found for this problem. I tried my best not to interfere in its structure. I hope to have contributed. .first-conteudo { padding: 3em; position: relative; overflow: hidden; }…
-
1
votes4
answers359
viewsA: margin:auto; how to apply in this case
The post is old but worth a reservation. I modified the stylization by simply exemplifying how I could do what I wanted in a few lines. An important modification was not to treat children…
-
0
votes4
answers18367
viewsA: Applying opacity in a Background
This solution that friend posted is almost correct. I made some crossbrowser changes and included some necessary properties. I left below a live example. I hope I helped. ** jsFiddle live preview…