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
Javascript
All Javascript
27
snippets by
Marco Piñero
Javascript: Is my browser on line?
JavaScript
0
2
1543
Display desktop notifications | Javascript
JavaScript
8
50
10382
Javascript: no-jquery cross-browser event handler accepting arguments
Bash
0
8
1439
My Favorite JavaScript Helper Functions
JavaScript
4
32
10173
Javascript: convert native browser event to jQuery event.
JavaScript
0
3
1531
realWidthHeight.js
JavaScript
0
2
936
Javascript: Convert proper name to Capital/Title Case
JavaScript
0
0
1323
Javascript: Get file name from fullpath.
JavaScript
0
0
820
Javascript: Get filename and path from full path filename
JavaScript
0
0
1090
Javascript: Clone array/object.
Bash
0
0
651
Javascript/jQuery: Input with fixed prefix.
JavaScript
0
0
645
Javascript: ProtocolCheck
JavaScript
0
0
1319
Javascript: Beep
JavaScript
0
0
807
Javascript: Get host info
JavaScript
0
0
591
Javascript: Vanilla async get
JavaScript
0
0
493
Regular Expressions: pattern string except preceeded by
JavaScript
0
0
484
OSRM/API: OpenStreet Maps Calculate distance between points
Ajax
0
0
608
OSM/OpenLayers: Place marker on coordinates using custom image.
HTML
0
0
559
Javascript: Query Params to JSON
JavaScript
0
0
436
Javascript/CSS: Ripple Effect - Vanilla
JavaScript
0
0
472
Vanilla Javascript: Upload file
JavaScript
0
0
521
Simple toggle vanilla JS
JavaScript
0
0
403
Javascript: Async/Await
JavaScript
0
0
423
Javascript/NodeJS: Uglify js files
Bash
0
0
303
Node/Parse docx variables
JavaScript
0
0
347
Regex: Get String with escaped quotes
Plain text
0
0
295
Javascript: Change object property position
JavaScript
1
0
796