aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/DemoExtension/mainui.html
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2018-08-22 11:15:35 +0000
committerAndre Heinecke <[email protected]>2018-08-22 11:15:35 +0000
commit59ed27bae14da6c1ba6848b34acfc836846a27bc (patch)
treef9efc016f561129c4c02f41bf0e84b566883d6eb /lang/js/DemoExtension/mainui.html
parentjson: Add proper decrypt_result_t handling (diff)
parentjs: changed verify signature result infos (diff)
downloadgpgme-59ed27bae14da6c1ba6848b34acfc836846a27bc.tar.gz
gpgme-59ed27bae14da6c1ba6848b34acfc836846a27bc.zip
Merge branch 'javascript-binding'
This adds a new language binding "gpgme.js" to GPGME. It serves as a bridge between the native-messaging service "gpgme-json" and JavaScript Applications. The first user of this binding will be Mailvelope which will see GnuPG integration in the near future. GnuPG-Bug-Id: T4107
Diffstat (limited to 'lang/js/DemoExtension/mainui.html')
-rw-r--r--lang/js/DemoExtension/mainui.html47
1 files changed, 47 insertions, 0 deletions
diff --git a/lang/js/DemoExtension/mainui.html b/lang/js/DemoExtension/mainui.html
new file mode 100644
index 00000000..c773c9b9
--- /dev/null
+++ b/lang/js/DemoExtension/mainui.html
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <link rel="stylesheet" href="ui.css"/>
+ <script src="libs/gpgmejs.bundle.js"></script>
+ <script src="maindemo.js"></script>
+ </head>
+ <body>
+ <div>
+
+ <div class="left">
+ <ul>
+ <li>
+ <span class="label">Input</span>
+ <textarea rows="5" cols="65" id="inputtext" wrap="hard"></textarea>
+ </li>
+ <li>
+ <span class="label">Fingerprint of Key to use: </span>
+ <input type="text" id="pubkey" value="" />
+ <button id="getdefaultkey">
+ Set to default signing key
+ </button>&nbsp;
+ <button id="searchkey">
+ Look up Key
+ </button>
+ </li>
+ </ul>
+ </div>
+ <div class="right">
+ <ul>
+ <li>
+ <span class="label">Result</span>
+ <textarea id="answer" rows="5" cols="65" wrap="hard"></textarea>
+ </li>
+ </ul>
+ </div>
+ </div>
+ <div class="center">
+ <button id="buttonencrypt">Encrypt input text</button><br>
+ <button id="buttondecrypt">Decrypt input text</button><br>
+ <button id="signtext">Sign input text</button> <br>
+ <button id="verifytext">Verify input text</button><br>
+
+ </div>
+</body>
+</html>