add: drawings in questions
This commit is contained in:
parent
6be729de50
commit
16843a6ab8
28 changed files with 1181 additions and 32 deletions
|
@ -18,6 +18,42 @@
|
|||
(div ("class" "skel") ("style" "width: 25%; height: 25px;"))
|
||||
(div ("class" "skel") ("style" "width: 100%; height: 150px"))))))
|
||||
|
||||
(template
|
||||
("id" "carp_canvas")
|
||||
(div
|
||||
("class" "flex flex-col gap-2")
|
||||
(div ("ui_ident" "canvas_loc"))
|
||||
(div
|
||||
("class" "flex justify-between gap-2")
|
||||
(div
|
||||
("class" "flex gap-2")
|
||||
(input
|
||||
("type" "color")
|
||||
("style" "width: 5rem")
|
||||
("ui_ident" "color_picker"))
|
||||
|
||||
(input
|
||||
("type" "range")
|
||||
("min" "1")
|
||||
("max" "25")
|
||||
("step" "1")
|
||||
("value" "2")
|
||||
("ui_ident" "stroke_range")))
|
||||
|
||||
(div
|
||||
("class" "flex gap-2")
|
||||
(button
|
||||
("title" "Undo")
|
||||
("ui_ident" "undo")
|
||||
("type" "button")
|
||||
(icon (text "undo")))
|
||||
|
||||
(button
|
||||
("title" "Redo")
|
||||
("ui_ident" "redo")
|
||||
("type" "button")
|
||||
(icon (text "redo")))))))
|
||||
|
||||
; random js
|
||||
(text "<script data-turbo-permanent=\"true\" id=\"init-script\">
|
||||
document.documentElement.addEventListener(\"turbo:load\", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue