Advertisement
Guest User

Untitled

a guest
Jul 11th, 2022
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.44 KB | None | 0 0
  1. (defpackage #:testapp
  2.   (:use #:cl #:clog)
  3.   (:export init))
  4.  
  5. (in-package #:testapp)
  6.  
  7. (defun homepage (body)
  8.   (let ((hello-element
  9.           (create-child body "<h1>Hello World! (click me!)</h1>")))
  10.     (set-on-click hello-element
  11.                   (lambda (obj)
  12.                     (declare (ignore obj))
  13.                     (setf (color hello-element) :green)))))
  14.  
  15. (defun init ()
  16.   (initialize #'homepage)
  17.   (loop (sleep 360)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement