-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.js
31 lines (30 loc) · 1.06 KB
/
header.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
class CustomHeader extends HTMLElement {
constructor() {
super();
this.innerHTML = `
<link rel="stylesheet" type="text/css" href="style.css">
<div class="navbar">
<div class="logo">
<a href="index.html">Home</a>
</div>
<div class="menu">
<ul>
<li><a href="index.html">About</a></li>
<li><a href="resume.html">Resume</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<div class="contact-info">
<ul>
<li><a href="#" class="phone-no">+372 56920636</a></li>
<li><a href="#" class="sep">/</a></li>
<li><a href="#" class="email">[email protected]</a></li>
</ul>
</div>
</div>
`;
}
}
window.customElements.define('custom-header', CustomHeader);