aboutsummaryrefslogtreecommitdiffstats
path: root/pages/options.html
diff options
context:
space:
mode:
authorStephen Blott2017-10-28 15:35:39 +0100
committerStephen Blott2017-10-28 15:35:39 +0100
commit720474858f2f52ad62934b43c346b49165c461ac (patch)
tree1a6c782bcdd1ffd5d4b546ca36505315730c2f4e /pages/options.html
parent534a0f8c471ea96081b30fc2a57d183f6b4268c9 (diff)
downloadvimium-720474858f2f52ad62934b43c346b49165c461ac.tar.bz2
Add backup/restore for Vimium options.
See the *very* bottom of the options page (below advanced settings). Clicking "Backup" creates a JSON file. Selecting a backup populates the options inputs, the user then clicks *Save Changes* to confirm.
Diffstat (limited to 'pages/options.html')
-rw-r--r--pages/options.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/pages/options.html b/pages/options.html
index 46307b6f..943fc95c 100644
--- a/pages/options.html
+++ b/pages/options.html
@@ -315,6 +315,32 @@ b: http://b.com/?q=%s description
</tr>
-->
</tbody>
+ <tbody id='backupAndRestor'>
+ <tr>
+ <td colspan="2"><header>Backup and Restore</header></td>
+ </tr>
+ <tr>
+ <td class="caption">Backup</td>
+ <td>
+ <div class="help">
+ <div class="example">
+ </div>
+ </div>
+ <input id="backupButton" type="button" value="Create Backup" />
+ </td>
+ </tr>
+ <tr>
+ <td class="caption">Restore</td>
+ <td>
+ <div class="help">
+ <div class="example">
+ Choose file, then click <i>Save Changes</i>, below, to confirm restore.
+ </div>
+ </div>
+ <input id="chooseFile" type="file" accept=".json" style="width: 200px;"/>
+ </td>
+ </tr>
+ </tbody>
</table>
</div>