Get started with gss-engine CDN

MIT licensed

GSS-Engine library implements GSS-API for secure web app communication between systems.

Tags:
  • gss

Stable version

Copied!

How to start using gss-engine CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with gss-engine CDN - cdnhub.io</title>
  <style id="gss-styles"></style>
  <script src="https://cdn.cdnhub.io/gss-engine/2.0.0/gss.min.js"></script>
  <script>
    // Define your custom styles using GSS-Engine
    const gssStyles = new GSS.StyleSheet();

    gssStyles.rules = {
      'my-class': {
        color: 'red',
      },
    };

    // Apply the styles to an element
    document.querySelector('#my-element').className += ' my-class';

    // Apply the stylesheet to the document
    document.head.appendChild(gssStyles.toElement());
  </script>
</head>
<body>
  <div id="my-element">This text will turn red.</div>
</body>
</html>
Copied!
Copied!

All versions