Questions tagged as 'javascript'

1
answer

JavaScript Clock increase for game

I am creating a team in JS to count the time the user will take to complete the task. I am using setInterval() to run the team but I am not able to increment to more than (1) the value of min() . This is my code: const time = {...
asked by 31.08.2018 / 23:02
1
answer

Simple search FIREBASE

I'm testing on firebase and I'm having trouble recovering bank data with JS. The table structure is as follows: Scores - key - name - points - key - name - points What I want is to return the s...
asked by 05.09.2018 / 18:58
1
answer

Collapse in header with pure javascript

I would like to make a header that when scrolling down the scroll bar, it compresses its contents. I have the following script so far. window.scroll(function() { var scroll = window.scrollTop(); var element = document.getElementById(...
asked by 05.09.2018 / 20:23
1
answer

How do I get the result of a JSON where the result is HTML and in Ionic's View render HTML?

I have a JSON where the contents of some fields are HTML, I would like to display the HTML in the view of Ionic already rendered. This is JSON: [{"data":"2018-09-05","categoria":"1","desafio":" \r\n Burp 20x1<\/li>\r\n Teste 30x4<\...
asked by 05.09.2018 / 19:05
2
answers

Error doing the sum with javascript

I have a code that dynamically generates several inputs . Also I have a function that should add the value entered into the inputs . The problem is that instead of adding it concatenates the fields. The strange thing is that I did the same pro...
asked by 06.09.2018 / 13:32
1
answer

Custom validation function html5

I would like to know if there is any way to override the function that validates a field in html5, I note that browsers elegantly implement a floating alert, I want to have a custom test in which I check CPF and other data not simple. I basic...
asked by 05.10.2018 / 22:14
1
answer

read data from a url and download

Hello, I need to download several urls, I execute the code below inside a for, but only works for the last url. var anchor = document.createElement('a'); anchor.href = 'http://e-gov.betha.com.br/e-nota/teste'; anchor.download = 'http://e-gov.b...
asked by 08.10.2018 / 17:01
1
answer

How to save the user session to a site stored in AWS - S3?

At AWS we can use the S3 service to provide static web sites. Seundo at documentation stands for static not using backend like php, asp.net, etc. However, I can dynamically load content through javascript get requests, consuming end-points...
asked by 23.08.2018 / 05:11
1
answer

Change font size dynamically javascript

How to increase and decrease font with each click? I was looking for ways to do this dynamically, but I just found an example in jQuery here , but my project does not use jQuery, how can I do this using pure javascript? My basic yet static...
asked by 25.08.2018 / 05:42
2
answers

Insert item in html list, using javascript

Hello, I want to insert an item (li) into an html list (ul) This item is an object, or property of an object. PS: I want to appear for example a list containing this data of the object that I created function produto(nome, tipo, preco, des...
asked by 23.08.2018 / 05:13