@jspsych-contrib/plugin-device-orientation
v0.2.0
Published
Require mobile devices to be in a specific orientation (landscape or portrait) before continuing
Downloads
84
Readme
plugin-device-orientation
Overview
Require the device to be in a specific orientation (landscape or portrait) before continuing. If the device is already in the correct orientation, the trial ends immediately. On desktop browsers, orientation is determined by the window dimensions, so the trial will typically end immediately unless the browser window happens to be sized in the non-target orientation.
Loading
In browser
<script src="https://unpkg.com/@jspsych-contrib/plugin-device-orientation"></script>Via NPM
npm install @jspsych-contrib/plugin-device-orientationimport jsPsychDeviceOrientation from "@jspsych-contrib/plugin-device-orientation";Compatibility
@jspsych-contrib/plugin-device-orientation requires jsPsych v8.0.0 or later.
Documentation
See documentation
