1f7b19512c
-- * Extensions: - Moved testapplication to Demoextension - Created BrowserTestExtension. Includes mocha and chai. For running tests that cannot be run outside a WebExtension Both Extensions can be found zipped in build/extensions after running build_extensions.sh * Code changes: - src/Config: Place for the configuration - small fixes raised during testing in Keyring.js, Message.js, - src/gpgmejs_openpgpjs.js don't offer direct GpgME object to the outside, as it only causes confusion - index.js init() now checks the config for validity * Tests: - Reordered tests in test/. - Input values are now in a separate file which may be of use for bulk testing * moved the build directory from dist to build
34 lines
965 B
HTML
34 lines
965 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<link rel="stylesheet" href="ui.css"/>
|
|
<script src="gpgmejs.bundle.js"></script>
|
|
<script src="maindemo.js"></script>
|
|
</head>
|
|
<body>
|
|
<ul>
|
|
<li>
|
|
<span class="label">Text: </span>
|
|
<input type="text" id='cleartext' />
|
|
</li>
|
|
<li>
|
|
<span class="label">Public key ID: </span>
|
|
<input type="text" id="pubkey" value="" />
|
|
</li>
|
|
</ul>
|
|
<button id="buttonencrypt">Encrypt</button><br>
|
|
<hr>
|
|
<ul>
|
|
<li>
|
|
<span class="label">Encrypted armored Text: </span>
|
|
<textarea rows="5" cols="65" id="ciphertext" wrap="hard"></textarea>
|
|
</li>
|
|
</ul>
|
|
<button id="buttondecrypt">Decrypt</button><br>
|
|
<hr>
|
|
<h3>Result data:</h3>
|
|
<textarea id="answer" rows="5" cols="65" wrap="hard"></textarea>
|
|
</body>
|
|
</html>
|