Posts by Arthur Gabriel Silva Arantes • 51 points
10 posts
-
2
votes1
answer1195
viewsQ: Centralize elements of an SVG
Hi, I have a <g> within an SVG and would like to center its content, basically it would be like this: +-----------------+ x-----------------+ | X | | | | | | | | | | | | | ----> | x | | | |…
-
0
votes2
answers62
viewsA: Greater amount of appearances of an element in an object array - Javascript
People I managed to solve, in case someone one day goes through the same situation: public maisPublicou() { const frequency = this.lista .map(({ autor }) => autor) .reduce((autores, autor) =>…
-
0
votes2
answers62
viewsQ: Greater amount of appearances of an element in an object array - Javascript
Hello, I have a news array(objects) lista: Array<Noticia> = []; From this array I need to find the author who has published the most news. A news has: ID | Title | Tags | Author | Contents. My…
-
0
votes1
answer105
viewsQ: Image in the Primefaces menubar
Hello, I have a problem that is not able to put an icon to the left of the menubar and the menu items to the right, someone can help me? <h:body> <h:form> <p:menubar> <f:facet…
-
1
votes0
answers68
viewsQ: Streamline HTML with JQUERY
Hello, I’m having difficulties in a JS activity, I must make the last publication should be displayed first, already tried Sort, tried Sort with Function and nothing resolves, I can change the order…
-
0
votes0
answers24
viewsQ: Date sorting with Jquery
Hello, I need to sort my news so that the last post is at the top, the difficulty I’m having is where I should organize my array... This issue is different from sorting by date pq HTML is not…
-
-1
votes3
answers187
viewsA: Comparison of dates in Javascript
I got find the answer on Github, follow the instructions: <script src="https://rawgit.com/Lautert/helpers/master/javascript.helpers.js"></script> var d = new Date();…
-
-1
votes3
answers187
viewsQ: Comparison of dates in Javascript
Hello I need to compare the current date with the one typed by the user but the seconds prevent this verification: var data_publicacao = new Date($('#frm-data').val()); console.log(data_publicacao);…
-
1
votes1
answer577
viewsQ: I’m trying to create a Mysql Trigger but is giving syntax error
CREATE TRIGGER comissao ON tb_Pedido FOR INSERT, UPDATE, DELETE AS BEGIN DECLARE v_codFuncionario INT DEFAULT NULL; DECLARE v_dataPedido DATETIME(3) DEFAULT NULL; DECLARE v_valorComissao…
-
0
votes1
answer111
viewsQ: Difficulty printing lines from a table using PHP and MYSQL
Hello, I’m making a CRUD with PHP and MYSQL and I divided the page into several blocks of code, each with a CRUD of each table of my BD, all are working perfectly except the one of the code below:…