Get started with lg-hash CDN

GPL-3.0 licensed

LG-Hash is a lightweight library for generating and comparing hash values.

Tags:
  • gallery
  • lightbox
  • image
  • youtube
  • vimeo
  • dailymotion
  • html5 videos
  • thumbnails
  • zoom
  • fullscreen
  • responsive
  • touch
  • drag

Stable version

Copied!

How to start using lg-hash CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with lg-hash CDN - cdnhub.io</title>
    <script src="https://cdn.cdnhub.io/lg-hash/1.0.4/lg-hash.min.js"></script>
</head>
<body>
    <button id="generateHash">Generate Hash</button>
    <script>
        document.getElementById('generateHash').addEventListener('click', () => {
            const textToHash = 'Hello, World!';
            LG.hash(textToHash, (error, hash) => {
                if (error) {
                    console.error('Error generating hash:', error);
                } else {
                    console.log('Generated Hash:', hash);
                }
            });
        });
    </script>
</body>
</html>
Copied!
Copied!

All versions