кавычки и кнопка копирования кода на стр установки квиза
This commit is contained in:
parent
c30966a1ba
commit
4de864a06a
@ -142,7 +142,7 @@ export default function QuizInstallationCard() {
|
|||||||
id="outlined-multiline-static"
|
id="outlined-multiline-static"
|
||||||
multiline
|
multiline
|
||||||
rows={9}
|
rows={9}
|
||||||
value={`<div id="idpena"></div> <script type="module"> import widget from "https://${isTestServer ? "s." : ""}hbpn.link/export/pub.js"; widget.create({ selector: "idpena", quizId: ${quiz.qid} }) </script>`}
|
value={`<div id="idpena"></div> <script type="module"> import widget from "https://${isTestServer ? "s." : ""}hbpn.link/export/pub.js"; widget.create({ selector: "idpena", quizId: "${quiz.qid}" }) </script>`}
|
||||||
sx={{
|
sx={{
|
||||||
"& .MuiInputBase-root": {
|
"& .MuiInputBase-root": {
|
||||||
maxWidth: "520px",
|
maxWidth: "520px",
|
||||||
@ -158,11 +158,11 @@ export default function QuizInstallationCard() {
|
|||||||
<IconButton
|
<IconButton
|
||||||
edge="end"
|
edge="end"
|
||||||
sx={{ marginTop: "22px" }}
|
sx={{ marginTop: "22px" }}
|
||||||
// onClick={() => navigator.clipboard.writeText( // TODO
|
onClick={() => navigator.clipboard.writeText( // TODO
|
||||||
// document.getElementById(
|
document.getElementById(
|
||||||
// "outlined-multiline-static"
|
"outlined-multiline-static"
|
||||||
// ).value
|
).value
|
||||||
// )}
|
)}
|
||||||
>
|
>
|
||||||
<CopyIcon
|
<CopyIcon
|
||||||
color={"#ffffff"}
|
color={"#ffffff"}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user