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
<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<script> | |
// ALWAYS put the test regex inside /^()$/. | |
// Example: /^(REGEX HERE)$/ |
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
/** | |
* Store configurations in the localStorage (HTML5 compatible browsers only) | |
* so the user does not have to set basic options every time the browser are reloaded | |
*/ | |
var PersistentConfig = { | |
/** | |
* The namespace prefix that will be applied to all storage keys, so all persistent config are kept on | |
* the same namespace | |
*/ |
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
/** | |
* Provides method to dynamically read and modify url hash params like query strings (e.g. #year=2014&month=1) | |
*/ | |
var UrlHash = { | |
/** | |
* Returns the full URL Hash, ommiting the # symbol | |
*/ | |
getHash: function () { | |
return window.location.hash.replace("#", ""); | |
}, |