hoplon

The :hoplon: ClojureScript Web Framework - http://hoplon.io/
denis_krivosheev 2019-02-27T13:30:06.001700Z

Hello everyone. Could someone help me please. I need to add the onscroll handler to the body element of document. But this doesn’t work for me:

(html
  (head
    (link :href "app.css" :rel "stylesheet" :type "text/css"))
  (body :scroll #(println "!!!!!!")
   (h1 "Hello, Hoplon!")))

flyboarder 2019-02-27T16:17:33.003Z

@denis_krivosheev can we see your ns?

flyboarder 2019-02-27T16:34:37.003700Z

Chances are you are missing the hoplon.jquery namespace

denis_krivosheev 2019-02-27T19:09:44.004200Z

@flyboarder here it is:

(page "index.html"
      (:require [eddie-ui.data :refer [bots]]
                [eddie-ui.api :refer [load-bots]]))

denis_krivosheev 2019-02-27T19:10:05.004600Z

should I require hoplon.jquery?

flyboarder 2019-02-27T20:44:27.005200Z

Are you using boot to compile your Hoplon app?

flyboarder 2019-02-27T20:47:13.005600Z

@denis_krivosheev ^

flyboarder 2019-02-27T20:48:05.006900Z

Could you also share your boot build tasks!?