Skip to content

Commit f7c91f5

Browse files
author
John McCambridge
committed
Remove function and create html form
1 parent 11ad5ed commit f7c91f5

File tree

2 files changed

+20
-18
lines changed

2 files changed

+20
-18
lines changed

packages/app/browser/src/app.html

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,26 @@
77
</head>
88

99
<body>
10-
<div class="login">
11-
<div class="back"> <- Back </div>
12-
<h4 class="title">code-server</h4>
13-
<h2 class="subtitle">
14-
Enter server password
15-
</h2>
16-
<form>
17-
<div class="mdc-text-field">
18-
<input type="password" id="password" class="mdc-text-field__input" required>
19-
<label class="mdc-floating-label" for="password">Password</label>
20-
<div class="mdc-line-ripple"></div>
21-
</div>
22-
<button id="submit" class="mdc-button mdc-button--unelevated">
23-
<span class="mdc-button__label">Enter IDE</span>
24-
</button>
10+
<form action="javascript:history.go(0)">
11+
<div class="login">
12+
<div class="back">
13+
<- Back </div> <h4 class="title">code-server</h4>
14+
<h2 class="subtitle">
15+
Enter server password
16+
</h2>
17+
<form>
18+
<div class="mdc-text-field">
19+
<input type="password" id="password" class="mdc-text-field__input" required>
20+
<label class="mdc-floating-label" for="password">Password</label>
21+
<div class="mdc-line-ripple"></div>
22+
</div>
23+
<button id="submit" class="mdc-button mdc-button--unelevated">
24+
<span class="mdc-button__label">Enter IDE</span>
25+
</button>
26+
</form>
27+
<div id="error-display"></div>
28+
</div>
2529
</form>
26-
<div id="error-display"></div>
27-
</div>
2830
</body>
2931

3032
</html>

packages/app/browser/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ const errorDisplay = document.getElementById("error-display") as HTMLDivElement;
3838

3939
if (document.referrer === document.location.href && matches) {
4040
errorDisplay.innerText = "Password is incorrect!";
41-
}
41+
}

0 commit comments

Comments
 (0)