From d42c8b528eb595101954f478e0024e3f079f6fbf Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 22 Mar 2017 19:19:26 +0100 Subject: first implementation of fun stats site --- templates/assets/tether/src/js/utils.js | 370 ++++++++++++++++++++++++++++++++ 1 file changed, 370 insertions(+) create mode 100644 templates/assets/tether/src/js/utils.js (limited to 'templates/assets/tether/src/js/utils.js') diff --git a/templates/assets/tether/src/js/utils.js b/templates/assets/tether/src/js/utils.js new file mode 100644 index 0000000..19ba7fe --- /dev/null +++ b/templates/assets/tether/src/js/utils.js @@ -0,0 +1,370 @@ +let TetherBase; +if (typeof TetherBase === 'undefined') { + TetherBase = {modules: []}; +} + +let zeroElement = null; + +// Same as native getBoundingClientRect, except it takes into account parent offsets +// if the element lies within a nested document ( or