hdoc-tools 0.19.1 → 0.19.2
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.
- package/package.json +1 -1
- package/ui/index.html +11 -0
package/package.json
CHANGED
package/ui/index.html
CHANGED
@@ -37,6 +37,17 @@
|
|
37
37
|
</style>
|
38
38
|
<script>
|
39
39
|
|
40
|
+
class APIParamName extends HTMLElement {
|
41
|
+
constructor() {
|
42
|
+
super();
|
43
|
+
// GS: Use this to set a role on the element for ARIO screen-reader directives
|
44
|
+
this.setAttribute("role", "title");
|
45
|
+
}
|
46
|
+
// Element functionality written in here
|
47
|
+
}
|
48
|
+
customElements.define("api-param-name", APIParamName);
|
49
|
+
|
50
|
+
|
40
51
|
var ThemePreference = localStorage.getItem('hdocbook-theme-appearance') || '';
|
41
52
|
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches
|
42
53
|
if (!ThemePreference || ThemePreference === 'auto' ? prefersDark : ThemePreference === 'dark') {
|