A text-based bookmark manager rendered in a web page
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
632 B

const textarea = document.querySelector('textarea')
function updateValue(e) {
let val = textarea.value.toLowerCase()
document.querySelectorAll('.signets tr').forEach((e) => {
let listItemText = e.innerHTML.toLowerCase();
listItemText.includes(val) ?
e.classList.remove('hidden') : e.classList.add('hidden')
})
11 months ago
}
document.addEventListener("DOMContentLoaded", function(event) {
textarea.addEventListener("input", updateValue);
11 months ago
})
document.querySelectorAll('[color]').forEach((e) => {
e.style.background = `linear-gradient(var(--background), ${e.getAttribute('color')} `
11 months ago
})