Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95164416
height.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Dec 13, 09:16
Size
368 B
Mime Type
text/x-java
Expires
Sun, Dec 15, 09:16 (2 d)
Engine
blob
Format
Raw Data
Handle
22916372
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
height.js
View Options
import getWindow from './isWindow';
import offset from './offset';
/**
* Returns the height of a given element.
*
* @param node the element
* @param client whether to use `clientHeight` if possible
*/
export default function height(node, client) {
var win = getWindow(node);
return win ? win.innerHeight : client ? node.clientHeight : offset(node).height;
}
Event Timeline
Log In to Comment