Profile
Achievement
inreflection7's Recent JavaScript Snippets
- All /
« Prev 1 Next »
For those moments of weakness when .replace() looks like a good idea...
0
775
posted 11 years ago by inreflection7
Extend jQuery :selector types
Ex: $("input:text")
$("input:email")
1
541
posted 11 years ago by inreflection7
Sorts a list by its 'data-' attribute. Customization is very easy.
0
760
posted 12 years ago by inreflection7
Why do this?
===========
*hopefully* this will cause the page to refresh and provide a stop button in the future. The idea is to use it while developing in a text editor, as in Vim or its ilk, and not have to alt+tab all the _*flipping*_ time.
F...
0
537
posted 12 years ago by inreflection7
image rollovers in jquery are usually super easy. However it sucks when working with absolute image paths - like a separate media server or CDN. Heres a quick snippet using substring and lastIndexOf to swap out the image src.
0
649
posted 12 years ago by inreflection7
A really fucking cool and easy way to calculate the alpha value for microsoft gradient using Javascript. Particularly useful in the Firebug console. Like a calculator.
0
540
posted 12 years ago by inreflection7