Questions tagged as 'javascript'

2
answers

Script open only after specified time

I have a script, however it opens as soon as it is loaded. I would like to have it run after 10 seconds and open along with my div, it looks like this: <div id="mame"> CONTEUDO </div> <script> var div = document.getEl...
asked by 06.03.2016 / 22:36
3
answers

How to make language selector

I have a website and I need to put a language selector on it, when the user selects the flag corresponding to the desired language to be redirected to a specific url. <select> <option>Brazil</option> <option...
asked by 23.02.2016 / 18:16
4
answers

CheckBox that selects all

I have a list of several checkboxes, and I wanted the last checkbox to be to select and deselect all the others. Example : if (document.getElementById("all").checked = true){ //selecionar todas } if (document.getElementById("al...
asked by 05.03.2015 / 11:36
2
answers

Function jQuery match, how to get the matches

How can I get matches using the match function? console.log($("COMMANDO database -> run []").match(/COMMAND\S*(.*)\S*->\S*(.*)/g)[0]); In theory I would have to get database , run and what's inside []     
asked by 23.12.2014 / 15:05
2
answers

Click event not working

<html> <head> <title>Notícia</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <a class="noticia" data-noticia=...
asked by 11.03.2015 / 14:28
3
answers

Modifying JavaScript on sites

How far can an end user modify and manipulate everything? As far as I know it's literally everything, but if there is one way to avoid it? Or precaver or simply prevent JS from being edited by Firebug or something ..     
asked by 09.04.2015 / 04:17
2
answers

Generating thumbnails through FileReader

I want to generate thumbnails of images that the user selects. My problem is that one of the images always generates 3 thumbnails Demo here: link     
asked by 07.03.2014 / 22:03
2
answers

How to improve code workflow without using synchronous ajax?

How can I improve this script? The function copiaArea() should get the first return from the array and send it to the windows clipboard, detail: I'm developing for IE, it works exclusively in this function. However, the global var n...
asked by 15.05.2014 / 16:53
2
answers

How to add index in an array

I'm creating a Javascript Array in the following format: series = [{ name: 'Tokyo', data: [7.0, 6.9, 9.5] }, { name: 'New York', data: [-0.2, 0.8, 5.7] }]...
asked by 01.08.2014 / 17:54
2
answers

How to multiply the value of 3 inputs using pure javascript?

I'm trying to multiply 3 fields, the total value will be returned in a new label. But I can not. When I did with 1 field only, it worked: link I even tried to if (isNaN( but it did not work. No error, but it does not work!     
asked by 19.05.2014 / 15:32