This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
sample_code:passwordvault [2022/07/24 17:04] al4he6 created |
sample_code:passwordvault [2022/07/26 11:37] al4he6 |
||
---|---|---|---|
Line 11: | Line 11: | ||
Requires the Biometric plugin (or you could comment out that code)\\ | Requires the Biometric plugin (or you could comment out that code)\\ | ||
- | <code> | + | <file js passwordvault.js> |
app.LoadPlugin( " | app.LoadPlugin( " | ||
var mpw // plaintext master password | var mpw // plaintext master password | ||
Line 63: | Line 63: | ||
} // fn | } // fn | ||
function opendb () { | function opendb () { | ||
- | db = app.OpenDatabase( " | + | |
- | db.ExecuteSql(" | + | add.SetOnTouch(insert) |
+ | lst = app.AddList(lay,"", | ||
+ | lst.SetTextSize2(18," | ||
+ | lst.SetOnTouch(show) | ||
+ | |||
+ | // | ||
+ | | ||
+ | db.ExecuteSql(" | ||
// | // | ||
//epw = crpt.Encrypt(" | //epw = crpt.Encrypt(" | ||
// | // | ||
db.ExecuteSql( " | db.ExecuteSql( " | ||
- | | + | |
} // fn | } // fn | ||
function display(results) { | function display(results) { | ||
- | add = app.AddButton(lay," | ||
- | add.SetOnTouch(insert) | ||
var str = ""; | var str = ""; | ||
for (var i = 0; i < results.rows.length; | for (var i = 0; i < results.rows.length; | ||
Line 83: | Line 88: | ||
str += site+":" | str += site+":" | ||
} // for | } // for | ||
- | lst = app.AddList(lay,str,0.8) | + | lst.SetList(str) |
- | lst.SetTextSize2(18," | + | |
- | lst.SetOnTouch(show) | + | |
} // fn | } // fn | ||
function insert() { | function insert() { | ||
Line 166: | Line 169: | ||
app.Exit() | app.Exit() | ||
} | } | ||
- | + | </file> | |
- | </code> | + |