hound v1.1.1 Hound.Helpers.Orientation View Source
Functions related to orientation
Link to this section Summary
Functions
Gets browser's orientation. Will return either :landscape
or :portrait
Sets browser's orientation
Link to this section Functions
Link to this function
orientation()
View Source
orientation()
View Source
orientation() :: :landscape | :portrait
orientation() :: :landscape | :portrait
Gets browser's orientation. Will return either :landscape
or :portrait
.
Link to this function
set_orientation(orientation)
View Source
set_orientation(orientation)
View Source
set_orientation(:landscape | :portrait) :: :ok
set_orientation(:landscape | :portrait) :: :ok
Sets browser's orientation.
:landscape
or :portrait
are valid values for the first argument.
set_orientation(:landscape)
set_orientation(:portrait)