Questions tagged as 'javascript'

1
answer

help with for loop, with variable approaching 100

I'm doing a work with images and I have the code below: var tempoTransicao = 5; var quantasImagens = $("ul.slider li img").size(); var tamanhoIntervalos = Math.round(100/quantasImagens); var t = 0; for (i = 1; i <= quantasImagens; i++) {  ...
asked by 24.10.2017 / 18:21
1
answer

Nodemon and NodeJS

I'm learning nodejs and would like to know how to add the nodemon so that every time I save the project the same update my webpage. I installed the nodemon globally and put it in the package.json call { "name": "meuprojeto", "version":...
asked by 03.12.2017 / 21:35
1
answer

Field to Per Legend File URL in Player

I'm working on a WebPlayer and I need to create a field where User can insert the URL of its caption, / em> of TRACK tag ... I think of input but I do not know how to proceed in JS ... I need an INPUT where you put...
asked by 04.12.2017 / 22:50
1
answer

Stone, paper, Scissors [closed]

Beginner - Code is an interaction like the game stone, paper and scissors that should happen in the alert of chrome pages, problem is that when I open the html does not present me nothing. <script> while(true){ jogador1 = prompt("Jo...
asked by 27.10.2017 / 03:29
1
answer

Execute javascript function through the third window

I have a grandfather window, through it I open a modal parent window and through this modal I open a second modal window child. I'm trying to do a click with trigger ('clique') in the grandfather window, but I'm not getting it, it only wo...
asked by 26.10.2017 / 23:46
1
answer

Functions with same parameter [closed]

I have two functions that are triggered from the product code, my functions are used to complete the next fields, but I can not use join. The correct one would be to create a separate file for the second function since they use the same param...
asked by 27.10.2017 / 16:28
1
answer

Header with array and modal

So I have a page that shows a total of 8 divs per pagination, these divs have small information inside, they have 2 button that allows deleting and having more information about what is inside the div that in the case and the data of a phone numb...
asked by 01.12.2017 / 15:27
1
answer

Copy Object Property to another

I have 2 objects: var a = { "propriedade_um": "1", "propriedade_dois": "2" } var b = { "propriedade_tres": "3", "propriedade_quatro": "4" } How do I get the propriedade_um of t...
asked by 01.12.2017 / 15:09
1
answer

Problems with ajax request

Well, I'm trying to perform a simple ajax request, but the called content is not being displayed. How can I resolve? var xmlhttp; function callContent(){ var mainContent = document.querySelector(".main-content"); xmlhttp = new XMLHtt...
asked by 01.12.2017 / 14:17
2
answers

A different color for each column highcharts

I have a horizontal bar chart of Highcharts, I would like each bar to have a color, but I only set them with a series using a bank query, in which case I can only pass one color to the whole chart. I searched in various places, I did not find...
asked by 01.12.2017 / 19:12