[rs-commit] r13 - in /rst-interop/trunk: ./ src/site/resources/crypto.signText/ src/site/resources/crypto.signText/signtext-form.js src/site/resources/js/signtext-form.js src/site/xhtml5/crypto.signText/index.xhtml5

rs-commit at redwax.eu rs-commit at redwax.eu
Sun Sep 19 12:51:39 CEST 2021


Author: minfrin at redwax.eu
Date: Sun Sep 19 12:51:39 2021
New Revision: 13

Log:
Move signtext library to common.

Added:
    rst-interop/trunk/src/site/resources/crypto.signText/
    rst-interop/trunk/src/site/resources/crypto.signText/signtext-form.js
      - copied unchanged from r12, rst-interop/trunk/src/site/resources/js/signtext-form.js
Removed:
    rst-interop/trunk/src/site/resources/js/signtext-form.js
Modified:
    rst-interop/trunk/   (props changed)
    rst-interop/trunk/src/site/xhtml5/crypto.signText/index.xhtml5

Propchange: rst-interop/trunk/
------------------------------------------------------------------------------
--- svn:externals	(original)
+++ svn:externals	Sun Sep 19 12:51:39 2021
@@ -1,2 +1,2 @@
-src/site/resources/crypto.signText https://source.redwax.eu/svn/redwax/rst/redwax-signtext/trunk/src/common
+src/site/resources/common https://source.redwax.eu/svn/redwax/rst/redwax-signtext/trunk/src/common
 

Removed: rst-interop/trunk/src/site/resources/js/signtext-form.js
==============================================================================
--- rst-interop/trunk/src/site/resources/js/signtext-form.js	(original)
+++ rst-interop/trunk/src/site/resources/js/signtext-form.js	(removed)
@@ -1,23 +0,0 @@
-
-
-
-function signRequest(form) {
-  if (crypto.signText) {
-    crypto.signText(form['tobesigned'].value).then(response => { form['signed'].value = response });
-  }
-  else {
-    alert('An implementation of crypto.signText() is not installed in this browser.');
-  }
-}
-
-function signLegacyRequest(form) {
-  if (crypto.signText) {
-    form['signed'].value = crypto.signText(form['tobesigned'].value, 'ask');
-    return true;
-  }
-  else {
-    alert('An implementation of crypto.signText() is not installed in this browser.');
-  }
-}
-
-

Modified: rst-interop/trunk/src/site/xhtml5/crypto.signText/index.xhtml5
==============================================================================
--- rst-interop/trunk/src/site/xhtml5/crypto.signText/index.xhtml5	(original)
+++ rst-interop/trunk/src/site/xhtml5/crypto.signText/index.xhtml5	Sun Sep 19 12:51:39 2021
@@ -5,7 +5,7 @@
     <title>Javascript crypto.signText() Demo/Interop</title>
     <meta name="description" content="Interoperate with traditional crypto.signText()."/>
     <link rel="canonical" href="https://interop.redwax.eu/rst/crypto.signText/"/>
-    <script language="javascript" src="../js/signtext.js"></script>
+    <script language="javascript" src="../common/signtext.js"></script>
     <script language="javascript" src="signtext-form.js"></script>
   </head>
   <body>



More information about the rs-commit mailing list