jquery-position-ling

1.0.1 • Public • Published

Jquery position ling

2020-04-28

An adaptation of the jquery.position method.

This is a cheaper version than the original one. I dropped a few things I didn't understand, in particular the hooks variable.

But in most cases it should behave the same, I suppose.

Install

npm install jquery-position-ling

Usage

(in a web context)

const jqp = require("jquery-position-ling");


let el = document.querySelector(".bg1");
console.log(jqp.position(el)); // Object { top: 135.6666717529297, left: 8 }

History Log

  • 1.0.1 -- 2020-04-28

    • fix offset variable conflict with function name
  • 1.0.0 -- 2020-04-28

    • initial commit

Readme

Keywords

Package Sidebar

Install

npm i jquery-position-ling

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

10.1 kB

Total Files

3

Last publish

Collaborators

  • lingtalfi