diff --git a/doc/clog-manual.html b/doc/clog-manual.html index b3ea33b..db7246a 100644 --- a/doc/clog-manual.html +++ b/doc/clog-manual.html @@ -307,7 +307,8 @@ returns returns a blank page, if it is set to :error will signal an error and if set to a string will display the string. boot-function if set is called with the url and the contents of boot-file and its return value replaces the contents sent to the brower, this allows adding content for search engine optimization, -see tutorial 12 for an example.
+see tutorial 12 for an example. If port is nil or 0 a random available port +number is chosen. @@ -463,6 +464,20 @@ and not for security purposes or html escapes.Change line feeds to
.
[function] JS-TO-INTEGER VALUE &KEY (DEFAULT 0)
+ +Returns two values first as an integer and second the original value
[function] JS-TO-FLOAT VALUE &KEY (DEFAULT 0.0d0)
+ +Returns two values first as a float and second the original value
CLOG Color utilities
@@ -1154,7 +1169,8 @@ element objects.[generic-function] CREATE-ELEMENT CLOG-OBJ HTML-TAG &REST ALL-ARGS &KEY CONTENT CLOG-TYPE HTML-ID AUTO-PLACE &ALLOW-OTHER-KEYS
-Create a new CLOG-element as child of CLOG-OBJ with any possible keywords.
Create a new CLOG-ELEMENT as child of CLOG-OBJ with any
+possible tag and keywords.
TEXT-VALUE for just the text associated
+ Use TEXT-VALUE for just the text associated
with
@@ -1390,7 +1406,7 @@ Normally index follows normal sequence of elements.
Get/Setf the first text node of CLOG-ELEMENT.
Unlike TEXT this is only the text associated with this
[generic-function] RIGHT CLOG-ELEMENT
-Get/Setf right (defaults to us :px units).
Get/Setf right (defaults to use :px units).
[generic-function] BOTTOM CLOG-ELEMENT
-Get/Setf bottom (defaults to us :px units).
Get/Setf bottom (defaults to use :px units).
[generic-function] CREATE-IMAGE-DATA CLOG-CONTEXT2D WIDTH HEIGHT
-Create black image data
Create blank image data
[generic-function] CREATE-GUI-WINDOW CLOG-OBJ &KEY TITLE CONTENT LEFT TOP WIDTH HEIGHT MAXIMIZE HAS-PINNER KEEP-ON-TOP WINDOW-PARAM HIDDEN CLIENT-MOVEMENT BORDER-CLASS TITLE-CLASS HTML-ID
Create a clog-gui-window. If client-movement is t then -use jquery-ui to move/resize and will not work on mobile. When client-movement -is t only on-window-move is fired once at start of drag and on-window-move-done -at end of drag and on-window-resize at start of resize and -on-window-resize-done at end of resize. If has-pinner a toggle wil appear on -title bar to allow pinning the window in place, if keep-on-top t then when -pinned also will keep-on-top. If had-pinned is nil and keep-on-top t then -the window will be set to keep-on-top always. window-param is a general parameter -for identifiying the window to use with window-to-top-by-param or window-by-param.
Reader for Body Element object
+ +[generic-function] VISIBILITY-STATE CLOG-DOCUMENT
+ +Get visibility-state. Returns the string 'visible' if +browser is in non-minmized state and is partialy visible and 'hidden' is +browser is minimized or no part of page is visible including an OS screen +lock.
[generic-function] READY-STATE CLOG-DOCUMENT
-Get ready-state.
Get ready-state. Returns 'loading'|'interactive'|'complete'.
+The state would only change if the boot-page was still loading css, graphics, etc.
+Under normal circumstance there is no need in CLOG to check if the state is ready
+as on-new-window is only called once one can interact with page. See also
+SET-ON-READY-STATE-CHANGE
LOAD-ONLY-ONCE is t first checks if previously loaded with load-
Set the ON-FULL-SCREEN-CHANGE-HANDLER for CLOG-OBJ.
If ON-FULL-SCREEN-CHANGE-HANDLER is nil unbind the event.
[generic-function] SET-ON-VISIBILITY-CHANGE CLOG-DOCUMENT ON-VISIBILITY-CHANGE-HANDLER
+ +Set the ON-VISIBILITY-CHANGE-HANDLER for CLOG-OBJ.
+If ON-VISIBILITY-CHANGE-HANDLER is nil unbind the event. This event
+is fired when the page visibility has changed such as a tab being
+switch of browser minimized. Use the VISIBILITY-STATE property to
+identify chage.
[generic-function] SET-ON-READY-STATE-CHANGE CLOG-DOCUMENT ON-READY-STATE-CHANGE-HANDLER
+ +Set the ON-READY-STATE-CHANGE-HANDLER for CLOG-OBJ.
+If ON-READY-STATE-CHANGE-HANDLER is nil unbind the event.
DEFAULT-ANSWER on time out.
[function] CLOG-REPL &KEY (CLOG-GUI-INITIALIZE T) (CLOG-WEB-INITIALIZE T)
[function] CLOG-REPL &KEY (CLOG-GUI-INITIALIZE T) (CLOG-WEB-INITIALIZE T) (BOOT-FILE "/debug.html") (PORT 8080)
Set a path /repl that opens a blank page and sets the global clog-user:*body* to last window openned to /repl. Debug mode is -set (logging to browser console),