diff options
author | Andreas Gohr <andi@splitbrain.org> | 2011-07-04 22:55:11 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2011-07-04 22:55:11 +0200 |
commit | 0589eb71f959c92226f31a408aefc1ca4306b54d (patch) | |
tree | 6e0720351084a4567893a44c85446bc7cf41fc6e /lib/scripts/script.js | |
parent | 98becf95e016e35cc6b03fd7863bddfe5c31d979 (diff) | |
download | dokuwiki-0589eb71f959c92226f31a408aefc1ca4306b54d.tar.gz dokuwiki-0589eb71f959c92226f31a408aefc1ca4306b54d.zip |
deprecated findPosX and findPosY
Diffstat (limited to 'lib/scripts/script.js')
-rw-r--r-- | lib/scripts/script.js | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/lib/scripts/script.js b/lib/scripts/script.js index 8adba829c..68687c14e 100644 --- a/lib/scripts/script.js +++ b/lib/scripts/script.js @@ -123,45 +123,6 @@ function getElementsByClass(searchClass,node,tag) { return classElements; } -/** - * Get the X offset of the top left corner of the given object - * - * @link http://www.quirksmode.org/js/findpos.html - */ -function findPosX(object){ - var curleft = 0; - var obj = $(object); - if (obj.offsetParent){ - do { - curleft += obj.offsetLeft; - } while (obj = obj.offsetParent); - } - else if (obj.x){ - curleft += obj.x; - } - return curleft; -} //end findPosX function - -/** - * Get the Y offset of the top left corner of the given object - * - * @link http://www.quirksmode.org/js/findpos.html - */ -function findPosY(object){ - var curtop = 0; - var obj = $(object); - if (obj.offsetParent){ - do { - curtop += obj.offsetTop; - } while (obj = obj.offsetParent); - } - else if (obj.y){ - curtop += obj.y; - } - return curtop; -} //end findPosY function - -/** * Get the computed style of a node. * * @link https://acidmartin.wordpress.com/2008/08/26/style-get-any-css-property-value-of-an-object/ |