This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function ensureFormat(e) { | |
| var evt = e || window.event; | |
| var field = evt.target || evt.srcElement; | |
| var format = /^\d{1,2}\/\d{1,2}\/\d{2}\/$/; | |
| var dateParts = field.value.match(format); | |
| var m, d, y, century; | |
| if (!dateParts) { | |
| return true; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://www.devincook.com/goldparser/engine/c-sharp/index.htm | |
| http://www.javascripttoolbox.com/ #javascript #library #utility-functions | |
| http://wordpress.org/extend/themes/p2 #conversation-tools |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Unnecessary when JQuery is available. Returns the first element | |
| // of [elementType] in the DOM tree whose ID contains [name]. | |
| function _getElementByPartialName(name, elementType) { | |
| var elements = document.getElementsByTagName(elementType); | |
| for (var i = 0; i < elements.length; i++) { | |
| if (elements[i].getAttribute("id").indexOf(name) > -1) { | |
| return elements[i]; | |
| } | |
| } | |
| return null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Flipping Typical | |
| http://flippingtypical.com/ | |
| Quick preview of multiple fonts at once using user input for sample text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| index.php - contains routes and dispatches requests to controllers | |
| config.php - database info | |
| controllers/ | |
| models/ | |
| views/ | |
| */ |
NewerOlder