Vivek's public fiddles
-
get charCode of different quotes
Code written to solve an issue caused in WP: APOSTROPHE getting replaced with RIGHT SINGLE QUOTATION MARK
-
MomentJS date subtraction
Used to find out when was my ASUS router restarted
-
JQ .trigger & .triggerHandler
Demo of .trigger() & .triggerHandler() in JQuery. We can use .triggerHandler() to return values from event handler to the caller. In case of multiple handlers, the result can be combined, but it needs to be done by each event handler.
-
overriding default Window functions
https://stackoverflow.com/questions/45168610/having-trouble-overriding-the-native-windows-addeventlistener
-
tile numbering
showing tile number automatically (using CSS) at the left top
-
DOM events and JQuery events
Demo about: How to handle events in JQ and plain JS. When we use preventDefault() and stopPropagation() on JQ event object, it doesn't stop the DOM events from executing / propagating. If we want to achieve that, we need to use event.originalEvent as well.
-
Confirm before redirecting
Show confirmation dialog before redirecting on click of `<a href=....`. Redirect only if user clicks on OK on the confirmation dialog. Ref: http://stackoverflow.com/questions/43272037/click-event-not-working
-
defining g-recaptcha callback function dynamically
http://stackoverflow.com/questions/42671854/passing-variables-in-invisible-recaptcha-callback
-
Post It functionality
Ref: http://stackoverflow.com/questions/42454629/jquery-removed-elements-are-still-displayed
-
Promise chaining demo with Recursive promises
Ref: https://stackoverflow.com/questions/41905839/fire-promise-all-once-all-nested-promises-have-resolved/ getObject() method is used to generate an object with random number of elements in kids property. each kid object can internally have random number of kids. (3 level of nesting.) Promise chaining is used to resolve all nested objects before printing the complete object hierarchy
-
List down keyboard event properties
No-Library (pure JS), HTML, CSS, JavaScript
-
8ow267bf
No-Library (pure JS), HTML, CSS, JavaScript
-
ph9knmLd
No-Library (pure JS), HTML, CSS, JavaScript
-
image border on hover
No-Library (pure JS), HTML, CSS, JavaScript
-
bk4wbp6u
No-Library (pure JS), HTML, CSS, JavaScript
-
RTL+form fields
This is to test RTL functionality of form fields
-
text selection
http://stackoverflow.com/questions/35529599/make-text-more-selectable
-
WinJS + Toolbar + DropDown List
http://stackoverflow.com/questions/34808708/can-a-select-drop-down-list-be-added-to-my-winjs-toolbar-via-javascript/35600683?noredirect=1#comment58888444_35600683
-
zvLj1m98
No-Library (pure JS), HTML, CSS, JavaScript
-
bo67th45
No-Library (pure JS), HTML, CSS, JavaScript