-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
95 lines (92 loc) · 2.63 KB
/
index.html
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Asset Management</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
margin: 0;
padding: 0;
}
.container {
max-width: 800px;
margin: 50px auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
color: #333;
text-align: center;
}
form {
margin-top: 20px;
}
label {
display: block;
margin-bottom: 8px;
}
input[type="text"] {
width: 100%;
padding: 8px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
button[type="submit"] {
background-color: #4CAF50;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}
button[type="submit"]:hover {
background-color: #45a049;
}
.message {
margin-top: 20px;
padding: 10px;
border-radius: 4px;
font-size: 16px;
}
.error {
background-color: #f44336;
color: #fff;
}
.success {
background-color: #4CAF50;
color: #fff;
}
</style>
</head>
<body>
<div class="container">
<h1>Asset Management</h1>
<form id="assetForm">
<label for="asset">Enter Asset:</label>
<input type="text" id="asset" name="asset" required>
<button type="submit">Encrypt Asset</button>
</form>
<div id="message" class="message"></div>
</div>
<script>
document.getElementById('assetForm').addEventListener('submit', async function(event) {
event.preventDefault();
const assetInput = document.getElementById('asset');
const assetValue = assetInput.value;
// Placeholder for actual encryption logic
const encryptedAsset = `Encrypted: ${assetValue}`;
// Display encrypted asset
const messageElement = document.getElementById('message');
messageElement.innerHTML = `<p class="success">${encryptedAsset}</p>`;
});
</script>
</body>
</html>