Welcome To Snipplr
Everyone's Recent Snippets Tagged javascript
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A tiny snippet on how to easily detect iPad/iPhone/iPod using javascript.
1
692
posted 13 years ago by parkarlsson
Extend Date object to have isLeapYear() boolean (true for Leap Years)
Taken from https://raw.github.com/vitch/jquery-methods/master/date.js
0
701
posted 13 years ago by tomasdev
Somewhere along the road the people behind canvas decided that all image scaling is anti-aliased by default. Firefox has 'mozImageSmoothingEnabled' while Chrome et company don't.
This is a proof of concept script to resize 'virtualCanvas' two time...
0
762
posted 13 years ago by volvis
Format a date into a string using several string variables.
Usage:
(new Date("6/6/2011")).format("%W, %B %d%o, %Y");
Result:
Monday, June 6th, 2011
0
1054
posted 13 years ago by wizard04
Este es un programa que los puntajes y las calificaciones correspondientes a dicho puntaje.
0
510
posted 13 years ago by AgustinAlvia
Plugin to get and set Element#style.display (e.g. "none" or "")
0
803
posted 13 years ago by kendsnyder
Use whatever is needed to select the input box. $('#searchBoxOuter td.ms-sbcell input') reflects some custom master page html I have so I used that.
0
1317
posted 13 years ago by rumremix
Calculating Compound Interest. Real time [Compound Interest Calculator](http://ncalculators.com/interest/compound-interest-calculator.htm "Real time result")
0
466
posted 13 years ago by vinotht