Posts by Carlos Henrique • 46 points
3 posts
-
0
votes2
answers147
viewsA: Query and display JSON data according to url parameter
Instead of using if (window.location.href.indexOf("junho=2020") !== -1) { //Condições aqui } You can try if (window.location.pathname == "/junho=2020") { //Condições aqui }…
-
2
votes3
answers848
viewsA: Return divisible by number in an array
function buscarDivisivelPor(array, num) { for(var i = 0; i <= array.length; i++){ if(array[i] % 2 == 0){ return array[i]; } } …
-
1
votes2
answers70
viewsA: Fadein and Fadeout in sequence
$(document).ready(function() { carregar(); function carregar(){ var quant = $("#conteudos").children().length; var contador = 1; …