mirror of https://github.com/nealey/chrome-pwgen
Rename project, disambiguate charset
This commit is contained in:
parent
6bdd1a63c1
commit
e8f008de9f
|
@ -1,10 +1,14 @@
|
||||||
{
|
{
|
||||||
"extName": {
|
"extName": {
|
||||||
"message": "PWGen: Simple password generator",
|
"message": "Password Generator",
|
||||||
"description": "Extension name"
|
"description": "Extension name"
|
||||||
},
|
},
|
||||||
"extDescription": {
|
"extDescription": {
|
||||||
"message": "Simple password generator using material design",
|
"message": "Simple password generator using material design",
|
||||||
"description": "Extension description"
|
"description": "Extension description"
|
||||||
|
},
|
||||||
|
"clipboard": {
|
||||||
|
"message": "Password is copied into your clipboard.",
|
||||||
|
"description": "Message indicating every new generated password will be available in the clipboard"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
var letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
// I don't use "O01Il" because they are difficult to distinguish in many fonts :(
|
||||||
var numbers = "0123456789";
|
var letters = "abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ";
|
||||||
var symbols = "!@#$^&*()~+-=_";
|
var numbers = "23456789";
|
||||||
|
var symbols = "!@#$^&*()~+-=_/?.:";
|
||||||
|
|
||||||
function randint(range) {
|
function randint(range) {
|
||||||
let a = new Uint32Array(1);
|
let a = new Uint32Array(1);
|
||||||
|
@ -56,6 +57,7 @@ function setup() {
|
||||||
document.getElementById('num').addEventListener('change', regen);
|
document.getElementById('num').addEventListener('change', regen);
|
||||||
document.getElementById('sym').addEventListener('change', regen);
|
document.getElementById('sym').addEventListener('change', regen);
|
||||||
document.getElementById('len').addEventListener('input', regen);
|
document.getElementById('len').addEventListener('input', regen);
|
||||||
|
document.getElementById('clipboard').textContent = chrome.i18n.getMessage("clipboard");
|
||||||
regen();
|
regen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "__MSG_extName__",
|
"name": "__MSG_extName__",
|
||||||
"short_name": "PWGen",
|
"short_name": "PasswdGen",
|
||||||
"author": "Neale Pickett <neale@woozle.org>",
|
"author": "Neale Pickett <neale@woozle.org>",
|
||||||
"version": "1.2",
|
"version": "1.3",
|
||||||
|
|
||||||
"default_locale": "en",
|
"default_locale": "en",
|
||||||
"description": "__MSG_extDescription__",
|
"description": "__MSG_extDescription__",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>PWGen</title>
|
<title>Password Generator</title>
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="css/style.css">
|
||||||
<link rel="stylesheet" href="css/material.min.css">
|
<link rel="stylesheet" href="css/material.min.css">
|
||||||
<script src="js/material.min.js"></script>
|
<script src="js/material.min.js"></script>
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
<div class="mdl-card">
|
<div class="mdl-card">
|
||||||
<div class="mdl-card__supporting-text">
|
<div class="mdl-card__supporting-text">
|
||||||
<div class="mdl-textfield mdl-js-textfield">
|
<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>
|
||||||
<div class="fab">
|
<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">
|
<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>
|
<input type="checkbox" id="sym" class="mdl-checkbox__input" checked>
|
||||||
<span class="mdl-checkbox__label">Symbols</span>
|
<span class="mdl-checkbox__label">Symbols</span>
|
||||||
</label>
|
</label>
|
||||||
<p>Password is copied into your clipboard.</p>
|
<p id="clipboard">Password is copied into your clipboard.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue