-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscanner.html
More file actions
151 lines (135 loc) · 7.24 KB
/
scanner.html
File metadata and controls
151 lines (135 loc) · 7.24 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.0">
<title>Cryptixel</title>
<link rel="stylesheet" href="css/scanner.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
</head>
<body>
<div class="scanner-container">
<div class="background-animation">
<div class="scanning-particles"></div>
</div>
<div class="scanner-content">
<div class="scanner-header">
<h1 class="scanner-title">Cryptixel</h1>
<p class="scanner-subtitle">Decode encrypted Cryptixel QR</p>
</div>
<div class="scanner-main" id="scannerMain">
<div class="input-methods">
<div class="method-tabs">
<button class="tab-btn active" data-tab="manual">Manual Input</button>
<button class="tab-btn" data-tab="file">Upload File</button>
<button class="tab-btn" data-tab="camera">Camera Scan</button>
</div>
<div class="tab-content active" id="manualTab">
<div class="input-section">
<label for="qrDataInput" class="input-label">QR Code Data</label>
<textarea
id="qrDataInput"
class="data-input"
placeholder="Paste the QR code data here..."
rows="6"
></textarea>
</div>
<div class="input-section">
<label for="passwordInput" class="input-label">Decryption Password</label>
<input
type="password"
id="passwordInput"
class="password-input"
placeholder="Enter the password to decrypt"
>
<div class="password-toggle">
<button type="button" id="togglePassword" class="toggle-btn">👁️</button>
</div>
</div>
<button id="scanBtn" class="scan-btn">
<span class="btn-text">Decode QR Code</span>
<div class="btn-particles"></div>
</button>
</div>
<div class="tab-content" id="fileTab">
<div class="file-upload-area" id="fileUploadArea">
<div class="upload-icon">📁</div>
<p class="upload-text">Drop QR code image here or click to browse</p>
<input type="file" id="fileInput" accept="image/*" hidden>
<button class="browse-btn" onclick="document.getElementById('fileInput').click()">
Browse Files
</button>
</div>
<div class="input-section">
<label for="filePasswordInput" class="input-label">Decryption Password</label>
<input
type="password"
id="filePasswordInput"
class="password-input"
placeholder="Enter the password to decrypt"
>
</div>
<button id="fileScanBtn" class="scan-btn" disabled>
<span class="btn-text">Decode from Image</span>
</button>
</div>
<div class="tab-content" id="cameraTab">
<div class="camera-container">
<video id="cameraVideo" class="camera-video" autoplay playsinline></video>
<div class="camera-overlay">
<div class="scan-frame"></div>
<p class="scan-instruction">Position the QR code within the frame</p>
</div>
</div>
<div class="camera-controls">
<button id="startCameraBtn" class="camera-btn">Start Camera</button>
<button id="stopCameraBtn" class="camera-btn" disabled>Stop Camera</button>
<button id="captureBtn" class="camera-btn" disabled>Capture</button>
</div>
<div class="input-section">
<label for="cameraPasswordInput" class="input-label">Decryption Password</label>
<input
type="password"
id="cameraPasswordInput"
class="password-input"
placeholder="Enter the password to decrypt"
>
</div>
</div>
</div>
</div>
<div class="result-section hidden" id="resultSection">
<div class="result-header">
<h3 class="result-title">Decoded Message</h3>
<button id="newScanBtn" class="new-scan-btn">New Scan</button>
</div>
<div class="result-content">
<div class="result-text" id="resultText"></div>
<div class="result-actions">
<button id="copyBtn" class="action-btn">📋 Copy</button>
<button id="saveBtn" class="action-btn">💾 Save</button>
<button id="shareBtn" class="action-btn">📤 Share</button>
</div>
</div>
<div class="result-info">
<div class="info-item">
<span class="info-label">Decryption:</span>
<span class="info-value">✅ Successful</span>
</div>
<div class="info-item">
<span class="info-label">Integrity:</span>
<span class="info-value">✅ Verified</span>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jsQR.js"></script>
<script src="js/crypto.js"></script>
<script src="js/particles.js"></script>
<script src="js/qr-generator.js"></script>
<script src="js/qr-scanner-lib.js"></script>
<script src="js/scanner.js"></script>
</body>
</html>