Убрал избыточный сброс формы, добавил уточнение о типе подписи

This commit is contained in:
vgoma 2020-09-01 18:37:59 +03:00
parent b2ca997be6
commit d9797b31a5
2 changed files with 1 additions and 6 deletions

View File

@ -12,10 +12,6 @@
$signature = document.getElementById('signature'), $signature = document.getElementById('signature'),
$signatureError = document.getElementById('signatureError'); $signatureError = document.getElementById('signatureError');
$createSignature.addEventListener('reset', function () {
window.location.reload();
});
$createSignature.addEventListener('submit', function (event) { $createSignature.addEventListener('submit', function (event) {
var thumbprint = $certificate.value, var thumbprint = $certificate.value,
message = $message.value; message = $message.value;

View File

@ -33,7 +33,6 @@
<hr> <hr>
<button id="createSignature" type="submit" disabled>Создать подпись</button> <button id="createSignature" type="submit" disabled>Создать подпись</button>
<button type="reset">Сбросить</button>
</fieldset> </fieldset>
<fieldset> <fieldset>
@ -43,7 +42,7 @@
<br> <br>
<pre id="hashError"></pre> <pre id="hashError"></pre>
<label for="signature">Подпись:</label><br> <label for="signature">Подпись (PKCS7):</label><br>
<textarea id="signature" cols="80" rows="30" placeholder="Не создана"></textarea> <textarea id="signature" cols="80" rows="30" placeholder="Не создана"></textarea>
<p> <p>
Для Для