The original html is:
<div class=”card”>
<p class=”card-title”><i class=”fas fa-lightbulb”></i> GPIO 2</p>
<label class=”switch”>
<input type=”checkbox” onchange=”toggleCheckbox(this)” id=”2″>
<span class=”slider”></span>
</label>
<p class =”state”>State: <span id=”2s”></span></p>
</div>
To display an external SPIFFS file content, I have changed to:
<div class=”card”>
<p class=”card-title”> Antenna 1</p>
<label class=”switch”>
<input type=”checkbox” onchange=”toggleCheckbox(this)” id=”1″>
<span class=”slider”></span>
</label>
<p <object type=”text/html” data=”/antlabel1.html” ></object></p>
</div>
When I do this using a TABLE, the html file is displayed. In this case, it does not.
Is this possibly a CSS issue?
Suggestions?
Webserver Ex: 2.5 I want to show text labels
2 Answers