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
js
20
snippets by
falk von heintschel
Detect Orientation
JavaScript
0
3
2729
Get page load time via Javascript and jQuery
jQuery
1
4
17842
Google Maps Javascript
JavaScript
0
3
1904
Simple Infinite Scrolling with jQuery
jQuery
0
3
1340
Fire event when scrolling stops
JavaScript
1
2
1188
Check if image is horizontal or vertical
jQuery
0
2
6307
Calculate Aspect Ratio
JavaScript
0
4
1283
Remove elements with matching value from array
JavaScript
0
1
1123
SVG array random color fill
0
3
2283
Equalize Columns Height
jQuery
0
4
1377
Carousel Fullscreen Javascript & CSS
0
4
1912
Load JSON file locally using JavaScript
JavaScript
1
23
7611
My Favorite JavaScript Helper Functions
JavaScript
4
32
11292
Expanding Menu JS
0
11
1666
Detect device type using JavaScript
JavaScript
2
21
7135
Automatically load content on scroll with jQuery
jQuery
0
5
1601
Cats Responsive Photo Grid
1
19
2544
Autoplay HTML videos on scroll
JavaScript
0
8
10510
jQuery animated typing text
0
11
1535
Simple Delay Time Function
JavaScript
0
3
2751