Get started with doofinder CDN

MIT licensed

Doofinder: library for powerful, customizable site search.

Tags:
  • doofinder

Stable version

Copied!

How to start using doofinder CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with doofinder CDN - cdnhub.io</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/assets/css/doofinder.min.css">
    <script src="https://cdn.cdnhub.io/doofinder/5.13.4/doofinder.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const doofinderOptions = {
                containerId: 'df-searchbox',
                apiKey: 'YOUR_API_KEY', // Replace with your Doofinder API key
                language: 'en',
                autocomplete: true,
                autodiscover: false,
                hideLogo: true,
                theme: 'material',
                layout: 'compact'
            };

            dfSearch.init(doofinderOptions);
        });
    </script>
</head>
<body>
    <div id="df-searchbox"></div>
</body>
</html>
Copied!
Copied!
Copied!
Copied!

All versions