@healthcatalyst/catalyst-docfx-template 1.0.151 → 1.0.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
package/package.json
CHANGED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{{!Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license.}}
|
|
2
|
+
|
|
3
|
+
<div id="sidetoggle">
|
|
4
|
+
<div>
|
|
5
|
+
{{^_disableSideFilter}}
|
|
6
|
+
<div class="sidefilter">
|
|
7
|
+
<div class="docs-search">
|
|
8
|
+
<form role="search" id="search" class="side-search">
|
|
9
|
+
<input type="text" id="search-query" placeholder="Search this doc site" autocomplete="off" aria-label="Search documentation">
|
|
10
|
+
<button type="button" id="search-clear" aria-label="Clear search" style="position:absolute;right:8px;background:none;border:0;cursor:pointer;font-size:16px;line-height:1;color:#666;">×</button>
|
|
11
|
+
</form>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
{{/_disableSideFilter}}
|
|
15
|
+
<div class="sidetoc">
|
|
16
|
+
<div class="toc" id="toc">
|
|
17
|
+
{{^leaf}}
|
|
18
|
+
{{>partials/li}}
|
|
19
|
+
{{/leaf}}
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<script>
|
|
26
|
+
(function() {
|
|
27
|
+
// Wait for DOM and search to be ready
|
|
28
|
+
$(document).ready(function() {
|
|
29
|
+
var searchInput = $('#search-query');
|
|
30
|
+
if (!searchInput.length) return;
|
|
31
|
+
|
|
32
|
+
// Trigger the existing searchEvent
|
|
33
|
+
$('body').trigger('searchEvent');
|
|
34
|
+
|
|
35
|
+
// Ensure search input triggers query
|
|
36
|
+
searchInput.on('input', function() {
|
|
37
|
+
var query = $(this).val();
|
|
38
|
+
if (query && query.length >= 3) {
|
|
39
|
+
$('body').trigger('queryReady');
|
|
40
|
+
$('#search-results>.search-list>span').text('"' + query + '"');
|
|
41
|
+
} else if (query === '') {
|
|
42
|
+
$('.hide-when-search').show();
|
|
43
|
+
$('#search-results').hide();
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
})();
|
|
48
|
+
</script>
|