Fork me on GitHub
#hoplon
<
2019-02-27
>
denis_krivosheev13:02:06

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!")))

flyboarder16:02:37

Chances are you are missing the hoplon.jquery namespace

denis_krivosheev19:02:44

@flyboarder here it is:

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

denis_krivosheev19:02:05

should I require hoplon.jquery?

flyboarder20:02:27

Are you using boot to compile your Hoplon app?

flyboarder20:02:05

Could you also share your boot build tasks!?