Questions tagged as 'javascript'

2
answers

How can I use mouseover to change the background color of a div?

Hello, I would like to change the background color of a div when you place the cursor on it, how do I do that? Div in question [HTML]: <div class='container2'> <div class="MP"> <img class='iconDetails' s...
asked by 21.06.2018 / 00:09
2
answers

Insert date event into a table if page width is less than certain value

What I want to do is that when the width of the page is less than the value shown below it will enter data-tablesaw-mode="stack in the site shown below! I'm new to JavaScript but I need this for a project! Thanks to anyone w...
asked by 22.06.2018 / 11:50
2
answers

Is there any way to format a whole line when finding word on page

Colors & Neutral If highlight of the others, let's say some simple phrases like: Cores do Arco-Íris Cores sortidas Diversas cores e sabores Sem cor, apenas Neutro Preto-e-Branco, neutro Sabão neutro Well, these lines...
asked by 24.06.2018 / 16:07
1
answer

Duplicate element in DOM with JS

I need to add <li> via JavaScript, but when added, from the second addition, it starts to duplicate, triple, and so on, I need to add only 1 element per click. var btn = document.querySelector("#btn"); var ps = document.query...
asked by 22.06.2018 / 16:41
2
answers

Get surplus positions from an array after comparing with another array?

I have a function (in JavaScript) that compares 2 arrays: let diferencas = []; let numD = 0; for (let a = 0; a < dados.length; a++) { if (dados[a].idEmail === results[a].idEmail) { console.log('Repetido!')...
asked by 06.09.2017 / 21:42
1
answer

Can you disable the animation of a Charts.js chart?

   How to disable an animation of a Charts.js chart?   I'm putting together a graph that updates every 300 milliseconds via ajax, but the Charts.js chart animation disrupts the view. the chart assembly code: function montaGrafico(report_o...
asked by 14.08.2017 / 15:22
1
answer

Download file [closed]

you can download a file that is in binary format by js var file = new Blob(['R0lGODlhDwAPAKECAAAAzMzM/////wAAACwAAAAADwAPAAACIISPeQHsrZ5ModrLlN48CXF8m2iQ3YmmKqVlRtW4MLwWACH+H09wdGltaXplZCBieSBVbGVhZCBTbWFydFNhdmVyIQAAOw=='], {type: 'image/...
asked by 10.08.2017 / 02:57
2
answers

Opening dialog () not working

Well, somehow I've made some changes to my code, that is to say instead of using table I'm using a% list_html hierarchy. The code in fiddle is exactly the same as my code inside the system (with the difference that the li are...
asked by 10.12.2014 / 20:22
2
answers

Make daughter div have same fixed parent size

I'm putting together a responsive layout ... My "menucontainer" is fixed ... So its width does not match the size of the site's interface ... Because of this, when the zoom increases, it becomes more fluid. So if I could make every...
asked by 15.12.2014 / 08:01
2
answers

input value with 'find' does not work

I have a list that dynamically incremented with the append of jquery, the list goes something like this: $("#questoes").append( '<li class="questao" data-id="'+questao+'">'+ '<div class="row testes">'+...
asked by 12.11.2017 / 00:34