Erik's public fiddles
-
jQuery.cursor
JQuery.fn extension to getting and setting cursor position for input fields.
-
JQuery.closestShared
Gets closest shared parent of elements within a jquery object. Created for the need to get the closest single parent of related checkbox or radio fields.
-
Date Format
Date format function
-
Table Pagination
Cool table pagination I came up with for my report tables to paginate the data without hitting the server for each page. Uses JQuery
-
Copy To Clipboard
Copy given text to clipboard
-
Find elements by style
Pure javascript method for getting elements by specific styles. Not very clean, just wanted to show the concept.
-
Minimum Jumps
Find the minimum jumps necessary for the frog to jump from point X to point Y when it can jump D distance.
-
Array - Missing Number
Find the missing number in the array
-
Minimal Sum Diffs
Find the minimal difference between 2 sides of an array.
-
1zxtu41m
No-Library (pure JS), HTML, CSS, JavaScript
-
Array index of X count
Return index K of array where count of indexes equal to X below K are equal to count of indexes not equal to X above or equal to K
-
Array index of equal left/right
Index of array where left side of array equals right side of array
-
Fixed Content
Sample of fixed header and footer that allows content section to be independently scrollable and full height of region between header and footer. Note that this design only works for fixed header and footer. If header and footer can be dynamically adjusted by content then different approach is needed.
-
String to Char Codes
jQuery 1.9.1, HTML, CSS, JavaScript
-
Cool On/Off
CSS only on/off switch display
-
Popup window form submit
Open a new window to submt