Integrating the legacy CDDC JavaScript in your web pages

The CDDC JavaScript file is available in the legacy CDDC JavaScript UI package on the Risk Analytics resource download page. The script is available as a jQuery module (Vasco.IdKey.RM.CDDC.min.js).

  1. <!-- index.html -->
  2. <!DOCTYPE html>
  3. <html lang="en">
  4.   <head>
  5.     <meta charset="UTF-8">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.     <title>Document</title>
  8.   </head>
  9.   <body>
  10.     <script src="https://code.jquery.com/jquery-3.5.1.min.js"
  11.       integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
  12.       crossorigin="anonymous">
  13.     </script>
  14.     <script src="./lib/Vasco.IdKey.RM.CDDC.min.js"></script>
  15.     <script type="text/javascript">
  16.       var fingerprint = $.Vasco.getJSON();
  17.       var fingerprintHash = $.Vasco.getHASH();
  18.       console.log('fingerprint is ' + fingerprint);
  19.       console.log('fingerprint hash is ' + fingerprintHash);
  20.     </script>
  21.   </body>
  22. </html>