-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathflash0.html
More file actions
148 lines (146 loc) · 5.24 KB
/
flash0.html
File metadata and controls
148 lines (146 loc) · 5.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>CYD ESP32Marauder Installer</title>
<img src="Images/flashlogo.png" alt="Logo" class="logo">
<meta name="description" content="Easily allows users to install the ESP32-Marauder firmware on the Cheap-Yellow-Display." />
<meta name="viewport" content="width=device-width" />
<meta name="color-scheme" content="dark light" />
<style>
body {
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
padding: 0;
margin: 0;
line-height: 1.4;
}
fieldset {
margin: 20px;
padding: 14px;
border-radius: 20px;
background-color: rgba(255, 255, 255, 0.1);
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
display: inline-block;
border: none;
}
legend {
font-size: 28px;
font-weight: bold;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(2px);
border-radius: 20px;
padding: 10px 20px;
color: white;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
select {
padding: 10px;
border-radius: 8px;
border: none;
background-color: grey;
color: white;
font-size: 16px;
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
}
select:focus {
outline: none;
box-shadow: 0 0 10px #00FFFF;
}
.invisible {
visibility: hidden;
}
.hidden {
display: none;
}
esp-web-install-button[install-unsupported] {
visibility: inherit;
}
.logo {
max-width: 400px;
display: block;
margin-left: auto;
margin-right: auto;
}
.footer {
color: #FFF;
margin-bottom: 0px;
margin-top: 8em;
border-top: 2px solid #FF1493;
padding-top: 30px;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
}
.wrapper {
display: flex;
justify-content: center;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #333;
color: #fff;
}
a {
color: #00FFFF;
}
}
</style>
<script type="module" src="https://unpkg.com/esp-web-tools@8.0.1/dist/web/install-button.js?module"></script>
</head>
<body>
<center>
<p class="wrapper" align="center">
<span style="font-size: 20px; color: #FF1493;">This utility is designed to flash the ESP32-Marauder onto a CYD (Cheap Yellow Display).</span>
</p>
<div style="text-align: center; margin: 20px auto; max-width: 600px; padding: 15px; border: 2px solid #00FFFF; border-radius: 15px; background-color: rgba(255, 255, 255, 0.1); box-shadow: 0px 0px 10px rgba(0, 255, 255, 0.3); background-image: url('Images/usb-plug.gif'); background-size: 12% auto; background-position: left 0% top -2px; background-repeat: no-repeat;">
<p style="color: #00FFFF; font-size: 18px; font-weight: bold; margin-bottom: 10px;">The CM-Box Web Flasher</p>
<p style="color: #FFF; font-size: 16px; margin: 0;">
Your gateway to effortlessly installing ESP32-Marauder firmware. Designed with a sleek web interface, it transforms
firmware flashing into a fast, hassle-free experience, empowering your devices for cutting-edge network security
and testing adventures.
</p>
</div>
<fieldset>
<legend>1.11.0 Marauder-Choose Your Device:</legend>
<select id="select-1.11.0">
<option value="" selected disabled>Choose a device</option>
<option value="cyd_microusb_1.11.0">1.11.0 CYD Micro-USB only</option>
<option value="cyd_2usb_1.11.0">1.11.0 CYD with 2 USB</option>
</select>
<p style="color: white; font-size: 18px; margin-top: 10px;">
<strong>For more build info, visit <a href="https://github.com/justcallmekoko/ESP32Marauder/actions" style="color: lightblue;">v1.2.0</a>.</strong><br>
</p>
</fieldset>
<p class="button-row" align="center">
<esp-web-install-button class="invisible"></esp-web-install-button>
</p>
</center>
<script>
document.getElementById('select-1.1.0').addEventListener('change', (event) => {
const button = document.querySelector('esp-web-install-button');
button.manifest = `web/manifest_${event.target.value}.json`;
button.classList.remove('invisible');
});
document.getElementById('select-1.2.0').addEventListener('change', (event) => {
const button = document.querySelector('esp-web-install-button');
button.manifest = `web/manifest_${event.target.value}.json`;
button.classList.remove('invisible');
});
// Visitor counter
window.addEventListener('DOMContentLoaded', (event) => {
if (localStorage.getItem('page_view_count')) {
localStorage.setItem('page_view_count', Number(localStorage.getItem('page_view_count')) + 1);
} else {
localStorage.setItem('page_view_count', 1);
}
document.getElementById('visitor-counter').innerText = `Visitor count: ${localStorage.getItem('page_view_count')}`;
});
</script>
<div class="footer">
✨ <a href="https://github.com/ATOMNFT/CM-Box" style="color:#00FFFF;">CM-Box</a> —
Installer powered by — <a href="https://esphome.github.io/esp-web-tools/" style="color:#00FFFF;"> ESP Web Tools</a> 🛠️
<p id="visitor-counter"></p>
</div>
</body>
</html>