-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
95 lines (91 loc) · 2.56 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
<!-- <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Username Input Page</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body, html {
height: 100%;
}
body {
background-image: url('luffy_img.png'); /* Replace with your image */
background-size: cover;
background-position: center;
display: flex;
justify-content: center;
align-items: center;
font-family: Arial, sans-serif;
}
.container {
background: rgba(0, 0, 0, 0.6); /* Translucent effect */
padding: 20px;
border-radius: 8px;
text-align: center;
color: white;
width: 300px;
}
input[type="text"] {
width: 100%;
padding: 10px;
border-radius: 5px;
border: none;
margin-top: 10px;
font-size: 16px;
}
.btn {
margin-top: 20px;
padding: 10px;
background-color: green;
border: none;
color: white;
cursor: pointer;
border-radius: 5px;
font-size: 16px;
}
#loading, #error, #result {
display: none;
margin-top: 20px;
}
#loading {
color: yellow;
}
#error {
color: red;
}
#result {
color: white;
text-align: left;
}
</style>
</head>
<body>
<div class="container">
<h2>Enter your GitHub username</h2>
<input type="text" placeholder="Username" id="github-username">
<button class="btn" onclick="submitUsername()">Submit</button>
<div id="loading">Loading...</div>
<div id="error"></div>
<div id="result">
<div class="character-name"></div>
<div class="bounty-amount"></div>
<div class="score"></div>
<div class="repos"></div>
<div class="followers"></div>
<div class="stars"></div>
</div>
</div>
<script src="function.js"></script>
<script>
function submitUsername() {
const username = document.getElementById('github-username').value.trim();
CalculateBounty(username); // Pass the username to the CalculateBounty function
}
</script>
</body>
</html> -->