# src/scripts/CDP/Framework/Orientation.js

## Maintainability

77.14

## Lines of code

25

## Difficulty

14.38

## Estimated Errors

0.15

## Function weight

### By Complexity

### By SLOC

var CDP; (function (CDP) { var Framework; (function (Framework) { /** * @en Orientation code * @ja orientation 識別子 */ var Orientation; (function (Orientation) { Orientation[Orientation["PORTRAIT"] = 0] = "PORTRAIT"; Orientation[Orientation["LANDSCAPE"] = 1] = "LANDSCAPE"; })(Orientation = Framework.Orientation || (Framework.Orientation = {})); /** * @en Get Orientation enum code * @ja Orientation の取得 */ function getOrientation() { var $window = $(window); return ($window.width() < $window.height()) ? Orientation.PORTRAIT : Orientation.LANDSCAPE; } Framework.getOrientation = getOrientation; })(Framework = CDP.Framework || (CDP.Framework = {})); })(CDP || (CDP = {})); //# sourceMappingURL=data:application/json;base64,