This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-27
Channels
- # announcements (12)
- # babashka (18)
- # bangalore-clj (3)
- # beginners (110)
- # calva (14)
- # cestmeetup (4)
- # cider (4)
- # clj-kondo (2)
- # clojure (34)
- # clojure-colombia (5)
- # clojure-europe (11)
- # clojure-nl (8)
- # clojure-spec (19)
- # clojure-uk (11)
- # clojurescript (16)
- # clojureverse-ops (8)
- # community-development (4)
- # conjure (65)
- # core-async (19)
- # cursive (22)
- # data-science (7)
- # datascript (1)
- # datomic (20)
- # devcards (1)
- # figwheel-main (64)
- # fulcro (10)
- # graalvm (3)
- # helix (3)
- # kaocha (22)
- # malli (68)
- # meander (6)
- # off-topic (39)
- # pathom (6)
- # pedestal (2)
- # reagent (5)
- # remote-jobs (2)
- # reveal (30)
- # rum (4)
- # shadow-cljs (83)
- # specter (3)
- # tools-deps (9)
- # xtdb (18)
Anyone familiar with a clojurescript library that wraps or mimicks requirejs? I want to dynamically load npm libraries in my clojurescript app
Hi all, quick question. Does anyone recommend a specific approach to checking if the user is accessing the website from mobile or not?
mobile is a general category that is compromised of a set of features. typically, different parts of your code don't care if the browser is viewed from a mobile device, but care about specific features. in other words, you should probably check for: • screen size • detection for specific APIs (eg. non mobile devices can also have touch inputs)
How about this? https://google.github.io/closure-library/api/goog.labs.userAgent.device.html
caveat emptor: unless you're using doing user agent sniffing for analytics or similar, then doing user agent sniffing instead of feature detection is likely to cause future headaches
Interesting @U7RJTCH6J. I think I will check for device width + touch gestures.
@U08JKUHA9 I have heard that checking for user agent is not the best because it varies constantly.
Hi Folks, how can I write this on ClojureScript?
function colorize() {
document.getElementById("val").style.color = 'green';
}
(defn colorize []
(set! (.. (js/document.getElementById "val")
-style -color)
"green"))

https://roman01la.github.io/javascript-to-clojurescript/ is an amazing help figuring out how to translate snippets like that
Hello, I want to include rum/defc components from a cljc file. how can i "refer" to the components from cljs?
it has macros, it seems like (load-file is the way)
nevermind, that's repl only
😄 no idea