-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchange.html
100 lines (89 loc) · 2.73 KB
/
change.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
96
97
98
99
100
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>API Anahtarı Değiştir</title>
<link rel="stylesheet" href="style.css">
<style>
body {
font-family: Arial, sans-serif;
background-color: #272727;
color: white;
max-width: 600px;
margin: 0 auto;
padding: 20px;
}
input {
width: 100%;
padding: 10px;
margin: 10px 0;
border: none;
border-radius: 5px;
}
button {
padding: 10px 20px;
background-color: #5A3E7B;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
button:hover {
background-color: #4CAF50;
}
/* Navbar CSS */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #333;
padding: 10px 20px;
}
.navbar a {
color: white;
text-decoration: none;
padding: 10px;
transition: background-color 0.3s;
}
.navbar a:hover {
background-color: #575757;
}
.navbar .logo {
font-size: 1.5rem;
font-weight: bold;
}
.navbar .nav-links {
display: flex;
gap: 20px;
}
</style>
</head>
<body>
<!-- Navbar -->
<nav class="navbar">
<div class="logo">Fatrocu</div>
<div class="nav-links">
<a href="index.html">Ana Sayfa</a>
</div>
</nav>
<h1>API Anahtarını Değiştir</h1>
<input type="text" id="apiKeyInput" placeholder="Yeni API Anahtarınızı Girin">
<button id="saveButton">Kaydet</button>
<script>
// Sayfa yüklendiğinde mevcut API anahtarını göstermek için
document.getElementById('apiKeyInput').value = localStorage.getItem('API_KEY') || '';
// API anahtarını kaydetme
document.getElementById('saveButton').addEventListener('click', () => {
const newApiKey = document.getElementById('apiKeyInput').value;
if (newApiKey) {
localStorage.setItem('API_KEY', newApiKey);
alert('API Anahtarı başarıyla kaydedildi!');
} else {
alert('Lütfen geçerli bir API anahtarı girin.');
}
});
</script>
</body>
</html>