mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-07 03:00:49 -08:00
style
This commit is contained in:
parent
a46f5dbf6f
commit
73bc5bf10f
14 changed files with 111 additions and 196 deletions
|
|
@ -5,7 +5,6 @@
|
|||
(in-package :clog-user)
|
||||
|
||||
(defun on-new-window (body)
|
||||
|
||||
(let* ((vid (create-video body :source "https://www.w3schools.com/html/mov_bbb.mp4"))
|
||||
(tmp (create-br body))
|
||||
(vpl (create-button body :content ">"))
|
||||
|
|
@ -18,19 +17,15 @@
|
|||
(ast (create-button body :content "||"))
|
||||
(alc (create-form-element body :input))
|
||||
(tmp (create-hr body)))
|
||||
|
||||
(set-on-click vpl (lambda (obj)(play-media vid)))
|
||||
(set-on-click apl (lambda (obj)(play-media aud)))
|
||||
(set-on-click vst (lambda (obj)(pause-media vid)))
|
||||
(set-on-click ast (lambda (obj)(pause-media aud)))
|
||||
|
||||
(set-on-time-update vid (lambda (obj)(setf (value vlc) (media-position vid))))
|
||||
(set-on-time-update aud (lambda (obj)(setf (value alc) (media-position aud))))
|
||||
|
||||
(run body)))
|
||||
|
||||
(defun start-tutorial ()
|
||||
"Start turtorial."
|
||||
|
||||
(initialize #'on-new-window)
|
||||
(open-browser))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue