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
2685
Add '.active' to link determined by URL
jQuery
0
3
1877
jQuery Enque
jQuery
0
0
1626
Nono número
jQuery
0
0
1634
Accordion Menu
jQuery
0
3
1847
Center an Element
jQuery
0
4
1698
Create your own Selector
jQuery
0
0
1712
Using jQuery to Detect When CSS3 Animations and Transitions End
jQuery
0
3
2591
SVG to PNG fallback for Images
jQuery
0
5
5328
JS: Page load fade in
jQuery
0
2
1774
One page nav on and off states based on scrollTop
jQuery
0
3
1862
Use "Enter" as "Tab"
jQuery
0
0
1594
Fix YouTube iFrame Z-index issues using jQuery
jQuery
0
3
1646
Shortcut for JQuery if/else Statement: Handling the JQuery API
jQuery
0
4
2046
jQuery Slow Each Function
jQuery
0
2
1620
jQuery Set Delay Function
jQuery
0
2
1726
Multiple Colorboxes on one website
jQuery
0
3
1826
Hover Intent (Timeout)
jQuery
0
3
1874
Add to Bookmarks button
jQuery
0
3
33626
Creating Double Horizontal Scrollbar
jQuery
0
3
4604