-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex-contextual-search.html
64 lines (61 loc) · 3.05 KB
/
index-contextual-search.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html lang="en">
<head>
<title>Search</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
<link href="../assets/images/favicon-16x16.png" rel="icon" type="image/x-icon">
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- JavaScript-->
<script type="text/javascript" src="main.js"></script>
<!-- CSS-->
<link rel="stylesheet" href="https://fed.kp.org/styleguide-archive/4.0/main.css" />
<link rel="stylesheet" href="main.css" />
<style>
.demo-box {
margin: 20px 0;
}
</style>
</head>
<body class="kp-theme-ds2">
<main>
<h1 style="text-align: center;">Search</h1>
<h2 class="styling-4">Contextual Search</h2>
<p>This example fetches JSON to populate the "Popular search links" and Search Suggestions.</p>
<br>
<div class="container">
<!-- autocomplete search patern - contextual -->
<div
class="autocomplete-search -ds2 -contextual-search"
data-recommended-links="true"
data-recommended-links-url="recommended-links.json"
data-recommended-links-announcement="displaying recommended links"
data-recommended-links-tracking="Recommended Links"
data-search-suggestions="true"
data-search-suggestions-url="search-suggestions.json"
data-search-suggestions-announcement="displaying search suggestions"
data-search-suggestions-tracking="Suggested Queries"
data-reset-announcement="no recommendations or suggestions"
data-input-width=""
data-analytics-location="Autocomplete Search"
data-ds-theme="vessel"
data-ds-version="3"
data-ds-variant="contextual-search">
<form class="autocomplete-search__form" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" method="get" onsubmit="return false" action="">
<label class="autocomplete-search__label">Contextual search label</label>
<div class="autocomplete-search__combobox clear-input-field" role="application">
<input class="autocomplete-search__input clear-input-textbox contextual-input" type="text" placeholder="Type keyword to search" role="combobox" aria-expanded="false">
<fieldset class="autocomplete-search__listbox -hidden"></fieldset>
<button class="clear-input-button" aria-label="clear this search field" type="button"><img class="" src="assets/images/clear_x.svg" alt=""></button>
</div>
<button class="autocomplete-search__submit button" type="submit">Search</button>
</form>
<div class="autocomplete-search__manual" aria-hidden="true"></div>
<div class="autocomplete-search__manual-search" aria-hidden="true"></div>
</div>
<!-- /autocomplete search pattern - contextual -->
</div>
</main>
</body>
</html>