Skip to content

Commit afab101

Browse files
committed
Format HTML & JS codes
1 parent a58a629 commit afab101

File tree

1 file changed

+27
-30
lines changed

1 file changed

+27
-30
lines changed

routes/index.tsx

+27-30
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,34 @@ import { h } from "preact";
33

44
export default function Home() {
55
return (
6-
<div>
7-
<a href="https://www.active-connector.com/">
8-
<img
9-
src="/logo.png"
10-
alt="Active Connector company logo"
11-
/>
12-
</a>
13-
<h2>
14-
Skill Test (Software Engineer)
15-
</h2>
16-
17-
<p>
18-
<input type="text" id="jobInput"/>
19-
</p>
20-
<button id="search" onclick="search()">Search</button>
6+
<div>
7+
<a href="https://www.active-connector.com/">
8+
<img
9+
src="/logo.png"
10+
alt="Active Connector company logo"
11+
/>
12+
</a>
13+
<h2>
14+
Skill Test (Software Engineer)
15+
</h2>
16+
<p>
17+
<input type="text" id="jobInput"/>
18+
</p>
19+
<button id="search" onclick="search()">Search</button>
20+
<script>
21+
function search(){
22+
var input = document.getElementById("jobInput").value
2123

22-
23-
<script>
24-
function search(){
25-
var input = document.getElementById("jobInput").value
26-
27-
if (input == "engineer") {
28-
document.getElementById("div").innerText = "Job \"engineer\" is open for you!"
29-
} else {
30-
document.getElementById("div").innerText = "Job \"" + input + "\" is not available"
31-
}
32-
33-
location.replace("http://localhost:8000/jobs/" + input)
34-
}
35-
</script>
36-
</div>
24+
if (input == "engineer") {
25+
document.getElementById("div").innerText = "Job \"engineer\" is open for you!"
26+
} else {
27+
document.getElementById("div").innerText = "Job \"" + input + "\" is not available"
28+
}
29+
30+
location.replace("http://localhost:8000/jobs/" + input)
31+
}
32+
</script>
33+
</div>
3734

3835
);
3936
}

0 commit comments

Comments
 (0)