Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This bit of jquery will take whatever you give it in the selector (which should be a valid jquery selector of any kind) and add or remove additional classas as appropriate based on width.
The width and style names are all determined by the last i...
0
2628
posted 14 years ago by FatFolderDesigner
This is part of a much larger class but I wanted to give enough context to explain the value of GeoCoder. GeoCoder has two methods called getFromLocation() and getFromLocationName() that allow you to capture an address or coordinates.
1
1655
posted 14 years ago by chrisaiv
This will get the arguments on the query string and put them into a handy array.
0
1740
posted 14 years ago by brownrl
Simple function - just place it in your theme's functions.php file, save, and you're good to go. If an image in your content is missing the alt tag, it adds that posts title as the alt tag for the image.
It's been recommended to me that I shouldn'...
0
2357
posted 14 years ago by RainyDayMedia
Here's a quick one-off trick for sed editing conf files on remote hosts. I will
post the core sed command first, showing the crazy quoting, then a for loop demonstrating how one might tackle multiple hosts. Took me a few tries to get the quoting so...
0
1275
posted 14 years ago by bubnoff
Use like this: [self showConfirmation:@"May we send you information and offers by Email?" withMessage:@"1 email per week maximum"];
1
1845
posted 14 years ago by yasirmturk