summaryrefslogtreecommitdiff
path: root/elm3/Lib/Ffi.elm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-12-30 09:49:13 +0100
committerYorhel <git@yorhel.nl>2019-12-30 09:49:13 +0100
commitd79c982ee876502db2e1a12752667c6a198c2ddc (patch)
treeccd4a4e72e5b0d3dd412bed6aee58044e93893f0 /elm3/Lib/Ffi.elm
parente146ed7bda12d369532e485ca0c2e3d823811854 (diff)
Actually, let's get rid of v3 now that it doesn't work anymore anyway
Diffstat (limited to 'elm3/Lib/Ffi.elm')
-rw-r--r--elm3/Lib/Ffi.elm29
1 files changed, 0 insertions, 29 deletions
diff --git a/elm3/Lib/Ffi.elm b/elm3/Lib/Ffi.elm
deleted file mode 100644
index 6c3cbf46..00000000
--- a/elm3/Lib/Ffi.elm
+++ /dev/null
@@ -1,29 +0,0 @@
--- Elm 0.19: "We've removed all Native modules and plugged all XSS vectors,
--- it's now impossible to talk with Javascript other than with ports!"
--- Me: "Oh yeah? I'll just run sed over the generated Javascript!"
-
--- This module is a hack to work around the lack of an FFI (Foreign Function
--- Interface) in Elm. The functions in this module are stubs, their
--- implementations are replaced by the Makefile with calls to
--- window.elmFfi_<name> and the actual implementations are in static/v3/vndb.js.
---
--- Use sparingly, all of this will likely break in future Elm versions.
-module Lib.Ffi exposing (..)
-
-import Html exposing (Attribute)
-import Html.Attributes exposing (title)
-
-
--- This is an "onclick = openLightbox(this)" attribute
-openLightbox : Attribute msg
-openLightbox = title ""
-
-
--- Set the innerHTML attribute of a node
-innerHtml : String -> Attribute msg
-innerHtml = always (title "")
-
-
--- The current year
-curYear : Int
-curYear = 2018