clean up after pull request

- added es6 uglify
- pimped status pages in demo-index
- added first modular hippie file
This commit is contained in:
Stephan Hagedorn 2017-09-29 22:47:41 +02:00
parent b9003c4a28
commit bcc5ab661a
13 changed files with 202 additions and 52 deletions

View file

@ -6,14 +6,14 @@ function setup() {
}
// get document coordinates of the element
// function getCoords(elem) {
// let box = elem.getBoundingClientRect();
//
// return {
// top: box.top + pageYOffset,
// left: box.left + pageXOffset
// };
// }
function getCoords(elem) {
let box = elem.getBoundingClientRect();
return {
top: box.top + pageYOffset,
left: box.left + pageXOffset
};
}
// https://stackoverflow.com/a/488073/1444149
function Utils() {

View file

@ -33,7 +33,10 @@ $( document ).ready(function() {
$(this).next(".exp_pop").css({
"top": ev.pageY - $(this).next(".exp_pop").outerHeight() - 4,
"left": ev.pageX + 8
// "left": ev.pageX - $(this).offset().left + 8
});
// TODO - needs more love
console.log(ev.pageX);
}
);