Questions tagged as 'javascript'

2
answers

Check if operating hours are in the chosen time range JQuery / Javascript [duplicate]

How can I check if the operating_table is within the selected range? Example: a bar works from 8:00 am to 1:00 p.m., a user chose the time interval from 12:00 to 9:00 p.m., how to check if this bar is open in that chosen time range? var inte...
asked by 07.06.2018 / 20:16
0
answers

Use the DB increment function to update from an array

It is as follows: I have an array in javascript with the id that I want to increment using DB::table('team').increment->('points', 1000). How should I make my controller take this array and increment only the ids that are in it?     
asked by 07.06.2018 / 23:21
1
answer

Video Tag using youtube Stream

Would there be any way to include the youtube video without using the iframe provided by the API in the Incoporation method? I'd like to insert into a tag, for example. I have the following code below: <video id="meuVideo" controls au...
asked by 31.05.2018 / 02:46
0
answers

How to create routes in an ionic application using google maps?

I'm developing an ionic application that has the following functionality ... Take the user's current location and the location of an item in the list (Let's say it's a mall) and create a route between the user and the mall. I have no idea how...
asked by 31.05.2018 / 06:05
0
answers

Access variable out of function [duplicate]

I need to access the variable vm.lat outside the POST below. What could I do to achieve? var lat var lng $http.post(url) .then(function(resp) { vm.enderecoFull = resp.data vm.geometry = vm.enderecoFull[0].geometry vm.loc...
asked by 31.05.2018 / 04:34
1
answer

Show data from an ajax function, in another ajax function

I have an ajax function that looks for the code of all the companies and goes in the other ajax function to look for the employees. In order for the page to not crash when doing this search I'm using the async: true attribute, but in d...
asked by 04.06.2018 / 16:13
1
answer

Changing the table field

I have this table that I did as a test where I would like that when the user schedules a schedule in a possisao he could come with a letter and put in the place of the one and the color of the cell type A = green B = black C = blue but I'm not a...
asked by 04.06.2018 / 17:02
0
answers

Uncaught TypeError: Error in Fade In

Hi! I am using this code to do a fade in. The fade in works. The problem is that if you click something before the fade in finishes completely, this error appears, continuously! And it never ends! "code.js:366 Uncaught TypeError: Cannot read...
asked by 05.06.2018 / 19:17
1
answer

Error reading variable using WeakMap

var person = { nome: 'Bruno', sobrenome: 'Coelho' }; nomeMap = new WeakMap(); function nomeCompleto(){ nomeMap.set(this, { nome: person.nome }); nomeMap.set(this, { sobrenome: person.sobrenome...
asked by 29.05.2018 / 22:21
1
answer

Change button class after filling in all fields

I have a button that needs to be enabled when the user finishes filling the fields, however he needs to change the class when it is enabled ... When the button is disabled I would need that as long as the fields are not filled the button stay...
asked by 30.05.2018 / 15:46