Questions tagged as 'javascript'

1
answer

How to check if a file has been selected after it is still in the directory in JavaScript

In my application I use the javascript framework as javascript, and to select the files I use the following button: <md-button class="md-accent md-raised button-arquivo-margin" ng-disabled="vm.controladorRequisicao.requi...
asked by 05.07.2018 / 17:13
1
answer

What is the best way to make a function of a "Node" file be called on my HTML5 site?

I'm doing a project of a simple music player using ElectronJS. For this I'm using a library that plays MP3 files (play-sound), how can I call this function inside my HTML? Do I need to create another file just for sound reproduction or can I p...
asked by 10.10.2018 / 02:04
2
answers

How to tell if a person has clicked on a DIV or not

I have an ad and I want to know if the person has already clicked on the ad in the last 2 days. If it has already clicked, it does not appear, but if it did not click, it still appears. Something like this: <!DOCTYPE html> <?php...
asked by 14.10.2018 / 00:23
1
answer

Find event executed

I made the following command to display a loading every time I submit a project form. $("button[data-noPreload!='true'][type='submit']").click(openPreloading); function openPreloading() { $("#icoCarregando").fadeIn(); } I found this oth...
asked by 15.10.2018 / 14:28
1
answer

Open android app via php

I have a web system and would like to call / open an android app installed on a tablet via a button on my system. Is it possible via php, javascript or html? Thanks,     
asked by 03.08.2018 / 21:30
1
answer

"Switch" command enters "default"

For any value you enter, the result is always "None of the alternatives", where is the error? Follow the code: <body> <p>Clique para exibir...</p> <!-- <button onclick="myFunction()">Clique aqui</button>...
asked by 05.08.2018 / 20:43
1
answer

bringing the p tag to the front of a div

I have the following code: $("[data-ripple]").hover(function(e) { var $self = $(this.parentNode); var $color = $(this).data("ripple"); var $divServicos = document.getElementById("div-servicos"); if($self.i...
asked by 06.08.2018 / 02:17
1
answer

Edit the text of a div and its children when clicking

How to edit the text of a div or of your children by clicking on the text with JavaScript or jQuery ? Example, by double-clicking Text Here you can change the text and / or delete it #alterar {background:#e3e3e3;padding:15px...
asked by 21.08.2018 / 03:13
1
answer

Google Maps - Set User Zoom

I have this code down with the Google Maps API using several places defined within Javascript. My problem is that I have more stores to add and are scattered all over the state, so I want it when the user opens the page, get their location and p...
asked by 21.08.2018 / 20:44
1
answer

___ ___ Do erkimt the cumulative value in the loop ______ qstntxt ___
%pre%

I need to get the next value adding the former to have a build-up.

    
______ ___ azszpr325514
%pre%

To add integers use the parseInt function. Full Example:

%pre%     
___

var previsto = []; for(var i = 0; i < $(".previsto").length ; i++) { previsto[i] = $(".previsto").eq(i).text(); } I need to get the next value adding the former to have a build-up.     
asked by 28.08.2018 / 16:02