MCPcopy Create free account
hub / github.com/TruthHun/DocHub / getOffsets

Function getOffsets

static/Home/default/js/flat-ui.js:1043–1048  ·  view source on GitHub ↗
( offsets, width, height )

Source from the content-addressed store, hash-verified

1041 _position = $.fn.position;
1042
1043function getOffsets( offsets, width, height ) {
1044 return [
1045 parseFloat( offsets[ 0 ] ) * ( rpercent.test( offsets[ 0 ] ) ? width / 100 : 1 ),
1046 parseFloat( offsets[ 1 ] ) * ( rpercent.test( offsets[ 1 ] ) ? height / 100 : 1 )
1047 ];
1048}
1049
1050function parseCss( element, property ) {
1051 return parseInt( $.css( element, property ), 10 ) || 0;

Callers 1

flat-ui.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected