Questions tagged as 'javascript'

0
answers

Press tab to search

Does anyone know how I can when the user places my site in the Google Chrome bar, the browser displays the message "Press tab to search for [site address]" and then when the user clicks on the ENTER, he passes the parameters so? query = [text]...
asked by 25.08.2018 / 15:32
0
answers

change a property of an array of objects without looping

Good morning, I have an array of objects with several properties and one of them is the date property that I would like to convert. But I would like to know if you have any way to do this without using a loop. var arr = [{data: 2018/01/02, nom...
asked by 21.08.2018 / 16:14
0
answers

Changing CSS using Javascript

To apply accessibility features to a site (contrast / major font / smaller font), I created alternate .css files with the formatting I wanted, and called those files via javascript. However, especially when the connection is slow, when the funct...
asked by 21.08.2018 / 17:11
0
answers

Array divides itself when the elements inside it go from 100 during the api post

I'm trying to make a post for my api, but when the amount of items in my array exceeds 100 it splits up like this: Butmyapionlyacceptsthisarraywhenitlookslikethis: WhatshouldIdotothearraynottosplit?Callingcodetry{$http({url:$rootScope.raiz_w...
asked by 23.08.2018 / 19:17
0
answers

For does not increment at the end of the loop

What I need is to get all the arrays that are returning to me, and separate them into groups of 5 and the rest into a separate group. In the example I'm going to paste, I have two arrays Array1 = [1,2,3,4,5,6], Array2 = [1,2,3] I need to a...
asked by 23.08.2018 / 19:06
0
answers

Split and Merge PDF on Nodejs using Electron

I would like to know which npms tools are recommended to receive a PDF file of any size and divide it into equal pieces. For example pick up a 40Mb file and create 5 8Mb files. I intend to do this within an application running on the Electronjs....
asked by 16.08.2018 / 21:07
0
answers

Handle JSON file using React

I'm using React for an application and I need to get some values from a JSON API. API sample. { "Meta Data": { "1. Information": "Intraday Prices and Volumes for Digital Currency", "2. Digital Currency Code": "BTC",...
asked by 16.08.2018 / 00:48
0
answers

setState is not working properly

Hello, I'm doing an application in reactnative and I'm trying to set a state but it does not work, can you help me? follows the source (obs the handleClickFooter function that does not arrow the state) import React, { Component } from 'react';...
asked by 16.08.2018 / 03:38
0
answers

NodeJS and PM2, do not arrow environment variables

Hello, Good evening, everyone, I have a problem with setting my environment variables. I have the following json running on PM2: module.exports = { "apps" : [{ "name" : "frontend-homologacao", "script" : "/var/www/html/site...
asked by 16.08.2018 / 01:56
1
answer

Execute function for various items in JS

I have a function that is responsible for updating the values in some <div> , script follows: file.js window.onload = function makeRequest() { var xmlHttp = new XMLHttpRequest(); xmlHttp.onreadystatechange = function()...
asked by 28.08.2018 / 15:36