Questions tagged as 'javascript'

1
answer

React dynamic array in imgs

I have the following function create dynamic array. funcListMap(_ref) { let list = []; _ref.map((i) => { list.push( <ListItem key={i.id}> <h1>{i.id}</h1> <span>{i.descricao}</sp...
asked by 21.10.2017 / 02:32
1
answer

Set DIV between page head and footer

Well, I have a div that stays fixed when scrolling the page, but I want it to scroll again with the page before it reaches the wall. The code below causes that when reaching the height of the scroll 300 the div is fixed. The problem is that when...
asked by 25.05.2017 / 18:02
2
answers

How to update select with jQuery

Hello. Home I have a select <div class="seletor"> <select name="numeros" id="numeros"> <option value="1" selected="selected">1</option> <option value="2">2</option> <option value="3"&...
asked by 22.05.2017 / 22:16
1
answer

How to create javascript array object inside a FOR?

I need to pass an array object as follows, to api: [paulo = 1, gustavo = 2, amanda = 3,...] I have the following code: $scope.salvarHabilidades = function(pro){ var valores = pro.filter(function(o,i){ return o.habilidades ==...
asked by 24.05.2017 / 21:04
3
answers

Display images side by side using JavaScript / BootStrap

I would like some side-by-side images to be displayed, as the template below, could you tell me the best way to do it? I have tried to do with BootStrap, but I can only make one image appear at a time.     
asked by 15.02.2017 / 02:54
1
answer

Input animations for text and divs when scrolling on the page

I've seen this practice becoming increasingly common, where page elements are "appearing" ( fade-in, slide-in, etc.) automatically when, by giving scroll , you enter a new section / div. I gave a searched , but I did not find what it takes t...
asked by 16.02.2017 / 15:46
1
answer

Get information from an "Object"

I'm using an API to get some movie data, but I wanted to get only the "name" information of the genres, which are "Action, Adventure, Comedy, Fantasy". But the number of genres is not always the same, sometimes they are 2, 3 .. genres: [ {...
asked by 26.05.2017 / 23:29
1
answer

How to show 5 in 5 hidden elements?

I've recently been hit with a question, for which I have to manipulate a number of elements hidden through display:none; which is set on the span that surrounds all of them. Example <html> <head> <sc...
asked by 15.02.2017 / 23:06
2
answers

Uncaught error TypeError: $ (...) .live is not a function

Good afternoon, Clicking on a tab in my project returns the error: Uncaught TypeError: $ (...). Live is not a function. Code: function menu() { $('.nav-toggle').live('click', function() { if($(".nav-aberta").hasClass("side-fe...
asked by 26.05.2017 / 21:00
1
answer

About Local Storage [closed]

Good evening! I'm doing a job for college that is an online store. Well, I was not able to get the buy button to send to the shopping cart page until a friend told me about Local Storage, the problem is that I've never seen anything about it, ca...
asked by 26.05.2017 / 05:36