;
This commit is contained in:
parent
267303d4ce
commit
266ed7e24e
4
show.php
4
show.php
@ -135,12 +135,12 @@ foreach ($interfaces as $interface) {
|
||||
<script>
|
||||
function changeColor(pvid, color) {
|
||||
for (let i = 0; i < customColors.sheet.cssRules.length; i++) {
|
||||
if (customColors.sheet.cssRules[i].selectorText == `[style*="--pvid: ${pvid}"]`) {
|
||||
if (customColors.sheet.cssRules[i].selectorText == `[style*="--pvid: ${pvid};"]`) {
|
||||
customColors.sheet.deleteRule(i)
|
||||
break
|
||||
}
|
||||
}
|
||||
customColors.sheet.insertRule(`[style*="--pvid: ${pvid}"] { background-color: ${color} }`)
|
||||
customColors.sheet.insertRule(`[style*="--pvid: ${pvid};"] { background-color: ${color} }`)
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
Loading…
x
Reference in New Issue
Block a user