This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-12-06
Channels
- # admin-announcements (7)
- # beginners (37)
- # boot (36)
- # cider (8)
- # cljs-dev (16)
- # clojure (155)
- # clojure-hamburg (1)
- # clojure-russia (2)
- # clojurecup (21)
- # clojurescript (69)
- # clojurex (12)
- # core-async (2)
- # datavis (3)
- # datomic (5)
- # devcards (4)
- # events (2)
- # hoplon (15)
- # lein-figwheel (45)
- # off-topic (22)
- # om (77)
- # re-frame (8)
- # reagent (7)
- # slack-help (1)
how does one achieve this with hoplon?
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/grids-responsive-old-ie-min.css">
<![endif]-->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/grids-responsive-min.css">
<!--<![endif]-->
@xifi: there is ($comment "...")
but that won't help in this case. however if u look into its source code, u might see how it was done and u can create conditionals yourself too.
but u can also provide dom element content as string with the :html
attribute, but in this case that might not help directly either
@onetom: Hey I hoped there's a simpler way to do this in hoplon since we are building the page dynamically anyway. Isn't there something like
(if (and (= browser 'ie) (< browser-version 8))
(link rel ...)
...
yeah, there should be something like that. i vaguely remember looking into this but at the end i was like "fuck ie8" and moved on
i dont think there is anything built in like that in hoplon at the moment, but even if there would be, it would just be a thin wrapper around a some browser api
i would recommend digging around in mdn. like if i google for "mdn browser version" the 1st hit is: https://developer.mozilla.org/en/docs/Browser_Detection_and_Cross_Browser_Support
though the 1st line in it says: > Warning: The content of this article may be out of date. This article was written in 2003 and is not on par with current standards. so keep diggin' 😉