Questions tagged as 'javascript'

1
answer

Error: It looks like you called 'mount ()' without a global document being loaded

I get this error when I run my tests. import { Meteor } from 'meteor/meteor'; import React from 'react'; import ReactDOM from 'react-dom'; import ReactTestUtils from 'react-addons-test-utils'; import { mount } from 'enzyme'; import { chai, as...
asked by 11.10.2016 / 18:49
2
answers

Timer + JavaScript Semaphore

I'm making a timer that is a traffic light. At the moment of entering the values, for example 20 minutes are entered, and the green background should be. When 5 minutes remain, it should change to yellow, and when it is left in 0 min, it should...
asked by 06.10.2016 / 15:42
2
answers

Problems with Gulp Watch in Linux

I have a problem with Gulp watch rather particular. I am working on Linux and I am using Browser-Sync with Gulp, my intention is that when I modify any file of my project I recharge the browser and the devices that I have visualizing autom...
asked by 07.10.2016 / 14:51
0
answers

I can not implement svm multiLabel class in JS

I found this code var trainSet = [ { input:'What is your name',output: "name" }, { input:'how are you',output: "fine"}, { input:'please tell your name please',output: "name" }, { input:'your name please',output: "name" }, { input:'what is...
asked by 17.10.2016 / 01:05
1
answer

Get arrival time google maps api javascript

I have a map which calculates with this method of google directionsService.route, with that method a response is returned. I just want to be able to get the time calculated by google. var directionsDisplay = new google.maps.DirectionsRen...
asked by 27.09.2016 / 23:02
2
answers

Problem with ng-repeat, bad behavior when applying filters

I have the following problem. When presenting a collection of objects, I need to set a limit of 8 entries. The truth is that using% co_of angular% makes rare things and always brings me a wrong amount and different from the one I want, also m...
asked by 28.09.2016 / 21:22
1
answer

Search without reloading the page [duplicate]

I need to perform a Facebook search, that is to say, by typing the name X in an input that is filtered from a database query without reloading the page How should I do it I'm working with java and postgresql database     
asked by 13.10.2016 / 03:08
1
answer

jQuery UI Timepicker

Good, I would like default to show me the current time, I do not know how to do, I have the grid with the hour and minute with PM / AM to choose, if I click "Now", if you give me the current time. But I would like the current time to be shown by...
asked by 30.09.2016 / 22:07
1
answer

Avoid going back to the login screen with user logged in Angular-Fullstack generator

I am developing an application with the generator Angular-Fullstack by Yeoman. This framework automatically generates a login with the protocol OAuth . To access the system, it is mandatory to login, so the main page is the login. Once the...
asked by 03.09.2016 / 17:12
1
answer

Set mark on google maps

I am working on a project that reads a database and adds marks on a map (these marks are variables that change every 20 seconds). The problem is that it only shows me the last brand I make, and not all. I know I have to do new google.maps....
asked by 04.09.2016 / 22:04