Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95030065
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
Thu, Dec 12, 07:20
Size
368 B
Mime Type
text/x-java
Expires
Sat, Dec 14, 07:20 (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