@xiee/utils 1.6.7 → 1.6.9

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/css/faq.css CHANGED
@@ -18,7 +18,7 @@
18
18
  .faq-list .anchor {
19
19
  display: none;
20
20
  }
21
- .faq-list > li:hover > .anchor {
21
+ .faq-list > li:hover .anchor {
22
22
  display: inline;
23
23
  }
24
24
  .faq-list > li {
package/css/faq.min.css CHANGED
@@ -1 +1 @@
1
- .faq-button{cursor:pointer}.faq-list>li>:first-child{display:block;cursor:pointer;background:#fafafa;margin:-.5em;padding:.5em}.faq-list>:not(.faq-clicked)>*{display:none}.faq-button{float:right;margin-left:1em}.faq-list .anchor{display:none}.faq-list>li:hover>.anchor{display:inline}.faq-list>li{border:1px solid #eee;padding:.5em}
1
+ .faq-button{cursor:pointer}.faq-list>li>:first-child{display:block;cursor:pointer;background:#fafafa;margin:-.5em;padding:.5em}.faq-list>:not(.faq-clicked)>*{display:none}.faq-button{float:right;margin-left:1em}.faq-list .anchor{display:none}.faq-list>li:hover .anchor{display:inline}.faq-list>li{border:1px solid #eee;padding:.5em}
@@ -1,7 +1,7 @@
1
1
  (d => {
2
2
  const r = /^(https?:)?\/\//;
3
3
  d.querySelectorAll('a').forEach(a => {
4
- if (!a.title) a.title = a.href;
4
+ if (!a.title) a.title = decodeURI(a.href);
5
5
  if (!r.test(a.getAttribute('href'))) return;
6
6
  // add _blank target to external links
7
7
  a.target = '_blank';
@@ -1 +1 @@
1
- (e=>{const t=/^(https?:)?\/\//;e.querySelectorAll("a").forEach((e=>{e.title||(e.title=e.href),t.test(e.getAttribute("href"))&&(e.target="_blank",0===e.childElementCount&&t.test(e.innerText)&&(e.innerText=e.innerText.replace(t,"").replace(/(.+)#.*$/,"$1")))}))})(document);
1
+ (e=>{const t=/^(https?:)?\/\//;e.querySelectorAll("a").forEach((e=>{e.title||(e.title=decodeURI(e.href)),t.test(e.getAttribute("href"))&&(e.target="_blank",0===e.childElementCount&&t.test(e.innerText)&&(e.innerText=e.innerText.replace(t,"").replace(/(.+)#.*$/,"$1")))}))})(document);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiee/utils",
3
- "version": "1.6.7",
3
+ "version": "1.6.9",
4
4
  "description": "Miscellaneous tools and utilities to manipulate HTML pages",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"