A set of basic utility functions and wrappers for basic java-script and dom-related work. The intention here is either to wrap js-platform calls with more simple functions. Simple in the sense of at least more simple and meaningfully named functions, but also in the sense of less parameters necessary or containing already references to the environment, like window, document, etc
## js-utils A set of basic utility functions and wrappers for basic java-script and dom-related work. The intention here is either to wrap js-platform calls with more simple functions. Simple in the sense of at least more simple and meaningfully named functions, but also in the sense of less parameters necessary or containing already references to the environment, like window, document, etc
(eventTarget event)
Gets the target element of the event
Gets the target element of the event
(getElementById! id)
Looks for the the element in the js document with the given id
Looks for the the element in the js document with the given id
(getStylesFromCSS element)
Gets the CSS styles completely computed out of all css associated to the element
Gets the CSS styles completely computed out of all css associated to the element
(registerWindowEvent! eventName handler)
Registers the given event handler, so that it attends js-events with the given name
Registers the given event handler, so that it attends js-events with the given name
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close