export class Project extends HTMLElement {
constructor() {
super()
const shadow = this.attachShadow({mode: 'open'})
const textArea = document.createElement('textarea')
textArea.value = localStorage.getItem(
window.location.hash
) ?? ''
textArea.addEventListener('input', e => {
localStorage.setItem(
window.location.hash,
e.target.value
)
})
shadow.appendChild(textArea)
}
connectedCallback() {
// add css
}
}