Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 1.25 KB

File metadata and controls

48 lines (36 loc) · 1.25 KB

Module Data.DOM.Simple.Window

Location

class Location b where
  getLocation :: forall eff. b -> Eff (dom :: DOM | eff) String
  setLocation :: forall eff. String -> b -> Eff (dom :: DOM | eff) Unit
  search :: forall eff. b -> Eff (dom :: DOM | eff) String
Instances
instance domLocation :: Location DOMLocation

Window

class Window b where
  document :: forall eff. b -> Eff (dom :: DOM | eff) HTMLDocument
  navigator :: forall eff. b -> Eff (dom :: DOM | eff) DOMNavigator
  location :: forall eff. b -> Eff (dom :: DOM | eff) DOMLocation
  setTimeout :: forall eff. b -> Number -> Eff (dom :: DOM | eff) Unit -> Eff (dom :: DOM | eff) Timeout
  setInterval :: forall eff. b -> Number -> Eff (dom :: DOM | eff) Unit -> Eff (dom :: DOM | eff) Timeout
  clearTimeout :: forall eff. b -> Timeout -> Eff (dom :: DOM | eff) Unit
  innerWidth :: forall eff. b -> Eff (dom :: DOM | eff) Number
  innerHeight :: forall eff. b -> Eff (dom :: DOM | eff) Number
Instances
instance htmlWindow :: Window HTMLWindow

globalWindow

globalWindow :: HTMLWindow

getLocationValue

getLocationValue :: String -> String -> Maybe String