From 294c8e19b136f06ca7fa1bb4e4d109e90e2bb033 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sat, 23 Nov 2019 16:38:47 -0800 Subject: Add Com.MusicMeetsComics --- Miso/FFI/Document.hs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Miso/FFI/Document.hs (limited to 'Miso/FFI/Document.hs') diff --git a/Miso/FFI/Document.hs b/Miso/FFI/Document.hs new file mode 100644 index 0000000..f3a7bef --- /dev/null +++ b/Miso/FFI/Document.hs @@ -0,0 +1,11 @@ +{-# LANGUAGE NoImplicitPrelude #-} +module Miso.FFI.Document where + +import GHCJS.Types +import Protolude + +foreign import javascript unsafe "$r = document.getElementById($1);" + getElementById :: JSString -> IO JSVal + +foreign import javascript unsafe "$r = document.querySelector($1);" + querySelector :: JSString -> IO JSVal -- cgit v1.2.3