summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--INSTRUCTIONS6
-rw-r--r--www/index.html2
-rw-r--r--www/scripts/main.js25
3 files changed, 29 insertions, 4 deletions
diff --git a/INSTRUCTIONS b/INSTRUCTIONS
index 061617f..d6d896a 100644
--- a/INSTRUCTIONS
+++ b/INSTRUCTIONS
@@ -1,5 +1,5 @@
-On loading the website you will be greeted by a passphrase prompt, a load
-button, a group selection box and a text box to enter a new group name.
+On loading the website you will be greeted by a header containing a passphrase
+prompt and a load button.
To start, enter your passphrase and hit Load. If you have previously saved
entries they should be displayed. If there are no records just one blank row
@@ -22,7 +22,7 @@ The Copy Username and Copy Password buttons can be used to copy the username or
password respectively to the clipboard.
The Show button can be used to reveal the password while the button is down.
-Alternatively all passwords (including the pass phrase) can be seen by ticking
+Alternatively all passwords (including the pass phrases) can be seen by ticking
the Show Passwords checkbox.
The Up/Down buttons move the entry up/down as appropriate in the list.
diff --git a/www/index.html b/www/index.html
index 00098aa..ab55698 100644
--- a/www/index.html
+++ b/www/index.html
@@ -13,7 +13,7 @@
</head>
<body>
-<div class="header">
+<div id="Header" class="header">
<table>
<tr>
<td class="headertext">Passphrase:</td>
diff --git a/www/scripts/main.js b/www/scripts/main.js
index 3023ec6..0e403dc 100644
--- a/www/scripts/main.js
+++ b/www/scripts/main.js
@@ -22,6 +22,21 @@ function Copy(id)
document.execCommand("copy");
}
+function LoadTestData()
+{
+ globalDb = [];
+
+ var f;
+
+ for(f = 1; f < 21; f++)
+ {
+ var rec = {id: f, group: "Group 1", description: "Test " + f,
+ username: "user" + f, password: ""};
+
+ globalDb.push(rec);
+ }
+}
+
function AESEncrypt(source, phrase)
{
var encryptedAES = CryptoJS.AES.encrypt(source, phrase);
@@ -797,4 +812,14 @@ function DoShowPasswords()
}
}
+function DoDocumentLoaded()
+{
+ var div = document.getElementById("Header");
+ var height = div.clientHeight + 2;
+ var table = document.getElementById("DataTable");
+ table.style.marginTop = height + "px";
+}
+
+window.addEventListener("load", DoDocumentLoaded);
+
// vim: sw=4 ts=4