46 lines
1.8 KiB
HTML
46 lines
1.8 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Domain search widget demo</title>
|
|
<style>
|
|
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5; margin: 0; padding: 32px 16px; background: #f6f7f9; color: #1f2328; }
|
|
main { max-width: 720px; margin: 0 auto; }
|
|
section { background: #fff; border-radius: 12px; padding: 24px; margin: 0 0 24px; }
|
|
pre { background: #f0f2f5; padding: 12px; border-radius: 8px; overflow-x: auto; font-size: 14px; }
|
|
.dark { background: #1b1f24; color: #f0f3f6; }
|
|
.dark .dsw { --dsw-field: #2a3038; --dsw-field-text: #f0f3f6; --dsw-ok: #5fd38a; --dsw-no: #ff8a80; }
|
|
@media (prefers-color-scheme: dark) { body { background: #111418; color: #f0f3f6; } section { background: #1b1f24; } pre { background: #2a3038; } }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<h1>MozOut Mozambique domain search</h1>
|
|
|
|
<section>
|
|
<h2>Default</h2>
|
|
<p>The language follows the browser (Portuguese or English).</p>
|
|
<div data-domain-search></div>
|
|
</section>
|
|
|
|
<section>
|
|
<h2>Several extensions, in Portuguese</h2>
|
|
<div data-domain-search data-lang="pt" data-extensions=".co.mz,.com,.org"></div>
|
|
</section>
|
|
|
|
<section class="dark">
|
|
<h2>Dark background, in English</h2>
|
|
<div data-domain-search data-lang="en"></div>
|
|
</section>
|
|
|
|
<section>
|
|
<h2>How to add it to your site</h2>
|
|
<pre><div data-domain-search></div>
|
|
<script src="domain-search.js" defer></script></pre>
|
|
<p>Options: <code>data-lang="pt"</code> or <code>"en"</code>, <code>data-extensions=".co.mz,.com"</code> (up to 10) and <code>data-currency="MZN"</code>.</p>
|
|
</section>
|
|
</main>
|
|
<script src="domain-search.js" defer></script>
|
|
</body>
|
|
</html>
|