Making a Copy-wrong right Web Component

Danny Engelman - May 3 '21 - - Dev Community

I might be a bit harsh, but I always judge a book by its cover.

And websites by the copyright notations:

It is 2021, if I see:

I also wonder if your business processes are up to date

One Web Component is forever enough:

customElements.define("copy-right", class extends HTMLElement{
  connectedCallback(){
    this.innerHTML = "Copyright " + new Date().getFullYear()
  }
});
Enter fullscreen mode Exit fullscreen mode

Now all HTML required is:

<copy-right></copy-right>
Enter fullscreen mode Exit fullscreen mode



. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player