new "noHighlight" class
This commit is contained in:
parent
07d488a8c0
commit
35cfec18e0
2 changed files with 5 additions and 5 deletions
|
@ -101,7 +101,7 @@ function highlighter(json, full = true) {
|
||||||
if (element.attributes) {
|
if (element.attributes) {
|
||||||
for (var x in element.attributes) {
|
for (var x in element.attributes) {
|
||||||
var attribute = element.attributes[x]
|
var attribute = element.attributes[x]
|
||||||
if (attribute.key == "class" && attribute.value == "value") {
|
if (attribute.key == "class" && attribute.value.includes("noHighlight")) {
|
||||||
valid = false
|
valid = false
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
@ -307,7 +307,7 @@ function converter(html, dynamic = true) {
|
||||||
for (var x = 0; x < sitesTable.length; x++) {
|
for (var x = 0; x < sitesTable.length; x++) {
|
||||||
var siteName = sitesTable[x]
|
var siteName = sitesTable[x]
|
||||||
var siteData = sites[siteName]
|
var siteData = sites[siteName]
|
||||||
html += `<a class="chip" ${onlyIfExists(`href="${siteData.url}"`, siteData.url)}>${siteName}: ${siteData.name.replaceAll("Violet", "{Violet}")}</a>`
|
html += `<a class="chip" ${onlyIfExists(`href="${siteData.url}"`, siteData.url)}>${siteName}: <span class="noHighlight">${siteData.name.replaceAll("Violet", "{Violet}")}</span></a>`
|
||||||
|
|
||||||
}
|
}
|
||||||
html += "</div></div>"
|
html += "</div></div>"
|
||||||
|
|
|
@ -76,11 +76,11 @@
|
||||||
|
|
||||||
<h2><hr>Services</h2>
|
<h2><hr>Services</h2>
|
||||||
<p>List of services for public use hosted on Violet's Purgatory.</p>
|
<p>List of services for public use hosted on Violet's Purgatory.</p>
|
||||||
<a href="https://sxng.violets-purgatory.dev" class="chip">SearXNG: sxng.violets-purgatory.dev</a>
|
<a href="https://sxng.violets-purgatory.dev" class="chip">SearXNG: <span class="noHighlight">sxng.violets-purgatory.dev</span></a>
|
||||||
<!-- <a class="chip">Matrix: matrix.violets-purgatory.dev</a> -->
|
<!-- <a class="chip">Matrix: matrix.violets-purgatory.dev</a> -->
|
||||||
<!-- <a href="https://element.violets-purgatory.dev" class="chip">Element: element.violets-purgatory.dev</a> -->
|
<!-- <a href="https://element.violets-purgatory.dev" class="chip">Element: element.violets-purgatory.dev</a> -->
|
||||||
<a href="https://git.viois.gay" class="chip">Forgejo: git.viois.gay (contact me for an account)</a>
|
<a href="https://git.viois.gay" class="chip">Forgejo: <span class="noHighlight">git.viois.gay</span></a>
|
||||||
<a class="chip">Thumbor: thumbor.violets-purgatory.dev</a>
|
<a class="chip">Thumbor: <span class="noHighlight">thumbor.violets-purgatory.dev</span></a>
|
||||||
<hr>
|
<hr>
|
||||||
<h1>Socials</h1>
|
<h1>Socials</h1>
|
||||||
{PATH_SOCIALS}
|
{PATH_SOCIALS}
|
||||||
|
|
Loading…
Reference in a new issue