mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-15 21:06:26 +08:00
Add JavaScript API binding with NPAPI Plugin
This commit is contained in:
20
npapi/example.html
Normal file
20
npapi/example.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>GmSSL Plugin Test</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>GmSSL Plugin Test</h1>
|
||||
<hr>
|
||||
|
||||
<embed name="plugin" type="application/x-gmssl" id="plugin" width="0" height="0"></embed>
|
||||
<br>
|
||||
|
||||
<script>
|
||||
|
||||
var gmssl = document.getElementById('plugin').gmssl;
|
||||
document.write('GmSSL NPAPI Plugin Version: ' + gmssl.version + '<br><br>');
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user