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
jQuery: detect events “copy”, “cut” and “paste”
jQuery
0
4
1343
Simple iframe reload
jQuery
0
0
1030
image dashitari yokoni slide sasetari
jQuery
0
0
1151
panel misetari keshitari suru
jQuery
0
0
1149
Replace image when not found (404)
jQuery
0
1
1216
daiichi innsuu daini innsuu tsukaikata
jQuery
0
0
1200
hasClass addClass removeClass
jQuery
0
1
1218
stop audio
jQuery
1
0
1885
Change background color with data tag
jQuery
0
1
1070
Jquery toggle functions
jQuery
0
0
1541
Fade in audio
jQuery
0
1
1494
popup
jQuery
0
1
1385
Menu + Cookie
jQuery
1
0
1263
Smooth Scrolling Animation
jQuery
0
4
1198
target _blank
jQuery
0
0
1130
accordion age sage (SUUMO mitaina)
jQuery
0
0
1225
moji count ippai aka
jQuery
0
0
1171
Animated scroll to section
jQuery
0
0
999
toggleClass yajirushi hennkou
jQuery
0
0
1211
jquery hyouji kirikae
jQuery
0
0
1251