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
1674
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
1663
posted 11 years ago by goo
in jquery mobile, .html() not refresh DOM. Execute this function after any DOM change.
0
1124
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
1240
posted 11 years ago by goo
jQuery Mobile <head> template with needed css and js from CDN.
From http://http://jquerymobile.com/
0
901
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
604
posted 12 years ago by goo
Número aleatorio entre a y a + b, excluyendo a + b:
a + Math.random() * b
0
734
posted 12 years ago by goo