tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

1556414-1.html (461B)


      1 <html>
      2 <head>
      3    <meta charset="utf-8"/>
      4 </head>
      5 <body>
      6    <custom-span text="בדיקה"></custom-span>
      7 </body>
      8 <script>
      9 class CustomSpan extends HTMLElement {
     10 	constructor() {
     11 		super();
     12 
     13 		var shadow = this.attachShadow({ mode: 'open' });
     14 
     15 		const span = document.createElement('span');
     16 		span.innerText = this.getAttribute('text');
     17 
     18 		shadow.appendChild(span);
     19 	}
     20 }
     21 
     22    window.customElements.define('custom-span', CustomSpan);
     23 </script>
     24 </html>