fix: кнопка вне raw string, нет проблем с кавычками

This commit is contained in:
Aleksei
2026-06-17 09:33:45 +00:00
parent d543937c68
commit beebb67fec
+4 -4
View File
@@ -136,10 +136,10 @@ input[type=text],input[type=password]{width:100%;box-sizing:border-box;padding:9
else if (msg.length() > 0) else if (msg.length() > 0)
html += "<div class='msg'>" + msg + "</div>"; html += "<div class='msg'>" + msg + "</div>";
html += R"(<div class='card'> html += "<div class='card'>";
<h3>Управление</h3> html += "<h3>Управление</h3>";
<button class='btn btn-open' onclick='fetch(&quot;/open&quot;,{method:&quot;POST&quot;}).then(()=>window.location=&quot;/?ok=1&quot;)'>Открыть шлагбаум</button> html += "<button class='btn btn-open' onclick='fetch(\"/open\",{method:\"POST\"}).then(()=>window.location=\"/?ok=1\")'>Открыть</button>";
</div>)"; html += "</div>";
html += R"(<div class='card'> html += R"(<div class='card'>
<form action='/save' method='post'> <form action='/save' method='post'>