<title>Skeleton Key</title>
<script type="text/javascript" src="pbkdf2.js"></script>
<script type="text/javascript" src="core.js"></script>
- <script type="text/javascript">
- if (typeof chrome.extension !== 'undefined') {
- // TODO: load the extension JS
- } else {
- // TODO: load the hosted JS
- }
- </script>
+ </script>
<link rel="stylesheet" href="core.css" />
</head>
<body>
<div class="clear"></div>
- <script type="text/javascript">
- var controller = new SkeletonKey(document);
- </script>
</body>
</html>
* DEALINGS IN THE SOFTWARE.
*/
+(function main() {
+ if (typeof chrome !== 'undefined') {
+ // TODO: load the extension JS
+ } else {
+ // TODO: load the hosted JS
+ }
+
+ document.addEventListener('DOMContentLoaded', function() {
+ var controller = new SkeletonKey(document);
+ });
+})();
+
/**
* SkeletonKey is view controller for generating secure passwords.
*
var hexString = key.toString();
hexString = this._capitalizeKey(hexString);
this._password.value = hexString;
+ this._password.focus();
+ this._password.select();
};
/**