Rename project, disambiguate charset

This commit is contained in:
Neale Pickett 2017-05-25 18:38:12 -06:00
parent 6bdd1a63c1
commit e8f008de9f
4 changed files with 16 additions and 10 deletions

View File

@ -1,10 +1,14 @@
{
"extName": {
"message": "PWGen: Simple password generator",
"message": "Password Generator",
"description": "Extension name"
},
"extDescription": {
"message": "Simple password generator using material design",
"description": "Extension description"
},
"clipboard": {
"message": "Password is copied into your clipboard.",
"description": "Message indicating every new generated password will be available in the clipboard"
}
}

View File

@ -1,6 +1,7 @@
var letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
var numbers = "0123456789";
var symbols = "!@#$^&*()~+-=_";
// I don't use "O01Il" because they are difficult to distinguish in many fonts :(
var letters = "abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ";
var numbers = "23456789";
var symbols = "!@#$^&*()~+-=_/?.:";
function randint(range) {
let a = new Uint32Array(1);
@ -56,6 +57,7 @@ function setup() {
document.getElementById('num').addEventListener('change', regen);
document.getElementById('sym').addEventListener('change', regen);
document.getElementById('len').addEventListener('input', regen);
document.getElementById('clipboard').textContent = chrome.i18n.getMessage("clipboard");
regen();
}

View File

@ -1,9 +1,9 @@
{
"manifest_version": 2,
"name": "__MSG_extName__",
"short_name": "PWGen",
"short_name": "PasswdGen",
"author": "Neale Pickett <neale@woozle.org>",
"version": "1.2",
"version": "1.3",
"default_locale": "en",
"description": "__MSG_extDescription__",

View File

@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
<title>PWGen</title>
<title>Password Generator</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/material.min.css">
<script src="js/material.min.js"></script>
@ -13,7 +13,7 @@
<div class="mdl-card">
<div class="mdl-card__supporting-text">
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="text" id="password">
<input class="mdl-textfield__input" type="text" spellcheck="false" id="password">
</div>
<div class="fab">
<button class="mdl-button mdl-js-button mdl-button--fab mdl-button--mini-fab mdl-js-ripple-effect mdl-button--colored" id="regen">
@ -32,7 +32,7 @@
<input type="checkbox" id="sym" class="mdl-checkbox__input" checked>
<span class="mdl-checkbox__label">Symbols</span>
</label>
<p>Password is copied into your clipboard.</p>
<p id="clipboard">Password is copied into your clipboard.</p>
</div>
</div>