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
Smooth scroll to anchor
jQuery
0
4
2898
Add '.active' to link determined by URL
jQuery
0
3
2079
jQuery Enque
jQuery
0
0
1855
Nono número
jQuery
0
0
1864
Accordion Menu
jQuery
0
3
2069
Center an Element
jQuery
0
4
1941
Create your own Selector
jQuery
0
0
1950
Using jQuery to Detect When CSS3 Animations and Transitions End
jQuery
0
3
2860
SVG to PNG fallback for Images
jQuery
0
5
5728
JS: Page load fade in
jQuery
0
2
1994
One page nav on and off states based on scrollTop
jQuery
0
3
2127
Use "Enter" as "Tab"
jQuery
0
0
1819
Fix YouTube iFrame Z-index issues using jQuery
jQuery
0
3
1851
Shortcut for JQuery if/else Statement: Handling the JQuery API
jQuery
0
4
2378
jQuery Slow Each Function
jQuery
0
2
1834
jQuery Set Delay Function
jQuery
0
2
1938
Multiple Colorboxes on one website
jQuery
0
3
2075
Hover Intent (Timeout)
jQuery
0
3
2139
Add to Bookmarks button
jQuery
0
3
41365
Creating Double Horizontal Scrollbar
jQuery
0
3
4900