mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 08:49:52 +03:00
244 lines
12 KiB
HTML
244 lines
12 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<link
|
|
href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAYFBMVEX///8zMzM1NTU0NDQ2Njby8vJ4eHhBQUGSkpJdXV36+vqbm5tpaWlPT0/Ly8uGhoZxcXHAwMBVVVVJSUm3t7fu7u6mpqY8PDzo6OiPj4/U1NR+fn5ra2tGRkbb29vExMQQm/MfAAAA4klEQVQ4jd1SbXaDMAwD2/kAElpKIRTa7v63nGPY9gjhAKt+OZGeItspik9D3Vqt9eU+nPCtC0CMsh/rHN8EwjICga5Thicof4Dk1ME/CA8EYkOPNF9FYu5dhVGJYU4MSozOzVSrzkcF2b3AxktopJ4Ni6Had6L5BfDbAC58QKMOAnLbYTwR/LrajEBcQye1unEg9HvBHWMw33I5aOli2Xcx9NKGWUZ7WyfWJZOKwWQN68Tpme6rvm6rEtDrXaSY3J+C+q8Dz+Ft4E0hvwLPOcMzZlsZY/zSZf/LmkQxTtl/jG/cCAezKUvMMwAAAABJRU5ErkJggg=="
|
|
rel="icon" type="image/x-icon" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<meta name="description" content="">
|
|
<meta name="author" content="">
|
|
<title id="customname"></title>
|
|
<link href="css/required.css" rel="stylesheet">
|
|
</head>
|
|
|
|
<body>
|
|
<div class="wrapper">
|
|
<nav id="sidebar">
|
|
<div id="dismiss">
|
|
<i class="glyphicon glyphicon-arrow-left"></i>
|
|
</div>
|
|
<div class="sidebar-header">
|
|
<h1 id="customname2" class="text-center" onclick="home();"></h1>
|
|
<h6 id="mainver" class="text-center"></h6>
|
|
</div>
|
|
<ul class="list-unstyled components">
|
|
<li class="active">
|
|
<a href="#" id="custom_status"><i class="glyphicon glyphicon-home"></i>Dashboard</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" id="status"><i class="glyphicon glyphicon-equalizer"></i>System Status</a>
|
|
</li>
|
|
<li>
|
|
<a href="#homeSubmenu" data-toggle="collapse" aria-expanded="false"><i
|
|
class="glyphicon glyphicon-cog"></i>Settings</a>
|
|
<ul class="collapse list-unstyled" id="homeSubmenu">
|
|
<li>
|
|
<a href="#" id="network"><i class="glyphicon glyphicon-signal"></i>Wireless Network</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" id="general"><i class="glyphicon glyphicon-list-alt"></i>General Settings</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" id="mqtt"><i class="glyphicon glyphicon-link"></i>MQTT Settings</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" id="ntp"><i class="glyphicon glyphicon-hourglass"></i>Time Settings</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" id="custom"><i class="glyphicon glyphicon-wrench"></i>Custom Settings</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<a href="#" id="backup"><i class="glyphicon glyphicon-floppy-disk"></i>Backup & Restore</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" id="reset"><i class="glyphicon glyphicon-repeat"></i>Factory Reset</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" id="restart"><i class="glyphicon glyphicon-refresh"></i>Restart System</a>
|
|
</li>
|
|
<li>
|
|
<a data-toggle="modal" href="#update"><i class="glyphicon glyphicon-open"></i>Update Firmware</a>
|
|
</li>
|
|
</ul>
|
|
<ul class="list-unstyled CTAs">
|
|
<li>
|
|
<a id="helpurl" target="_blank" class="article">Help</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" class="article" onclick="logout();">Logout</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-xs-3">
|
|
<div style="position:fixed; top:0; bottom:40px; float:none;">
|
|
<hr>
|
|
</hr>
|
|
<footer style="position:fixed; bottom: 0; height:40px;"><a id="appurl"
|
|
href="https://github.com/proddy" target="_blank">
|
|
<h6 id="appurl2"></h6>
|
|
</a></footer>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<div id="content">
|
|
<button type="button" id="sidebarCollapse" class="btn btn-info navbar-btn">
|
|
<i class="glyphicon glyphicon-menu-hamburger"></i>
|
|
<span>Menu</span>
|
|
</button>
|
|
<div id="ajaxcontent">
|
|
</div>
|
|
|
|
<div id="destroy" class="modal fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">Factory Reset</h4>
|
|
</div>
|
|
<div class="alert alert-warning">
|
|
<h5><b>Warning!</b> This action <strong>cannot</strong> be undone. This will permanently
|
|
delete <strong>all
|
|
the settings and logs.</strong> Please make sure you've made a backup before
|
|
resetting!</h5>
|
|
</div>
|
|
<div class="modal-body">
|
|
<h5>Please type in the hostname of the device to confirm.</h5>
|
|
<div style="clear:both;">
|
|
<br>
|
|
</div>
|
|
<p>
|
|
<input type="text" class="form-control input-block" id="compare"
|
|
oninput="compareDestroy()">
|
|
</p>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button id="destroybtn" type="button" disabled="" onclick="destroy();"
|
|
class="btn btn-block btn-danger">I understand, reset all my settings</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="reboot" class="modal fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">Restart System</h4>
|
|
</div>
|
|
<div class="alert alert-warning">
|
|
<h5><b>Are you sure you want to restart the system?</b></h5>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button id="restartbtn" type="button" onclick="restart();"
|
|
class="btn btn-block btn-danger">Restart</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="signin" class="modal fade" data-backdrop="static" data-keyboard="false" tabindex="-1" role="dialog"
|
|
aria-labelledby="myModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h4 class="modal-title">Please enter password to login to the system</h4>
|
|
</div>
|
|
<div class="row">
|
|
<br>
|
|
<div class="col-md-8 col-md-offset-2">
|
|
<div class="login-panel panel panel-default">
|
|
<div class="panel-body">
|
|
<form role="form" onsubmit="login(); return false">
|
|
<fieldset>
|
|
<div class="form-group">
|
|
<input id="password" class="form-control" placeholder="Password"
|
|
name="password" type="password" value="" required=""
|
|
title="Please enter the password">
|
|
</div>
|
|
<button type="submit"
|
|
class="btn btn-success btn-md pull-right">Login</button>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="update" class="modal fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">Update Firmware</h4>
|
|
</div>
|
|
<div class="alert alert-warning">
|
|
<strong>Warning!</strong> Please make sure you've made a backup first before updating
|
|
</div>
|
|
<div class="modal-body">
|
|
<div>
|
|
<div>
|
|
<button id="updateb" onclick="switchfirmware()" type="submit" class="btn btn-success btn-sm pull-right">Release</button>
|
|
</div>
|
|
|
|
<div id="onlineupdate">
|
|
<h5 id=releasehead></h5>
|
|
<div style="clear:both;">
|
|
<br>
|
|
</div>
|
|
<pre id="releasebody">Getting update information from GitHub...</pre>
|
|
<div class="pull-right">
|
|
<a class="pull-right" id="downloadupdate">
|
|
<button type="button" class="btn btn-primary">Download</button>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div style="clear:both;">
|
|
<br>
|
|
</div>
|
|
<div>
|
|
<div class="form-group">
|
|
<input id="binform" onchange="allowUpload();" type="file" name="update"
|
|
accept=".bin">
|
|
</div>
|
|
<div class="pull-right">
|
|
<button onclick="upload();" class="btn btn-primary" id="upbtn"
|
|
disabled="">Update</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div style="clear:both;">
|
|
<br>
|
|
</div>
|
|
<div class="modal-footer">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<footer class="footer">
|
|
<div id="commit" class="container"></div>
|
|
</footer>
|
|
<div class="overlay"></div>
|
|
<script src="js/required.js"></script>
|
|
<script src="js/myesp.js"></script>
|
|
<script>start();</script>
|
|
</body>
|
|
|
|
</html> |