Skip to content

Commit

Permalink
ho scoperto che non serve perforza npm per far funzionare l'intellise…
Browse files Browse the repository at this point in the history
…nse e autocomplete di tailwindcss. grazie al suggerimento trovato su github tailwindlabs/tailwindcss-intellisense#27 (comment)
  • Loading branch information
Laaouatni committed Dec 23, 2024
1 parent a3fcb1d commit 5e0cece
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 2025/WebComponentsLearning/TodoItem.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class TodoItem extends HTMLElement {
constructor() {
super();
this.innerHTML = `Hi I am custom ${this.innerText}!`;
this.innerHTML = `Hi I am custom <h3>${this.innerText}</h3>!`;
}
}

customElements.define("todo-item", TodoItem);
customElements.define("todo-item", TodoItem);
7 changes: 7 additions & 0 deletions 2025/WebComponentsLearning/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script defer src="./TodoItem.js"></script>
<script src="https://cdn.tailwindcss.com"></script>
<style>
h3 {
color: red;
}
</style>
</head>
<body>
<h3>other</h3>
<todo-item>hello</todo-item>
</body>
</html>
Empty file.

0 comments on commit 5e0cece

Please sign in to comment.