spec-up-t 1.1.33 → 1.1.35
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/assets/compiled/body.js +7 -8
- package/assets/compiled/head.css +6 -6
- package/assets/css/adjust-font-size.css +21 -0
- package/assets/css/create-alphabet-index.css +3 -3
- package/assets/css/header-navbar.css +4 -0
- package/assets/css/index.css +197 -1
- package/assets/css/modal.css +3 -3
- package/assets/css/terms-and-definitions.css +2 -3
- package/assets/css/theme-vars.css +9 -0
- package/assets/js/add-href-to-snapshot-link.js +1 -1
- package/assets/js/collapse-definitions.js +1 -1
- package/assets/js/edit-term-buttons.js +1 -1
- package/assets/js/modal.js +3 -3
- package/assets/js/search.js +13 -4
- package/assets/js/show-commit-hashes.js +5 -5
- package/assets/js/token-input.js +1 -6
- package/package.json +1 -1
- package/readme.md +1 -1
- package/src/asset-map.json +0 -1
- package/src/collect-external-references.js +1 -1
- package/src/collectExternalReferences/checkRateLimit.js +2 -2
- package/src/install-from-boilerplate/boilerplate/README.md +1 -1
- package/src/install-from-boilerplate/boilerplate/spec/spec-head.md +1 -1
- package/src/install-from-boilerplate/help.txt +1 -1
- package/src/install-from-boilerplate/menu.sh +5 -5
- package/templates/template.html +33 -10
- package/assets/js/help-buttons.js +0 -37
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates and inserts help buttons into the DOM.
|
|
3
|
-
*
|
|
4
|
-
* This function creates a help button element and inserts it after each element
|
|
5
|
-
* with the class 'collapse-all-defs-button' within the '#content' element. The
|
|
6
|
-
* help button links to the documentation website and opens in a new tab.
|
|
7
|
-
*
|
|
8
|
-
* @function helpButtons
|
|
9
|
-
* @memberof module:help-buttons
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* // Automatically called when the DOM content is loaded
|
|
13
|
-
* document.addEventListener('DOMContentLoaded', helpButtons);
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
function helpButtons() {
|
|
17
|
-
// Create the help button DOM element
|
|
18
|
-
const newElement = document.createElement('a');
|
|
19
|
-
newElement.textContent = '?';
|
|
20
|
-
newElement.classList.add('help-button', 'btn');
|
|
21
|
-
newElement.title = 'Click to see the explanation of the buttons at the documentation website, in a new tab.';
|
|
22
|
-
newElement.target = '_blank';
|
|
23
|
-
newElement.rel = 'noopener noreferrer';
|
|
24
|
-
newElement.href = 'https://trustoverip.github.io/spec-up-t-website/docs/user-interface-overview/specification#explanation-of-the-buttons-in-the-specification';
|
|
25
|
-
|
|
26
|
-
function addElementAfterLastChild(newElement) {
|
|
27
|
-
const elements = document.querySelectorAll('#content dl dt');
|
|
28
|
-
|
|
29
|
-
elements.forEach((element) => {
|
|
30
|
-
element.appendChild(newElement.cloneNode(true));
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
addElementAfterLastChild(newElement);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
document.addEventListener('DOMContentLoaded', helpButtons);
|