mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-07 19:20:20 -08:00
update documentation, remove tabs
This commit is contained in:
parent
2c9ce0864f
commit
25a9462f1f
84 changed files with 2163 additions and 2278 deletions
|
|
@ -10,22 +10,22 @@
|
|||
"On-new-window handler." ; Optional docstring to describe function
|
||||
|
||||
(let ((hello-element ; hello-element is a local variable that
|
||||
; will be bound to our new CLOG-Element
|
||||
|
||||
;; This application simply creates a CLOG-Element as a child to the
|
||||
;; CLOG-body object in the browser window.
|
||||
|
||||
;; A CLOG-Element represents a block of HTML (we will see later ways to
|
||||
;; directly create buttons and all sorts of HTML elements in more lisp
|
||||
;; like ways with no knowledge of HTML or javascript. CREATE-CHILD
|
||||
;; allows any html element to be created and returned as a CLOG-Element.
|
||||
(create-child body "<h1>Hello World! (click me!)</h1>")))
|
||||
; will be bound to our new CLOG-Element
|
||||
|
||||
;; This application simply creates a CLOG-Element as a child to the
|
||||
;; CLOG-body object in the browser window.
|
||||
|
||||
;; A CLOG-Element represents a block of HTML (we will see later ways to
|
||||
;; directly create buttons and all sorts of HTML elements in more lisp
|
||||
;; like ways with no knowledge of HTML or javascript. CREATE-CHILD
|
||||
;; allows any html element to be created and returned as a CLOG-Element.
|
||||
(create-child body "<h1>Hello World! (click me!)</h1>")))
|
||||
|
||||
(set-on-click hello-element ; Now we set a function to handle clicks
|
||||
(lambda (obj) ; In this case we use an anonymous function
|
||||
(declare (ignore obj))
|
||||
(setf (color hello-element) :green)))))
|
||||
|
||||
(lambda (obj) ; In this case we use an anonymous function
|
||||
(declare (ignore obj))
|
||||
(setf (color hello-element) :green)))))
|
||||
|
||||
;;; To see all the events one can set and the many properties and styles that
|
||||
;;; exist, take a look through the CLOG manual or the file clog-element.lisp
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue