Questions tagged as 'javascript'

2
answers

Hide navbar when item is clicked

I'm developing a site whose menu is navbar with dropdown of bootstrap 4. When I view the site on a smaller screen, the nav is replaced by the button burger and is only "activated" when this button is clicked. However, I want it to be "disabled"...
asked by 17.08.2018 / 23:38
0
answers

ACL doubts with node.js!

I'm trying to implement Authorization (ACL) using the npm plugin "node_acl" in a Node.js application with express, I'm trying to implement as explained in the documentation .. however I'm having difficulty applying this in practice .. I have the...
asked by 18.08.2018 / 02:12
0
answers

Fullcalendar can not make the call

Good evening everyone is using the template limtless in my application laravel but I can not use the part of Fullcalendar I'm trying to use this calendar: Internationalization but I can not call it in code type: var calen = new fullcalenda...
asked by 18.07.2018 / 03:48
1
answer

JavaScript - window.innerHeight - Safari Browser

The window.innerHeight does not work in the Safari browser. When I scroll on the page and the element arrives at a certain place on the page, it adds a class to HTML, in all other browsers that code works. However in Safari I could not make t...
asked by 26.08.2018 / 22:57
1
answer

How to return the data obtained from a Request out of the scope of the function?

I'm creating a javascript code to check temperature: const tempo = () => { const axios = require("axios"); const TOKEN = "#myToken"; axios.get('http://apiadvisor.climatempo.com.br/api/v1/locale/city?name=Joinville&state=S...
asked by 28.08.2018 / 02:09
1
answer

I can not execute the jquerry loop

I need to create a loop for msm to feed a graph. while($(".previsto").eq(0).text(),){} I need to get these values eq (0), eq (1), eq (2) ... $(".previsto").eq(0).text(), $(".previsto").eq(1).text(), $(".previsto").eq(2).text(), ...   ...
asked by 27.08.2018 / 21:21
0
answers

Pass data by context (HOC) React

Well, I'm doing a forms system on react. I'm using the context to pass some information to the child components. The project structure is as follows: / context - Where I have saved the context import React from "react"; const FormContext...
asked by 05.08.2018 / 00:06
1
answer

Reapprove a function

Can anyone help me with how I can reuse the functions to simplify the code and make it cleaner? function bonusPL(){ var bonusPL = document.getElementById("bonusPL");// seleciona o elemento pai var checkBoxe = document.creat...
asked by 05.08.2018 / 02:05
1
answer

Is it possible to put the contents of a "thymeleaf object" inside a "variable" in HTML?

To contextualize: I have a "log" object, which was declared in an HTML page through thymeleaf: <html xmlns:th="http://www.thymeleaf.org" th:include="layout :: page"> ... <form class="form-inline" action="#" th:action="@{'log/'...
asked by 06.08.2018 / 16:42
0
answers

create login system with gamesparkapi

I created a file called connection api.js my problem is that I can not get my site when the login password is correct send me to a certain page and if it is wrong send me to another page follow the code var pass; var user; module.exports =...
asked by 05.08.2018 / 16:06