@@ -14,11 +14,11 @@ class EthmarksHeader extends HTMLElement {
1414 </nav>
1515 </header>` ;
1616
17- const activeLink = this . getAttribute ( ' active' ) ;
17+ const activeLink = this . getAttribute ( " active" ) ;
1818 if ( activeLink ) {
19- const targetLink = this . querySelector ( ' #nav-' + activeLink . toLowerCase ( ) ) ;
19+ const targetLink = this . querySelector ( " #nav-" + activeLink . toLowerCase ( ) ) ;
2020 if ( targetLink ) {
21- targetLink . classList . add ( ' active' ) ;
21+ targetLink . classList . add ( " active" ) ;
2222 }
2323 }
2424 }
@@ -29,17 +29,17 @@ class EthmarksFooter extends HTMLElement {
2929 this . innerHTML = `
3030 <footer>
3131 <span id="source">
32- <a href="https://github.com/ethmarks/ethmarks.github.io" id="sourcelink" target="_blank" >Website Source</a>
32+ <a href="https://github.com/ethmarks/ethmarks.github.io" id="sourcelink">Website Source</a>
3333 </span>
3434 <span id="copyright"><a href="https://ethmarks.github.io/about/">Ethan Marks</a>, ©2026</span>
3535 <span id="email">
36- <a href="mailto:ethmarks.dev@gmail.com" target="_blank" >Contact</a>
36+ <a href="mailto:ethmarks.dev@gmail.com">Contact</a>
3737 </span>
3838 </footer>` ;
3939
40- const sourceLink = this . getAttribute ( ' source' ) ;
40+ const sourceLink = this . getAttribute ( " source" ) ;
4141 if ( sourceLink ) {
42- const sourceAnchor = this . querySelector ( ' a#sourcelink' ) ;
42+ const sourceAnchor = this . querySelector ( " a#sourcelink" ) ;
4343 if ( sourceAnchor ) {
4444 sourceAnchor . href = sourceLink ;
4545 }
@@ -51,10 +51,12 @@ class EthmarksFooter extends HTMLElement {
5151 const containerHeight = window . innerHeight ;
5252 const contentHeight = Math . max (
5353 document . documentElement . scrollHeight ,
54- document . body . scrollHeight
54+ document . body . scrollHeight ,
5555 ) ;
5656
57- if ( contentHeight === 0 ) { return ; }
57+ if ( contentHeight === 0 ) {
58+ return ;
59+ }
5860
5961 if ( contentHeight > containerHeight ) {
6062 body . classList . add ( heightOverflowClass ) ;
@@ -73,5 +75,5 @@ class EthmarksFooter extends HTMLElement {
7375}
7476
7577// Register the custom elements
76- customElements . define ( ' ethmarks-header' , EthmarksHeader ) ;
77- customElements . define ( ' ethmarks-footer' , EthmarksFooter ) ;
78+ customElements . define ( " ethmarks-header" , EthmarksHeader ) ;
79+ customElements . define ( " ethmarks-footer" , EthmarksFooter ) ;
0 commit comments