Get started with multi.js CDN

MIT licensed

Multi.js: Lightweight library for managing multiple JS instances.

Tags:
  • user-friendly
  • select
  • multiple
  • simple
  • select boxes
  • search

Stable version

Copied!

How to start using multi.js CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with multi.js CDN - cdnhub.io</title>
  <script src="https://cdn.cdnhub.io/multi.js/0.5.3/multi.min.js"></script>
</head>
<body>
  <button id="download">Download Files</button>
  <script>
    const downloadButton = document.getElementById('download');

    downloadButton.addEventListener('click', () => {
      MultiFileDownload.create({
        elements: [
          { name: 'file1.txt', url: 'file1.txt' },
          { name: 'file2.pdf', url: 'file2.pdf' },
          { name: 'file3.jpg', url: 'file3.jpg' },
        ],
        onSuccess: () => {
          console.log('Files downloaded successfully.');
        },
      });
    });
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!

All versions