Posts by clone por • 97 points
13 posts
-
0
votes2
answers47
viewsA: Open Modal with Delay and After Closed No More
$(window).on('load',function(){ var delay = 1000; setTimeout(function(){ // puxa o item no localstorege let janela= localStorage.getItem('janela'); //verifico se e igual a…
-
-2
votes1
answer55
viewsA: How to organize the values of an array in a table using Javascript
function separador(users){ let temp={}; let newarray=[]; //inicia um foreache nos users users.forEach( object => { //verifica se ja existe …
-
1
votes1
answer164
views -
1
votes1
answer81
viewsA: Delete the clicked image from the Storage location
For what you said one of the solutions would be this add onclick="removeimg(this)" img when to show and create this new function function removeimg(el){ //prgar src clicado var src = el.src; //prgar…
-
0
votes1
answer30
viewsA: Blink on the background and color of the text
I don’t know if it’s the best way : setInterval(function (){$(".laranja").css({function (){ this.switch = !this.switch; this.color = !this.color; //Definir a cor do background bg=this.switch…
-
1
votes2
answers36
viewsA: Calculate broken numbers
Swap the comma for the dot var carga_adicional = parseFloat('25.00'); var carga_parceiro = parseFloat('39.90'); var adicionais = parseFloat(carga_adicional + carga_parceiro);…
javascriptanswered clone por 97 -
0
votes3
answers75
viewsA: how to make Submit be enabled after the text value is greater than x dynamically?
If you use Jquery you can add this codic $('#btn').disabled=false; if you do not use add this code: document.getElementById('btn').disabled =false Edit: it is complicated to understand your…
javascriptanswered clone por 97 -
0
votes1
answer101
viewsA: random image and
I don’t know if I understand your question very well, but from what I understand you want the new result when reloading the page to be different from the previous one if this is the test <?php…
-
0
votes2
answers236
viewsA: Swap image with onclick - HTML and JS
<img src="https://i2.wp.com/static3.mangalivre.com/capas/aP9npfL-OIarDT5hIOek-Q/7794/external_cover.jpg?quality=100" class="checkbox-7" onclick="changeImg(this)"> …
-
0
votes1
answer64
viewsA: Organizing an array based on a field
There was no way I could ask because n I have enough point , I had to give a small change because I did not have the object with the data however and only pass the array to object ve if this meets…
-
0
votes3
answers85
viewsA: Place one array inside another
good morning a very simple way of doing this and $a1['cores']=["vermelho","amerelo","preto"]; $a2['favoritas']=["amerelo","preto"]; $a2['favoritas']['cores']=$a1['cores'];…
-
0
votes5
answers266
viewsA: How to create a function that repeats a certain value
I did it in a very simple way using your own example var valor = "palavra" // exemplo var qtd = 2 // exemplo function repete(valor,qtd){ let palavra=''; for(i=0;i<qtd;i++){ palavra += valor+' ';…
-
0
votes1
answer22
viewsA: View gallery on demand
I made this script using jquery n I know if it meets what you want pq n understood right anything tells me that I can change, if php n is ready I can do it too. <!DOCTYPE html> <html…