fix: кнопка вне raw string, нет проблем с кавычками
This commit is contained in:
@@ -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("/open",{method:"POST"}).then(()=>window.location="/?ok=1")'>Открыть шлагбаум</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'>
|
||||||
|
|||||||
Reference in New Issue
Block a user