Questions tagged as 'javascript'

1
answer

No geolocation return using Phonegap

I'm using the code to get geolocation from Phonegap , but even then, when I emulate the app, it does not return anything to me. Is there anything wrong with the code? index.html <html> <head> <meta charset="utf-8" />...
asked by 21.02.2014 / 15:29
1
answer

Generate list of possible combinations

We have 4 teams: Time 1 | Time 2 | Time 3 | Time 4 I would like to know how to automatically build a list of possible match combinations between these teams. Example: Time 1 x Time 2 | Time 1 x Time 3 | Time 1 x Time 4 | ... I'm...
asked by 02.03.2014 / 06:16
1
answer

Get page source with Google Chrome extension

You can create an extension for Chrome that takes either the source code of the page or the whole text ( Ctrl + A , Ctrl + C ), to send this to an external site (for data mining) and to return the resulting content from the site? (in this c...
asked by 09.02.2015 / 21:57
3
answers

How to create a Javascript function that accepts an arbitrary number of arguments?

Functions of type console.log are given any number of arguments. How do I specify this for a Javascript function?     
asked by 05.02.2014 / 13:53
3
answers

How to do Javascript calculations by accepting a comma to separate decimal places

I'm making an app where in fields that accept decimals, the client can put the comma instead of the dot (which is the common visual). What is the best way to transform a "12,34" string into a numeral like 12.34 ?     
asked by 03.12.2015 / 15:24
1
answer

What is the declaration of the string with "" serious underscore in javascript?

I was messing with the Google Chrome console these days and then, as my keyboard was unconfigured, I accidentally typed in the grave accent 'instead of the single quotation marks ' to create a string . The interesting thing is tha...
asked by 10.11.2015 / 20:43
2
answers

How to implement a library that has similar features to jQuery?

I would like to create a very simple library containing only the functions I use most, following an idea similar to the ones in jQuery. For example: I created the following function to get an element: var $ = function(el, index){ if(ind...
asked by 29.03.2015 / 01:11
2
answers

How to print only the first 5 characters?

I need to display up to 5 characters of the contents of each table cell at a specific resolution. I do not know if there is any Pseudo Elemento that does what I need, something like: Example: @media (max-width: 548px) { p:only-fi...
asked by 18.01.2017 / 12:35
4
answers

How to validate date taking leap year into account?

How to validate date with leap year in JavaScript?     
asked by 18.06.2014 / 13:35
3
answers

Dynamic Javascript property name

I have the following code: var nomePropriedade = "Propriedade1"; var meuObjeto = { "nome" : "valor" } I would like the property name of meuObjeto to receive the value of the nomePropriedade variable. Home So when I t...
asked by 26.08.2015 / 16:27