-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
150 lines (134 loc) · 5.43 KB
/
Copy pathoptions.html
File metadata and controls
150 lines (134 loc) · 5.43 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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Gemini API Setup</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
<link href="bootstrap.min.css" rel="stylesheet" crossorigin="anonymous" />
<style>
html {
width: fit-content;
}
body {
min-width: 700px;
background: black;
background-image: linear-gradient(rgba(208, 243, 204, 0.2) 0.1em, transparent 0.1em), linear-gradient(90deg, rgba(208, 243, 204, 0.2) 0.1em, transparent 0.1em);
background-size: 3em 3em;
display: flex;
flex-direction: column;
min-height: 100vh;
margin: 0;
padding: 20px;
font-family: sans-serif;
width: fit-content;
}
.main-content {
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.input-group {
max-width: 500px;
width: 100%;
margin-bottom: 20px;
}
.input-group-text {
width: 50px;
display: flex;
justify-content: center;
align-items: center;
}
#APIKey {
font-size: 22px;
background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white background */
border: 1px solid rgba(255, 255, 255, 0.3); /* Lighter border */
color: rgb(150, 150, 150);
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px);
}
#APIKey::placeholder {
color: rgba(255, 255, 255, 0.5); /* Placeholder color */
}
#APIKey2 {
font-size: 22px;
background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white background */
border: 1px solid rgba(255, 255, 255, 0.3); /* Lighter border */
color: rgb(150, 150, 150);
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px);
}
#APIKey2::placeholder {
color: rgba(255, 255, 255, 0.5); /* Placeholder color */
}
#optionInfo {
text-align: center;
}
.text-info {
color: #158757 !important;
}
.text-light {
color: #d0f3ce !important;
}
#inpStatus {
font-size: 22px;
background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white background */
border: 1px solid rgba(255, 255, 255, 0.3); /* Lighter border */
color: white;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
}
#inpStatus2 {
font-size: 22px;
background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white background */
border: 1px solid rgba(255, 255, 255, 0.3); /* Lighter border */
color: white;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
}
#clearKeys {
margin-top: 20px;
font-size: 16px;
background-color: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.3);
color: #d0f3ce;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
padding: 8px 20px;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.2s;
}
#clearKeys:hover {
background-color: rgba(255, 255, 255, 0.2);
}
footer {
text-align: center;
padding-top: 20px;
}
</style>
</head>
<body>
<header></header>
<main class="main-content">
<div class="input-group mb-3">
<input type="text" id="APIKey" class="form-control" placeholder="API Key 1" aria-describedby="inpStatus" />
<span class="input-group-text material-icons text-danger" id="inpStatus"></span>
</div>
<div class="input-group mb-3">
<input type="text" id="APIKey2" class="form-control" placeholder="API Key 2 (optional)" aria-describedby="inpStatus" />
<span class="input-group-text material-icons text-danger" id="inpStatus2"></span>
</div>
<div id="optionInfo">
<a href="https://aistudio.google.com/apikey" class="text-info" style="font-size: 19px; display: inline">Get a Gemini API key here.</a>
<p class="text-light" style="font-size: 19px; display: inline">Providing 2 API keys increases your request limit.</p>
</div>
<button id="clearKeys">Clear Keys</button>
</main>
<footer>
<script type="module" src="optionsProc.js"></script>
</footer>
</body>
</html>