-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
121 lines (110 loc) · 5.25 KB
/
Copy pathindex.html
File metadata and controls
121 lines (110 loc) · 5.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Firmware Content Extractor | FCE</title>
<meta name="description" content="No need to download the entire Firmware just to get one file. Extract it directly!">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="app-wrapper">
<main class="main-card">
<!-- Header -->
<header class="app-header">
<div class="logo">
<img src="logo.png" alt="fcetool logo">
</div>
<h1 class="title">Firmware Content Extractor</h1>
<p class="subtitle">No need to download the entire Firmware just to get one file. Extract it directly!</p>
<a href="https://github.com/fcetool" target="_blank" rel="noopener" class="opensource-link">
<i class="fab fa-github"></i> github.com/fcetool
</a>
</header>
<!-- Form Area -->
<form id="extractForm" class="extract-form">
<div class="form-grid">
<div class="input-group">
<label class="input-label" for="firmwareUrl">Firmware URL</label>
<input
type="url"
id="firmwareUrl"
name="url"
placeholder="https://example.com/firmware.zip"
required
class="input-field"
>
</div>
<div class="input-group">
<label class="input-label" for="targetSelect">Target File</label>
<select id="targetSelect" name="target" required class="select-field">
<option value="" disabled selected>Choose target file...</option>
</select>
</div>
</div>
<button type="submit" id="submitBtn" class="submit-btn">
<i class="fas fa-bolt"></i>
<span>Extract Now</span>
</button>
</form>
<div id="statusMessage" class="status-message hidden"></div>
<!-- Download Result Area -->
<div id="downloadSection" class="download-section hidden">
<div class="download-header">
<i class="fas fa-check-circle success-icon"></i>
<h3 class="success-title">Ready to Download</h3>
<p class="success-subtitle">File stored permanently on Hugging Face Dataset</p>
</div>
<div class="download-details">
<div class="detail-item">
<span class="detail-label">Status</span>
<span id="statusText" class="detail-value">-</span>
</div>
<div class="detail-item">
<span class="detail-label">Duration</span>
<span id="durationText" class="detail-value">-</span>
</div>
<div class="detail-item">
<span class="detail-label">Target</span>
<span id="targetText" class="detail-value">-</span>
</div>
</div>
<div class="download-actions">
<a href="#" id="downloadBtn" class="download-btn" target="_blank">
<i class="fas fa-download"></i>
<span>Download File</span>
</a>
<button id="newExtractionBtn" class="new-extraction-btn">
<i class="fas fa-plus"></i>
<span>New Extraction</span>
</button>
</div>
</div>
<!-- Integrated Terminal Widget -->
<div class="terminal-widget">
<p class="terminal-note-top">
Use <strong>CLI</strong> for large files (like system.img, system_ext.img, mi_ext.img, vendor.img, odm.img, product.img, ...) exceeding web limits.
</p>
<div class="terminal-body">
<div class="terminal-row">
<span class="terminal-prompt">$</span><span id="line1" class="command-text"></span>
</div>
<div class="terminal-row">
<span class="terminal-prompt">$</span><span id="line2" class="command-text"></span><span class="cursor">|</span>
</div>
</div>
</div>
<!-- Footer Credit -->
<footer class="card-footer">
<div class="developer-tag">
<a href="https://offici5l.github.io" target="_blank" rel="noopener">offici5l.github.io</a>
</div>
</footer>
</main>
</div>
<script src="config.js"></script>
<script src="script.js"></script>
<script src="terminal.js"></script>
</body>
</html>