Questions tagged as 'javascript'

0
answers

Rename a variable / class with Yeoman

Get Prompt data and use it in the templates code I'm starting to use Yeoman and I have a question I ask the user the name of a class through the Prompt this.controllerName = await this.prompt({ type: 'input', name: 'cont...
asked by 18.12.2018 / 17:23
1
answer

Pick up the mp3 audio length

I have the following script, in the length field I would like the duration to be given automatically, how can I do it? Following script: // External Files: // https://api.html5media.info/1.1.8/html5media.min.js (enables <video> and...
asked by 27.10.2017 / 17:14
0
answers

Angular 5 update with forEach correct only in the first items

I'm trying to run two functions, calculoDes() and desempenhos() , in Angle 5, but strange behavior occurs as a result. The first function calculates in some phases, always generating an object Array for the next step. The steps a...
asked by 09.12.2018 / 01:28
0
answers

Center object STl

I'm using Three Js to render and display an STL object in the browser from a file-type input. window.addEventListener("load", function () { "use strict"; var w = 400, h = 300; var renderer = new THREE.WebGLRenderer({ alpha: true }); renderer...
asked by 09.12.2018 / 21:31
1
answer

How to put javascript variable value in CSS?

I have a code on the site style page (css) to make an animation, but the animation time should vary according to a variable that is in javascript, how do I get the value of this variable to enter into my css code ? css div.progresso { a...
asked by 10.12.2018 / 00:04
3
answers

Global variable in JavaScript

How to make a global variable in JavaScript? I need the variable that was declared in one function to work in another function. Example: JSFiddle $("#div3").click(function() { var fill = "a"; }); $("#div2").click(function() { ale...
asked by 12.09.2014 / 00:10
1
answer

Updating date and clock

I am creating a clock from an informed value, the problem is that the clock is not being updated. The other problem is that in the inverted view, the month is coming first than the day. What am I doing wrong? This "Today" value appears cor...
asked by 07.12.2018 / 13:20
1
answer

Red item on screen prevent submitting - Javascript / Jquery

I have a view with 3 divs and 20 input number on each line of my div and a input submit . Each line comes from my bank. (For this example I will use only 3% with%). These my inputs number are as if they we...
asked by 07.12.2018 / 14:07
0
answers

Value doubling after ticking the second toogle button

I'm having a problem marking the toogle button. What happens is as follows, I created a function that captures the items that are marked TRUE on the toogle button, and pass them as a parameter to the next screen, along with the quantity, and the...
asked by 28.11.2018 / 21:34
1
answer

How to allow an App to send notification

Hello, I'm developing an app and before the person's login, I ask the user for permission to locate it, this is already ok, but I need to also put a permission to send notifications and I'm not sure how do. Could someone help me? this way:...
asked by 28.11.2018 / 21:00