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
629 B

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