mirror of
https://github.com/crypto-pro-web/crypto-pro-js.git
synced 2024-11-24 00:55:00 +03:00
27 lines
683 B
HTML
27 lines
683 B
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="ru">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<title>Пример использования CryptoPro</title>
|
||
|
<script src="https://cdn.polyfill.io/v2/polyfill.js"></script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<script>
|
||
|
window.CryptoProConfig = {
|
||
|
publicPath: '../dist/'
|
||
|
};
|
||
|
</script>
|
||
|
|
||
|
<pre id="certList"></pre>
|
||
|
|
||
|
<script src="../dist/crypto-pro.js"></script>
|
||
|
|
||
|
<script>
|
||
|
CryptoPro.call('getCertsList').then(function (list) {
|
||
|
document.querySelector('#certList').innerHTML = JSON.stringify(list, null, ' ');
|
||
|
}, function (error) {
|
||
|
console.error(error);
|
||
|
});
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|