Questions tagged as 'javascript'

1
answer

Manipulating elements with page scrolling in JavaScript

I would like to display or hide the menu according to the scroll of the page, I tried to develop as follows: window.scrollTo(function(){ if (window.scrollTo() > 212) { // se for maior de 212 pixels some o menu document.getEl...
asked by 14.01.2016 / 17:16
2
answers

How to make full-page vertical slides that roll with the mouse scroll? [closed]

Is it possible to scroll the page by scrolling to a specific element (such as <section> or <div> )? It's like a vertical slide (section) that takes up the entire screen. As an example, this site I think uses mousewhe...
asked by 20.01.2016 / 21:43
2
answers

How to pass input value with POST method using Angular

I am trying to pass certain values from a input through the POST method using Angular, however I am not able to pass those values in the URL and not even get them on the server. Could someone help me solve this problem? Detail, for eac...
asked by 20.01.2016 / 18:17
2
answers

Best way to perform Dependency injection in Angular JS [closed]

I'm working on a fairly large system where I'm building several modules and I needed to be coherent. I'm currently centralizing the dependency injection into a single module, which I believe is not the correct one, since the idea of a module is...
asked by 18.01.2016 / 16:43
1
answer

Transforms .min file into "normal" file

I have a .js but it is .min wanted to know if it is possible to revert to the format with those "tabs" and line break, for better visualization of the commands     
asked by 25.01.2016 / 21:16
2
answers

What is the parameter THIS? [duplicate]

Something I always see in many code out there is the this parameter. Ex: $(this).funçao-variável... I've already been told that this serves to "reference" something. But it was not very clear. Does anyone know what the...
asked by 01.03.2016 / 18:15
1
answer

What is the most convenient way to declare array in JS?

I've been observing a lot of people declaring arrays as follows monthShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_') But I've also observed using it like this: monthShort : ['Jan','Fev','Mar','Abr','Mai','Jun','Jul','...
asked by 08.03.2016 / 19:54
2
answers

How to add sort indicators to a table?

I have created a sort algorithm [ascending - descending] of [letters - numbers]. I'm trying to add some sort order in the column title, but it's not working as it should. Example: function sortTable(table, col, reverse) { var tb...
asked by 19.02.2016 / 11:45
3
answers

Local communication through online application

I am developing a system for ordering from a snack bar / pizzeria. Let's suppose that the waiter places the order with the Tablet ( Android ) on the customer's desk or the customer goes and requests the receipt ( Windows ). Depending on the requ...
asked by 09.10.2016 / 01:23
2
answers

format value with javascript

I have the following variable: var teste = "006BC953F26DAC56C51D61"; And I'd like to see it when it looks like this: console.log(teste); //006B-C953F-26DA-C56C5-1D61 I'm having problems since it starts with a group of 4 needs and then...
asked by 23.02.2017 / 18:08