fix: HTML entities в onclick

This commit is contained in:
Aleksei
2026-06-17 09:30:17 +00:00
parent e704b00f5b
commit d543937c68
+1 -1
View File
@@ -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(&quot;/open&quot;,{method:&quot;POST&quot;}).then(()=>window.location=&quot;/?ok=1&quot;)'>Открыть шлагбаум</button>
</div>)"; </div>)";
html += R"(<div class='card'> html += R"(<div class='card'>