Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
Use class instead of id for containers
Browse files Browse the repository at this point in the history
It is invalid HTML to have more than one element on a page with the same id
  • Loading branch information
joshmcrty committed Jul 23, 2017
1 parent 7ddafc6 commit ff177fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/connect.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
outline: none;
}

#container {
.container {
display: block;
text-align: center;
margin-top: 70px;
Expand Down Expand Up @@ -84,13 +84,13 @@
<body>
<div id="titlebar"></div>
<h2>Connect to Home Assistant</h2>
<div id="container">
<div class="container">
<input id="url-input" value="http://localhost:8123" placeholder="URL"><br>
<input id="password-input" value="" type="password" placeholder="Password (optional)">
<br>
<p class="warning">Warning! The password will be stored in plaintext on your computer!</p>
</div>
<div id="container">
<div class="container">
<div>
<button onclick="connect()">Connect</button>
</div>
Expand Down

0 comments on commit ff177fe

Please sign in to comment.