Questions tagged as 'javascript'

1
answer

Show a div for each option in a dropdown

I have to create a dropdown that will show a div with a button for each dropdown option. For now I have the divs (I have to do more) and the dropdown, but I do not have the JS to show and hide. There will be just one show. <html> <hea...
asked by 06.05.2014 / 16:46
1
answer

Black screen in android emulator

I'm trying to start the emulator by android studio and genymotion but in the two it gets a black screen in the emulator: It may be my graphics card that sucks, but would it have some way to fix it? Or some other decent emulator for and...
asked by 03.12.2018 / 15:07
1
answer

Date field only gets the previous date selected

I am trying to get the date value in the field using the bootstra-datepicker , but it only takes the date selected. For example: if you chose date 04/12/2018 and I choose the date 05/12/2018 it takes the date 04 / 2018 and not the one...
asked by 04.12.2018 / 22:45
1
answer

How to convert json object to array

I'm trying to create methods to filter but from what I understand, it needs to be an array, how do I turn it into an array and access the array's methods? import { DataSource } from "@angular/cdk/collections"; import { EditoriasPage } from "./...
asked by 02.01.2019 / 20:23
1
answer

https.request does not send body if it is the method DELETE

I am making a request to make a DELETE , and I have a problem, when ordering, bodyParams is not passed. Has anyone ever had a similar problem? On the other hand I'm using the expression req.body and req.query . Ne...
asked by 27.12.2018 / 15:14
1
answer

Timer with active session time: Cook time expiration time - autal moment

I'm working with Angular, and when I save the access token in a cookie, I also save (in another cookie) its expiration time (30 minutes). I want to make a timer that shows the user how long he still has to log in, but I'm having some difficultie...
asked by 02.01.2019 / 11:59
1
answer

Get DIV through a custom attribute [duplicate]

I have several DIVs like the one in the code below. <div class="col-md-10" ordained-field="0"></div> How do I get all by the attribute that I created ordained-field     
asked by 03.01.2019 / 10:32
1
answer

update the div with the checked-in checkbox value

Let's get right to the subject, thank you in advance. const inputs = [...document.querySelectorAll("input[name='nomes[]']")]; const res = document.getElementById("resultado"); inputs.forEach(x => x.addEventListener("change", ()=>...
asked by 30.11.2018 / 16:20
1
answer

CSS Customization with jQuery

I'm developing a website and needed a help on a question: I am making 6 cards with some titles and when I click on a card, it makes a request Ajax fetches some information from the service just below the specific card. This is just a brief...
asked by 29.11.2018 / 15:08
2
answers

How to get CSS values from one element and apply it to other elements. Stick Footer

I'm using Ryan Fait's Stick Footer solution , but I wanted to leave it making it more dynamic using JavaScript, allowing the height of the footer to automatically calculate the other values of the CSS properties of the other elements. It can be...
asked by 03.06.2014 / 16:30