2017-01-17 13:22:49 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="ru">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Пример использования CryptoPro</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2017-01-17 15:25:57 +03:00
|
|
|
<select id="certList"></select>
|
|
|
|
<button id="createSign" type="button">Создать подпись</button>
|
|
|
|
<br>
|
|
|
|
<textarea id="createdSign" cols="90" rows="30"></textarea>
|
|
|
|
|
2017-01-17 13:22:49 +03:00
|
|
|
<script>
|
|
|
|
window.CryptoProConfig = {
|
|
|
|
publicPath: '../dist/'
|
|
|
|
};
|
|
|
|
</script>
|
2017-08-28 12:21:30 +03:00
|
|
|
|
|
|
|
<!-- Полифиллы для работы библиотеки -->
|
|
|
|
<script src="polyfills/addEventListener.js"></script>
|
|
|
|
<script src="polyfills/promise.js"></script>
|
|
|
|
<script src="polyfills/forEach.js"></script>
|
|
|
|
<script src="polyfills/map.js"></script>
|
|
|
|
|
|
|
|
<!-- Библиотека -->
|
2017-01-17 13:22:49 +03:00
|
|
|
<script src="../dist/crypto-pro.js"></script>
|
2017-08-28 12:21:30 +03:00
|
|
|
|
|
|
|
<!-- Полифиллы для работы демо скриптов -->
|
|
|
|
<script src="polyfills/atob-btoa.js"></script>
|
|
|
|
|
|
|
|
<!-- Демо скрипты -->
|
2017-01-17 15:25:57 +03:00
|
|
|
<script src="cert-list.js"></script>
|
|
|
|
<script src="create-sign.js"></script>
|
2017-01-17 13:22:49 +03:00
|
|
|
</body>
|
|
|
|
</html>
|