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
1677
Display desktop notifications | Javascript
JavaScript
8
51
11079
Javascript: no-jquery cross-browser event handler accepting arguments
Bash
0
8
1581
My Favorite JavaScript Helper Functions
JavaScript
4
32
11291
Javascript: convert native browser event to jQuery event.
JavaScript
0
3
1638
realWidthHeight.js
JavaScript
0
2
1065
Javascript: Convert proper name to Capital/Title Case
JavaScript
0
0
1557
Javascript: Get file name from fullpath.
JavaScript
0
0
960
Javascript: Get filename and path from full path filename
JavaScript
0
0
1397
Javascript: Clone array/object.
Bash
0
0
781
Javascript/jQuery: Input with fixed prefix.
JavaScript
0
0
770
Javascript: ProtocolCheck
JavaScript
0
0
1625
Javascript: Beep
JavaScript
0
0
999
Javascript: Get host info
JavaScript
0
0
739
Javascript: Vanilla async get
JavaScript
0
0
732
Regular Expressions: pattern string except preceeded by
JavaScript
0
0
599
OSRM/API: OpenStreet Maps Calculate distance between points
Ajax
0
0
807
OSM/OpenLayers: Place marker on coordinates using custom image.
HTML
0
0
705
Javascript: Query Params to JSON
JavaScript
0
0
605
Javascript/CSS: Ripple Effect - Vanilla
JavaScript
0
0
602
Vanilla Javascript: Upload file
JavaScript
0
0
663
Simple toggle vanilla JS
JavaScript
0
0
510
Javascript: Async/Await
JavaScript
0
0
564
Javascript/NodeJS: Uglify js files
Bash
0
0
409
Node/Parse docx variables
JavaScript
0
0
498
Regex: Get String with escaped quotes
Plain text
0
0
447
Javascript: Change object property position
JavaScript
1
0
1175