Skip to content

Commit dc04f58

Browse files
committed
comment code
1 parent 8fb7949 commit dc04f58

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

web-components/video-card/video-card.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- HTML template -->
12
<link href="web-components/video-card/video-card.css" rel="stylesheet">
23
<div class="video-card">
34
<div>

web-components/video-card/video-card.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
// Fetch HTML template
2-
var html_template;
32
fetch("web-components/video-card/video-card.html")
43
.then(stream => stream.text())
54
.then(text => createComponent(text))
65

76
// Create web component
87
function createComponent(html) {
9-
// Web component
8+
// Web component class
109
class VideoCard extends HTMLElement {
1110

1211
// Creates element with default values

0 commit comments

Comments
 (0)