-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAxialSearch.html
More file actions
41 lines (40 loc) · 1.03 KB
/
AxialSearch.html
File metadata and controls
41 lines (40 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Axial Company Search</title>
<style>
body {
font-family: sans-serif;
padding: 2rem;
}
input[type="text"] {
font-size: 1.2rem;
padding: 0.5rem;
width: 300px;
}
input[type="submit"] {
font-size: 1.2rem;
padding: 0.5rem 1rem;
}
</style>
</head>
<body>
<h1>Axial Company Search</h1>
<form id="companyForm">
<input type="text" id="companyInput" placeholder="Enter company name" required>
<input type="submit" value="Go">
</form>
<script>
document.getElementById('companyForm').addEventListener('submit', function(e) {
e.preventDefault();
const company = document.getElementById('companyInput').value.trim().toLowerCase();
if (company) {
const slug = company.split(/\s+/).join('-');
const url = `https://network.axial.net/company/${slug}`;
window.open(url, '_blank');
}
});
</script>
</body>
</html>