Playgrounds
Snippets
Developers
Compiler
All
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
Coffee
CoffeeScript
ColdFusion
Command
CSS
Delphi
Django
ES6
GLSL
Grunt
Gulp
HAML
Haskell
HTML
iOS
Jade
Java
JavaScript
jQuery
JSX
Less
LUA
MDX
MySQL
Objective
Other
Pascal
Perl
PHP
Plain text
PowerShell
Processing
Progress
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
SCSS
SmallBASIC
Smarty
SQL
Stylus
SVG
Swift
TypeScript
VHDL
X++
XHTML
XML
Xojo
XSLT
New snippet
New playground
Sign up
Login
Upload
Playgrounds
Snippets
Developers
Sign up
Login
Codepad is a place for developers to share code snippets (PHP, Java, Bash, C, C++, Python and more). Create your HTML, CSS and JS Demos.
Sign up
Learn more
Sort
Popular
Most liked
Most recent
Time
Today
Last week
Last month
Last year
All time
Select Languages
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
ColdFusion
Command
CSS
Delphi
Django
Grunt
Gulp
HAML
HTML
iOS
Jade
Java
JavaScript
jQuery
Less
MySQL
Objective
Other
Pascal
Perl
PHP
PowerShell
Processing
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
Smarty
SQL
Swift
VHDL
XHTML
XML
Xojo
XSLT
SCSS
CoffeeScript
GLSL
Progress
Stylus
ES6
Coffee
TypeScript
X++
Haskell
SmallBASIC
JSX
SVG
Plain text
LUA
MDX
Apply
Reset
popular • jQuery
detect browser
jQuery
0
4
1036
animation easing function
jQuery
0
0
1038
better faster each for loop
jQuery
0
1
866
Adjust column height
jQuery
0
0
1146
Smooth Scrolling
jQuery
0
2
1099
dashippanashi jquery
jQuery
0
0
1169
togglemenu
jQuery
0
0
1263
image dashite shimau jquery
jQuery
0
0
1341
run callback function
jQuery
0
0
914
img src toggler
jQuery
0
0
965
active current object with siblings
jQuery
0
0
952
set z-index
jQuery
0
0
889
return window vertical center postion offset by element's height
jQuery
0
0
932
return element index within min/max value
jQuery
0
0
936
return element in viewport
jQuery
0
0
935
get element index with siblings
jQuery
0
0
900
get indexed anchor element
jQuery
0
0
901
throttle with setTimeout
jQuery
0
0
943
remove prefixed class
jQuery
0
0
1037
SmoothScroll
jQuery
0
3
971