diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-08-19 10:40:24 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-08-19 10:40:24 +0200 |
commit | 734b2e1f111286d332ef0799b7d2c99d5b7a6bd6 (patch) | |
tree | a0d5fdcf1588f0bea63e475637c6e756c7b4169b /simpleSigning/src/main/webapp | |
parent | 82ac22ffefde9efe00255b008a5cbf892fb09063 (diff) | |
download | einfach-signieren-734b2e1f111286d332ef0799b7d2c99d5b7a6bd6.tar.gz einfach-signieren-734b2e1f111286d332ef0799b7d2c99d5b7a6bd6.tar.bz2 einfach-signieren-734b2e1f111286d332ef0799b7d2c99d5b7a6bd6.zip |
show Version in example
Diffstat (limited to 'simpleSigning/src/main/webapp')
-rw-r--r-- | simpleSigning/src/main/webapp/index.jsp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/simpleSigning/src/main/webapp/index.jsp b/simpleSigning/src/main/webapp/index.jsp index 9917165..ad21be7 100644 --- a/simpleSigning/src/main/webapp/index.jsp +++ b/simpleSigning/src/main/webapp/index.jsp @@ -65,6 +65,16 @@ // so we don't follow the form ... return false; } + + function showVersion() { + pdfAs.getVersion(function show(version) { + alert("Version: " + version.version + " SCM: " + version.scm); + }, function error(error) { + alert("Failed to get Version: " + error); + }); + // so we don't follow the form ... + return false; + } </script> <!-- Bootstrap core CSS --> <link href="css/bootstrap.min.css" rel="stylesheet"> @@ -125,7 +135,12 @@ <label for="txtContent">Signaturdaten (Text oder Link zu einem PDF Dokument, optional): </label> <input type="text" id="txtContent"> </div> - <button id="btnSign" onclick="return signWidthContent();">Unterschreiben</button> + <div class="form-group"> + <button id="btnSign" onclick="return signWidthContent();">Unterschreiben</button> + </div> + <div class="form-group"> + <button id="btnVersion" onclick="return showVersion();">zeige Version</button> + </div> </form> </div> |