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.
 
 
 

19 lines
632 B

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