Skip to content

Commit

Permalink
make pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
t0mg committed Oct 22, 2024
1 parent b7e766b commit 30ebc06
Show file tree
Hide file tree
Showing 7 changed files with 204 additions and 63 deletions.
Binary file removed esp-logo.e558125a.png
Binary file not shown.
Binary file removed favicon.ee2246ac.ico
Binary file not shown.
1 change: 0 additions & 1 deletion index.948eb3e7.js.map

This file was deleted.

22 changes: 10 additions & 12 deletions index.948eb3e7.js → index.e946a3dc.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions index.e946a3dc.js.map

Large diffs are not rendered by default.

242 changes: 192 additions & 50 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,62 +1,203 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Wordclock Flashing Tool</title>
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/xterm.css">
<link href="https://fonts.googleapis.com/css?family=Orbitron" rel="stylesheet">
<link rel="icon" href="favicon.ee2246ac.ico">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/xterm.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/crypto-js.js"></script>
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> -->
<!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> -->
<style>.advanced {

<head>
<meta charset="utf-8">
<title>Wordclock Flashing Tool</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/xterm.css">
<link href="https://fonts.googleapis.com/css?family=Orbitron" rel="stylesheet">
<link rel="icon" href="https://t0mg.github.io/wordclock/logo.6181164d.svg" type="image/svg+xml">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/xterm.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/crypto-js.js"></script>
<style>input[type="checkbox"] {
width: auto;
margin: 10px;
scale: 1.5;
}

body {
text-align: center;
color: #eee;
background: #121212;
flex-direction: column;
align-items: center;
margin: 0;
font: 100% system-ui;
display: flex;
}

button {
color: #fff;
text-transform: uppercase;
cursor: pointer;
background-color: #16a1e7;
border: 0;
border-radius: 0;
width: 100%;
margin: 20px 0 0;
font-size: 1.2rem;
line-height: 2.4rem;
}

button:disabled {
color: gray;
cursor: auto;
background: #121212;
}

a {
color: #16a1e7;
}

div {
padding: 0;
}

p {
text-align: left;
}

.logo {
width: 80vw;
max-width: 160px;
margin: 40px auto;
}

section {
background: #000;
border: none;
border-radius: 0;
width: calc(100vw - 100px);
max-width: 540px;
margin: 0 0 40px;
padding: 20px 15px;
position: relative;
}

.logo, section {
box-shadow: 0 0 15px 1px #ffffff7d;
}

input, select {
border: none;
width: 100%;
margin: 5px 0 0;
padding: 5px;
line-height: 20px;
}

select {
text-align: center;
font-size: 1em;
}

input[type="range"] {
margin-left: 30px;
padding: 0;
position: relative;
}

input[type="range"]:before {
content: attr(data-label);
color: #eee;
width: 25px;
line-height: 20px;
display: inline;
position: absolute;
left: -30px;
}

label {
margin: 20px 0 0;
display: inline-block;
}

h1 {
text-align: center;
text-transform: uppercase;
margin: 0;
padding: 0;
font-size: 1.2em;
font-weight: lighter;
}

.advanced {
display: none !important;
}

body.advancedMode .advanced {
display: initial !important;
}

.red {
color: #121212;
background-color: #faa;
}

#terminal {
margin-top: 20px;
}

progress {
accent-color: #74d419;
background-color: #412824;
width: 100%;
height: 40px;
margin-top: 20px;
}

progress::-webkit-progress-bar {
background-color: #121212;
}

progress::-webkit-progress-value {
background-color: #16a1e7;
}
</style>
</head>
<body>
<h1 align="center"><p><img src="esp-logo.e558125a.png" width="42" height="42" style="vertical-align: middle" crossorigin=""> Wordclock flashing Tool</p></h1>
<h4 align="center">A Serial Flasher utility for the ESP32 based Wordclock project</h4>
<div id="safariErr" style="display: none"><p align="center" style="color: red">This tool is not supported on Safari browser!</p>
</head>

<body>
<img src="https://t0mg.github.io/wordclock/logo.6181164d.svg" class="logo">
<section>
<h1>Wordclock flashing Tool</h1>
<p>A Serial Flasher utility for the <a href="https://github.com/t0mg/wordclock">Wordclock project</a> built with <a href="https://github.com/espressif/esptool-js/tree/main">esptool-js</a></p>
<div id="safariErr" style="display: none">
<p style="color: red">This tool is not supported on Safari browser!</p>
</div>
<div class="container" id="main">
<p>
<label for="advanced">Advanced mode</label><input type="checkbox" id="advanced">
</p>
<div id="program">
<p style="display: none" id="lblConnTo">Connected to device: </p>
<div>
<button id="connectButton">Connect</button>
<button id="disconnectButton">Disconnect</button>
<button class="advanced" id="copyTraceButton">Copy Trace</button>
<button class="advanced red" id="eraseButton">Erase Flash</button>
</div>
<div class="container" id="main">
<hr>
<label for="advanced">Advanced mode</label><input type="checkbox" id="advanced">
<div id="program">
<label style="display: none" id="lblConnTo">Connected to device: </label>

<div>
<input class="btn btn-info btn-sm" type="button" id="connectButton" value="Connect">
<input class="btn btn-warning btn-sm" type="button" id="disconnectButton" value="Disconnect">
<input class="advanced btn btn-info btn-sm" type="button" id="copyTraceButton" value="Copy Trace">
<input class="advanced btn btn-danger btn-sm" type="button" id="eraseButton" value="Erase Flash">
</div>

<div id="flash">
<label for="select">Firmare :</label><span id="fileSelect"></span>
<input class="btn btn-info btn-sm" type="button" id="programButton" value="FLASH">
<progress value="0" max="100" id="progressBar"></progress>
</div>
</div>
<div id="console" class="advanced">
<h3>Console </h3>
<br><br>

<input class="btn btn-info" type="button" id="consoleStartButton" value="Start">
<input class="btn btn-info" type="button" id="consoleStopButton" value="Stop">
<input class="btn btn-info" type="button" id="resetButton" value="Reset">
<hr>
</div>
<div id="terminal" class="advanced"></div>

<div id="flash">
<label style="float: left" for="select">Firmware</label><span id="fileSelect"></span>
<button id="programButton">Flash</button>
<progress value="0" max="100" id="progressBar"></progress>
</div>
<script src="index.948eb3e7.js" type="module"></script>
<script>// Safari 3.0+ "[object HTMLElementConstructor]"
</div>
</div></section>
<section class="advanced">
<div id="console">
<h1>Console </h1>
<div>
<button id="consoleStartButton">Start</button>
<button id="consoleStopButton">Stop</button>
<button id="resetButton">Reset</button>
</div>
</div>
<div id="terminal"></div>
</section>

<script src="https://t0mg.github.io/wordclock/index.e946a3dc.js" type="module"></script>
<script>// Safari 3.0+ "[object HTMLElementConstructor]"
var isSafari = /constructor/i.test(window.HTMLElement) || function(p) {
return p.toString() === "[object SafariRemoteNotification]";
}(!window["safari"] || typeof safari !== "undefined" && window["safari"].pushNotification);
Expand All @@ -66,5 +207,6 @@ <h3>Console </h3>
}

</script>
</body>
</html>
</body>

</html>
1 change: 1 addition & 0 deletions logo.6181164d.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 30ebc06

Please sign in to comment.