-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from nickschot/feature/initial-tests
Initial tests & function docs
- Loading branch information
Showing
16 changed files
with
2,163 additions
and
2,011 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
/** | ||
* Return the current window width | ||
* NOTE: do not use in FastBoot | ||
* @returns {number} | ||
*/ | ||
export default function getWindowHeight() { | ||
return window.innerHeight || document.documentElement.clientHeight || document.getElementsByTagName('body')[0].clientHeight; | ||
return window.innerHeight; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
/** | ||
* Return the current window width | ||
* NOTE: do not use in FastBoot | ||
* @returns {number} | ||
*/ | ||
export default function getWindowWidth() { | ||
return window.innerWidth || document.documentElement.clientWidth || document.getElementsByTagName('body')[0].clientWidth; | ||
return window.innerWidth; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.