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
2989
Add '.active' to link determined by URL
jQuery
0
3
2178
jQuery Enque
jQuery
0
0
1972
Nono número
jQuery
0
0
1960
Accordion Menu
jQuery
0
3
2243
Center an Element
jQuery
0
4
2037
Create your own Selector
jQuery
0
0
2065
Using jQuery to Detect When CSS3 Animations and Transitions End
jQuery
0
3
2966
SVG to PNG fallback for Images
jQuery
0
5
5919
JS: Page load fade in
jQuery
0
2
2084
One page nav on and off states based on scrollTop
jQuery
0
3
2253
Use "Enter" as "Tab"
jQuery
0
0
1907
Fix YouTube iFrame Z-index issues using jQuery
jQuery
0
3
1943
Shortcut for JQuery if/else Statement: Handling the JQuery API
jQuery
0
4
2562
jQuery Slow Each Function
jQuery
0
2
1925
jQuery Set Delay Function
jQuery
0
2
2019
Multiple Colorboxes on one website
jQuery
0
3
2175
Hover Intent (Timeout)
jQuery
0
3
2236
Add to Bookmarks button
jQuery
0
3
45525
Creating Double Horizontal Scrollbar
jQuery
0
3
5018