fix: HTML entities в onclick
This commit is contained in:
@@ -138,7 +138,7 @@ input[type=text],input[type=password]{width:100%;box-sizing:border-box;padding:9
|
|||||||
|
|
||||||
html += R"(<div class='card'>
|
html += R"(<div class='card'>
|
||||||
<h3>Управление</h3>
|
<h3>Управление</h3>
|
||||||
<button class='btn btn-open' onclick="fetch('/open',{method:'POST'}).then(()=>window.location='/?ok=1')">Открыть шлагбаум</button>
|
<button class='btn btn-open' onclick='fetch("/open",{method:"POST"}).then(()=>window.location="/?ok=1")'>Открыть шлагбаум</button>
|
||||||
</div>)";
|
</div>)";
|
||||||
|
|
||||||
html += R"(<div class='card'>
|
html += R"(<div class='card'>
|
||||||
|
|||||||
Reference in New Issue
Block a user