Created
April 28, 2019 08:26
-
-
Save jasongorman/b2280ef7cbcd7e0975a45f005f886404 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function TotalSecondsView(clock, element) { | |
clock.addObserver(this); | |
this.clock = clock; | |
this.element = element; | |
this.update = () => { | |
this.element.innerHTML = " <div class=\"row\">\n" + | |
" <div class=\"col-sm-4\">\n" + | |
" <p>Total Seconds: </p> " + this.clock.totalSeconds() + "\n" + | |
" </div>\n" + | |
" </div>\n" | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment