Posts by codermarcos • 378 points
21 posts
-
0
votes2
answers3688
viewsA: What are the advantages and disadvantages of minifying Javascript scripts?
Speaks beauty? The big and biggest advantage this in data consumption, of course depending on the scenario we do not have big advantages however depending on its application makes a lot of sense.…
-
1
votes2
answers467
viewsA: Share a Hook from one component to another
Talk face beauty? Look there are many ways to do this. Have a similar question on community in English I’ll link here I think you can help. That way it doesn’t work basically because you’re trying…
-
2
votes1
answer360
viewsA: How do I let div overlap the other div?
Although html structure is not ideal. It is still possible to get the expected result! But first we have to understand why it does not work... Come on! First we have to understand that the z-index:…
-
0
votes1
answer93
viewsA: Remove tag from angular component 6
Welcome to Glauco! :D Dude it’s pretty simple you can change the component selector "although not recommended" in the Style Guide import { Component } from '@angular/core'; @Component({ selector:…
-
2
votes2
answers261
viewsA: Remove Button for javascript
Good afternoon friends! It is not yet possible to change the dialogs generated through the window follow HTML spec Trying to solve your problem you can use some lib to generate dialogs through the…
javascriptanswered codermarcos 378 -
0
votes1
answer42
viewsQ: Perform tests based on component Lifecycle
I need to run the tests following the Lifecycle Angular. I couldn’t identify any tool or way to do this. Basically it would be calling tests based on Lifecycle. Follow simple example:…
-
0
votes3
answers523
viewsA: How to make a panel with double information with <tr>
Dude, basically you add an extra column. The css I added was just to look similar to your image. Remember th and td do not respect only the margin td respects padding preferred to align elements…
-
1
votes1
answer58
viewsA: Fade effect on text when scrolling page
Dude I got a similar result, see if it’s something like this! body { background: #f8fafc; font-size: 20px; font-family: "Crimson Text", serif; color: 444; } h1 { padding-top: 100px; font-weight:…
-
0
votes2
answers835
viewsA: Date range
Good afternoon friend :D When you subtract a date from another you get one timestamp just convert it to the desired format follows practical example: Explanation: First I get the inputs at the…
-
2
votes4
answers1088
viewsA: Add Word Links to a Text
Explanation: create ink Receives a word and inserted in a Templete String from a tag to creatArrayDeLinks Take the element text using textContent Performs a separation of the string by space,…
-
0
votes2
answers86
viewsA: How do I copy and paste to a screen?
Man if I understood correctly it would be something like this right? // Não permitir o copy/paste $('input').bind('copy paste', (e) => false); // Permitir $('.copy_paste_on').unbind('copy…
-
0
votes3
answers527
viewsA: I can’t put the icon on the right side of the screen, inside a div
You can tag it <i> within the tag <p>. Like <i> has inline display it stays in the same line. To move the footer to the right just change its position to relative and add right: 0;…
-
1
votes2
answers41
viewsA: JS and HTML - Quota Publishing
var div = document.getElementById("quote"); var quotes = [ { text: " HEY ITS ME", }, { text: " HEY YOU TO", } ]; function random() { var quote = quotes[Math.floor(Math.random() * quotes.length)];…
javascriptanswered codermarcos 378 -
1
votes2
answers801
viewsA: How to get X and Y click on Canvas
Friend created a Click method, which is called on the canvas click. In it I get the click event, in this event I check if it contains pageX or pageY, if contain do not need to perform the…
-
1
votes2
answers1376
viewsQ: How to simulate input script by Javascript (without Jquery)
I need to simulate an input as if someone was typing this includes the call of the events Keyup, Keydown, Keypress, Change etc... Javascript only even without Jquery.
-
1
votes2
answers246
viewsA: Display contents of the "title" attribute next to the option element
I don’t think javascript is necessary in this case. it would also be possible to use Javascript but I think it’s simpler not to use it right now. Solution Use a pseudo class in css, in this case the…
-
1
votes1
answer994
viewsA: put one div inside another!
Dude I see an HTML error in your clear there should be a class <div class="clear"></div> or if you prefer to use inline even add style instead of class <div style="clear:…
-
1
votes2
answers307
viewsA: How to make the angular recognize an ng-keyup event created dynamically in the element
This is because he has rederized the final html. You could try twisting instead of ng-keyup add the DOM event itself onkeyup in this way: function link(scope, element, attrs, ngModel) { if…
-
1
votes2
answers913
viewsA: Sort data by date in Firebase
Guy the idea would be to save, date on timestamp in a new property for example: const data = new Date(); const meuObjeto = { data: data.toLocaleDateString(), timestamp: data.getTime() }; So you can…
-
1
votes1
answer536
viewsA: Create Angular and Firebase reports
It had an application with angular and firebase as well but it was a PDV printed the requests as follows had a class or template for each type of request in that class had two methods one to draw…
-
2
votes4
answers2259
viewsA: How to display a Javascript message in an Asp.net MVC view?
Friend the error is that you have to define an event to that action I think the correct would be in the ready of the page ! Well I guess that’s what to be sure I’d need to see the project ! I hope I…