Profile
Achievement
goo's Recent Snippets
- All /
« Prev 1 Next »
This useful function will convert a time in seconds to a time in years, months, weeks, days, and so on.
0
1703
posted 11 years ago by goo
Here is a set of functions that can be very useful: Give this script the url of a webpage, and it will save all images from this page on your server.
1
1701
posted 11 years ago by goo
in jquery mobile, .html() not refresh DOM. Execute this function after any DOM change.
0
1138
posted 11 years ago by goo
you can use this minified jQuery snippet to detect if your user is viewing using a mobile device.
1
1264
posted 11 years ago by goo
jQuery Mobile <head> template with needed css and js from CDN.
From http://http://jquerymobile.com/
0
918
posted 11 years ago by goo
In JavaScript, there are 6 "falsy" values (values that evaluate to false):
false, null, undefined, 0, "" (the empty string), and NaN
Anything else evaluates to true.
0
621
posted 12 years ago by goo
Número aleatorio entre a y a + b, excluyendo a + b:
a + Math.random() * b
0
751
posted 12 years ago by goo