We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fb7949 commit dc04f58Copy full SHA for dc04f58
2 files changed
web-components/video-card/video-card.html
@@ -1,3 +1,4 @@
1
+<!-- HTML template -->
2
<link href="web-components/video-card/video-card.css" rel="stylesheet">
3
<div class="video-card">
4
<div>
web-components/video-card/video-card.js
@@ -1,12 +1,11 @@
// Fetch HTML template
-var html_template;
fetch("web-components/video-card/video-card.html")
.then(stream => stream.text())
5
.then(text => createComponent(text))
6
7
// Create web component
8
function createComponent(html) {
9
- // Web component
+ // Web component class
10
class VideoCard extends HTMLElement {
11
12
// Creates element with default values
0 commit comments