Questions tagged as 'javascript'

3
answers

Add numbers respecting formatting R $ 00,00

Good afternoon I'm trying to represent a sum that the output value is in the formatting below:    $ 00.00 But I'm having difficulty with decimal place numbers, Instead of the number being $ 15.10 it gets in the format $ 15,1...
asked by 11.01.2017 / 14:25
1
answer

Text effect or paragraph loading [duplicate]

Hello. I've been watching on several sites. Facebook, Dropbox and various frameworks that use css and js an effect that appears before text is loaded. I hope you understand. Thanks     
asked by 03.01.2017 / 02:03
2
answers

Change values of variables in a function through another function?

How to pass parameters from one function to another? Follow the code: <body onload="getfoucs()"> <select id="select_compra" data-limit="3"> <option disabled selected style="display: none">Aaaaaaaaaaaaa</option>...
asked by 03.01.2017 / 22:21
1
answer

Calculation with Inputs in JavaScript

function IBUTG() { $tt = $('[name=tempo_trabalho]'); $vt = $('[name=valor_ibutg_trabalho]'); $td = $('[name=tempo_descanso]'); $vd = $('[name=valor_ibutg_descanso]'); $ibutg = (($tt * $vt) + ($td * $vd)) / 60; $('[name=i...
asked by 10.01.2017 / 18:41
3
answers

Append javascript

I have a modal that opens when I click on a link, in this modal I'm going to type an email that, when I click on add email , will add the email text in <ul> <li> below of the input . I have already made a code that follow...
asked by 12.03.2018 / 19:39
3
answers

javascript object always being created in ascending order

I'm dealing with similar code in a project: var groupedObject = {}; groupedObject['2016'] = {}; groupedObject['2022'] = {}; groupedObject['2014'] = {}; groupedObject['2021'] = {}; console.log(groupedObject); No matter the order in which obj...
asked by 07.03.2018 / 19:23
2
answers

How to select with regex?

I'm trying to format text of the following type 123,345,234 //tem que ficar 123345,234 abc,def,adf //tem que ficar abcdef,adf 123,345,678,abc,qualquer,coisa //tem que ficar 123345678abcqualquer,coisa I need to remove all commas, exce...
asked by 22.01.2015 / 20:10
3
answers

Limit HTML5 Audio Controls

I wanted, if it were possible, of course, that a component <Audio> of HTML5 would just show mute , and the rest would not show up; such as volume , play , pause , etc.     
asked by 30.12.2014 / 18:56
1
answer

Calculate distance between 2 points in Google maps

I do not have much experience with javascript and I have no idea how to get the result of this script and move to a <input text> field. This script calculates the distance and time between two points. So I wanted to take the time an...
asked by 05.02.2015 / 05:07
3
answers

How to share access between policies?

How can I call a directive within a second policy? I have a variable x in directive 1 and I want to access this variable x in a directive 2 so I can say that x (diretiva 1) === y (diretiva 2) .     
asked by 25.11.2014 / 14:03