firmware wip - cleanup a bit, I noticed that i am aleady running out of IRAM (94% used)

This commit is contained in:
Marcus 2024-04-30 21:08:25 +02:00
parent 651eb6b847
commit c93933ba20

View file

@ -178,42 +178,37 @@ const char HTMLheaderP1[] PROGMEM = R"EOF(
<head> <head>
<meta charset='UTF-8'> <meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'> <meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>)EOF"; <title>
)EOF";
// page title // page title
const char HTMLheaderP2[] PROGMEM = R"EOF( const char HTMLheaderP2[] PROGMEM = R"EOF(
</title> </title>
<!-- <link rel='stylesheet' href='/style.css'> --> <!-- <link rel='stylesheet' href='/style.css'> -->
<style> <style>
/* Having the whole CSS here ensures it's all the time present*/ /* Having the whole CSS here ensures it's all the time present*/
body { body {
color: #cae0d0; color: #cae0d0;
background-color: #1d211e; background-color: #1d211e;
font-family: helvetica; font-family: helvetica;
} }
.center {
.center {
width: 60%; min-width: 420px; width: 60%; min-width: 420px;
margin: auto; margin: auto;
} }
h1, h2, h3, h4, h5 {
h1, h2, h3, h4, h5 {
text-align: center; text-align: center;
} }
a:link, a:visited {
a:link, a:visited {
color: #04AA6D; color: #04AA6D;
} }
a:hover {
a:hover {
color: #64AA6D; color: #64AA6D;
} }
a:active {
a:active {
color: #04AA6D; color: #04AA6D;
} }
.infomsg , .warnmsg {
.infomsg , .warnmsg {
color: #fff; color: #fff;
border-radius: 3px; border-radius: 3px;
padding: 4px; padding: 4px;
@ -224,22 +219,17 @@ const char HTMLheaderP2[] PROGMEM = R"EOF(
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
} }
.infomsg {
.infomsg {
background: #04AA6D; background: #04AA6D;
} }
.warnmsg {
.warnmsg {
background: #aa4204; background: #aa4204;
} }
.inputShort {
.inputShort {
width: 42px; width: 42px;
} }
.nav {
/* from https://gist.github.com/iamhelenliu/5755179 - thank you! */
.nav {
background: #333; background: #333;
width: 60%; min-width: 420px; width: 60%; min-width: 420px;
margin: auto; margin: auto;
@ -247,20 +237,19 @@ const char HTMLheaderP2[] PROGMEM = R"EOF(
padding: 0; padding: 0;
position: relative; position: relative;
border-radius: 3px; border-radius: 3px;
} }
.nav li { .nav li {
display: inline-block; display: inline-block;
list-style: none; list-style: none;
} }
.nav li:first-of-type { .nav li:first-of-type {
background: #026b45; background: #026b45;
border-top-left-radius: 3px; border-top-left-radius: 3px;
border-bottom-left-radius: 3px; border-bottom-left-radius: 3px;
} }
.nav li a , .nav span {
.nav li a , .nav span {
color: #ddd; color: #ddd;
display: block; display: block;
font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif; font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
@ -268,35 +257,31 @@ const char HTMLheaderP2[] PROGMEM = R"EOF(
padding: 10px 20px; padding: 10px 20px;
text-decoration: none; text-decoration: none;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
} }
.nav li a:hover , .activeMenu , .menuTime{
.nav li a:hover , .activeMenu , .menuTime{
background: #04AA6D; background: #04AA6D;
color: #fff; color: #fff;
border-radius: 3px; border-radius: 3px;
} }
.nav li a:active {
.nav li a:active {
color: #cae0d0; color: #cae0d0;
} }
.activeMenu {
.activeMenu {
background: #444; background: #444;
} }
.MenuTime {
.MenuTime {
background: #292929; background: #292929;
} }
</style> </style>
</head> </head>
<body> <body>
<ul class='nav'>)EOF"; <ul class='nav'>)EOF";
// Menu as unordered List, defined in returnHTMLheader // Menu as unordered List, defined in returnHTMLheader
const char HTMLfooter[] PROGMEM = R"EOF( const char HTMLfooter[] PROGMEM = R"EOF(
</div> </div>
</body> </body>
</html> </html>
)EOF"; )EOF";
@ -318,11 +303,6 @@ const char HTMLhelp[] PROGMEM = R"EOF(
Here you will get some helpful help. Here you will get some helpful help.
)EOF"; )EOF";
const char JSreplaceStr[] PROGMEM = R"EOF(
<script>
</script>
)EOF";
const char JSconvertDateToEpoch[] PROGMEM = R"EOF( const char JSconvertDateToEpoch[] PROGMEM = R"EOF(
<script> <script>