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)
|
||||
html += "<div class='msg'>" + msg + "</div>";
|
||||
|
||||
html += R"(<div class='card'>
|
||||
<h3>Управление</h3>
|
||||
<button class='btn btn-open' onclick='fetch("/open",{method:"POST"}).then(()=>window.location="/?ok=1")'>Открыть шлагбаум</button>
|
||||
</div>)";
|
||||
html += "<div class='card'>";
|
||||
html += "<h3>Управление</h3>";
|
||||
html += "<button class='btn btn-open' onclick='fetch(\"/open\",{method:\"POST\"}).then(()=>window.location=\"/?ok=1\")'>Открыть</button>";
|
||||
html += "</div>";
|
||||
|
||||
html += R"(<div class='card'>
|
||||
<form action='/save' method='post'>
|
||||
|
||||
Reference in New Issue
Block a user