mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-07 03:00:49 -08:00
updates to use specifc element types
This commit is contained in:
parent
264cef0db2
commit
04b2fd316f
7 changed files with 27 additions and 15 deletions
|
|
@ -15,9 +15,9 @@
|
|||
(loop
|
||||
(if (and (validp obj) (connection-data-item obj "isRunning"))
|
||||
(progn
|
||||
(setf (color obj) "green")
|
||||
(setf (color obj) :green)
|
||||
(sleep 0.3)
|
||||
(setf (color obj) "red")
|
||||
(setf (color obj) :red)
|
||||
(sleep 0.3))
|
||||
(return))))
|
||||
(setf (connection-data-item obj "isRunning") nil)
|
||||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
(setf (title (html-document body)) "Tutorial 6")
|
||||
|
||||
(set-on-click (create-child body "<h1>(click me to start!)</h1>")
|
||||
(set-on-click (create-section body :h1 :content "(click me to start!)")
|
||||
#'my-on-click)
|
||||
(run body))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue