add jquery to tut 29

This commit is contained in:
David Botton 2022-02-16 23:04:27 -05:00
parent 218fb14a53
commit 4922a69e9e
3 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,4 @@
;; Demonstrate CLOG presentations
;; Demonstrate CLOG-presentations and CLOG-jQuery
;; links established between CLOG objects and Lisp objects
(defpackage #:clog-tut-29
@ -49,6 +49,8 @@
(lambda (obj)
(declare (ignore obj))
(setf (value i2) (my-slot lisp-obj))))
;; Use jQuery to set all inputs to have a background color
(setf (background-color (create-jquery body "input[type=text]")) :beige)
;; This updates an element on the page by just changing the value of the linked
;; slot and my-count can be adjusted mid loop from web page
(loop