Questions tagged as 'javascript'

1
answer

Snake animation in text with SVG

I'm trying to reproduce the same effect someone did here - > link , this frame is animated by scrolling, so you need to scroll down a bit until a text with a snake animation will appear. I'm trying to play this animation, but I'm having a...
asked by 21.05.2015 / 04:45
3
answers

Could anyone explain the term "Specification pattern", applied in Javascript?

I did some research on the net, found this website with valuable information. I work a lot with conditionals using javascript, see an excerpt from my function that receives radiogroup as a parameter and verifies whether it was selected yes or...
asked by 18.08.2015 / 13:56
2
answers

JavaScript decimal approximation [duplicate]

What is the reason for the behavior below? Why not 3.3? I am running the JavaScript console and are returning this result. Number(1.1) 1.1 Number(1.1) + Number(1.1) 2.2 Number(1.1) + Number(1.1) + Number(1.1) 3.3000000000000003 Number(...
asked by 12.11.2015 / 20:45
1
answer

Animations in high quality

We all know that animations on the web are a bit unfriendly to the eye, when you open a side menu, either in mobile or desktop , you can only see part of your movement, giving the impression of a component static without life, even...
asked by 09.03.2018 / 14:09
4
answers

Insert the paragraphs of a JSON file into a DIV

I have a file json that in its content it contains paragraphs . These paragraphs are separated by \n but when I insert content the paragraphs are not separated and instead of line break I have a space in DIV . In my view my soluti...
asked by 12.12.2013 / 13:48
4
answers

How to implement a textarea in a responsive way?

I want to use a <textarea> , but instead of using rows="4" cols="100" , I wanted to use something like this: style="width: 80%" to make the layout responsive. But since this does not work, that is, use the size at 80% bu...
asked by 14.02.2014 / 13:14
3
answers

Is it possible to get timestamps with fractional millisecond precision?

I have to calculate the runtime of a javascript function, I have my code ready and working, my only problem is the getMilliseconds() limit that only goes to 999 and the method execution is extremely fast, so it would need more homes....
asked by 26.03.2014 / 18:46
2
answers

JavaScript Encryption

On my site I use the Facebook API, via ACCESS_TOKEN . This 'key' of access to everything that the corresponding application can provide, that is, it is not feasible to leave it public. In view of this, I would like to know the best way to...
asked by 09.03.2014 / 18:36
1
answer

How / why to do variable chaining with operator = (equality)?

Sometimes I come across these statements threaded in source some libraries and there are usually many chained statements. For example: var foo = foo2 = foo3 = 'foovalue'; However I have never been able to understand the meaning of this, muc...
asked by 28.02.2015 / 23:11
4
answers

Get complete number of an input

In <input> , I have the following value:    00001545455 When I retrieve the same with Javascript , it comes without the first 4 zeros. Can anyone help me? I'm already passing it on to the function I'm using. The problem...
asked by 12.03.2015 / 17:18