UselessCode's public fiddles
-
Modernizing a simple slideshow
Created for answer to http://stackoverflow.com/questions/29909392/slideshow-script-using-php-and-javascript/29942863 explaining how to modernize the slideshow code from http://www.dynamicdrive.com/dynamicindex14/preloadslide.htm
-
Custom width change event with Mutation Observers
created for answer to http://stackoverflow.com/questions/29909400/is-there-a-event-invoked-when-a-blocks-width-changes
-
Detecting width changes with Mutation Observers
created for answer to http://stackoverflow.com/questions/29909400/is-there-a-event-invoked-when-a-blocks-width-changes
-
Maintainable quiz system
created for answer to http://stackoverflow.com/questions/29870147/div-inside-if-statement-javascript
-
Removing a class on DOMContentLoaded
Created for answer to http://stackoverflow.com/questions/29868977/how-to-know-if-an-element-is-rendered
-
Converting Green/White Hmong with lookup objects
Created as part of my answer to stackoverflow.com/questions/ /how-to-get-javascript-running-properly-on-mobile-phones
-
d3agfw8L
Used in answer for http://stackoverflow.com/questions/27977904/access-inner-function-variable-outside-javascript-function
-
Event delegation to find a clicked link
Part of answer for http://stackoverflow.com/questions/26879630/capturing-clicks-on-all-a-tags-using-eventlistener/26880202#26880202
-
6toah7vr
Created for answer to http://stackoverflow.com/questions/26815124/jquery-insert-string-in-relative-pretty-url
-
qpj6cb4t
Created for answer to http://stackoverflow.com/questions/26815124/jquery-insert-string-in-relative-pretty-url
-
Removing every other element
Created for answer to https://stackoverflow.com/questions/26207683/js-remove-every-other-element
-
Filtering empty strings out of an array with filter
https://stackoverflow.com/questions/26091271/removing-empty-strings-from-array-in-javascript
-
Leaflet 0.8-dev wildy inflates the radius of circles
The radius of circles in Leaflet is supposed to be specified in meters but using a radius as little as 1 makes a circle that covers hundreds of meters.
-
Leaflet needs a negitive radius to make a circle?
No matter what size radius I specify, I only seem capable of getting a dot to appear on the map. If they radius is set to a negative radius suddenly it works for some reason.
-
mHL26
Created for answer to https://stackoverflow.com/questions/25131143/javascript-string-to-guid
-
Detecting double right-click
You can use the .detail property of a mouse event object to see if an event was the second click in a short period of time, allowing you to detect a double right-click. Unfortunately jQuery strips the .detail property when it wraps event objects so you have to access it via the .originalEvent property.
-
fPBrS
No-Library (pure JS), HTML, CSS, JavaScript
-
B842c
No-Library (pure JS), HTML, CSS, JavaScript
-
X3gc9
No-Library (pure JS), HTML, CSS, JavaScript
-
Finding an id based on the id of a sub-object
Created as part of an answer for http://stackoverflow.com/questions/21771681/javascript-jquery-select-object-based-on-nested-attribute#21771681