Add JavaScript API binding with NPAPI Plugin

This commit is contained in:
Zhi Guan
2019-02-28 17:50:01 +08:00
parent 5b90476864
commit 7e1857d9e9
10 changed files with 2259 additions and 0 deletions

20
npapi/example.html Normal file
View 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>