Get started with frzr CDN

ISC licensed

Lightweight library for freezable data structures in JS.

Tags:
  • frzr
  • tiny
  • view
  • library
  • turboboosted
  • framework
  • javascript
  • frontend
  • client-side
  • dom

Stable version

Copied!

How to start using frzr CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with frzr CDN - cdnhub.io</title>
  <script src="https://cdn.cdnhub.io/frzr/0.22.7/frzr.min.js"></script>
</head>
<body>
  <button id="freeze">Freeze</button>
  <button id="thaw">Thaw</button>
  <script>
    const freezeBtn = document.getElementById('freeze');
    const thawBtn = document.getElementById('thaw');

    const elementToFreeze = document.querySelector('#content');

    freezeBtn.addEventListener('click', () => {
      Frzr.freeze(elementToFreeze);
    });

    thawBtn.addEventListener('click', () => {
      Frzr.thaw(elementToFreeze);
    });
  </script>
  <div id="content">
    <p>This content will be frozen and thawed when the buttons are clicked.</p>
  </div>
</body>
</html>
Copied!
Copied!

All versions