Posts by Vitor Hugo • 55 points
6 posts
-
1
votes1
answer1167
viewsQ: Filter with Node.JS
I have a list of items saved in a Mongo collection, I would like to know how to filter the original array. Follows the code api.filtra = function (req, res) { model.find() .then(function(itens) {…
-
0
votes1
answer822
viewsQ: Create button to advance video
I tried to create a javascript function to allow you to skip a few seconds in a video, but when you click the video button it just starts again. var video = document.getElementById("video1"); var…
-
0
votes0
answers53
viewsQ: Limiting event execution and listening to events
I need to limit the number of times a button is clicked, below the code of it $(".add-produtos").on("click", function(){ for(var z = 0; z < 17; z++) { var testar = produtoObj(i++); //produtoObj é…
-
0
votes1
answer69
viewsQ: Using . Sort in Literal Object
To avoid replicating the same code in multiple files and even more than one place in the same file, I transformed my function that rendered products in the literal object below: produtoObj =…
javascriptasked Vitor Hugo 55 -
2
votes1
answer130
viewsQ: Rearranging product lists with Javascript?
I wanted to know how to change a product list. I have the products in a Json, and would like to implement a function to reorganize the products by Mais recente, Maior ou Menor preço. JSON…
-
2
votes2
answers1089
viewsQ: Filter with Jquery, Json and Input
I have a list of inputs with type checkbox, with values that are loaded from a JSON file. I wanted to know how to make a filter, so that when clicking on a certain checkbox, the products (which are…