MCPcopy Create free account
hub / github.com/OpenReservation/OpenReservation / getOffsets

Function getOffsets

OpenReservation/wwwroot/Scripts/jquery-ui.js:786–791  ·  view source on GitHub ↗
(offsets, width, height)

Source from the content-addressed store, hash-verified

784 };
785
786 function getOffsets(offsets, width, height) {
787 return [
788 parseFloat(offsets[0]) * (rpercent.test(offsets[0]) ? width / 100 : 1),
789 parseFloat(offsets[1]) * (rpercent.test(offsets[1]) ? height / 100 : 1)
790 ];
791 }
792
793 function parseCss(element, property) {
794 return parseInt($.css(element, property), 10) || 0;

Callers 1

jquery-ui.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected