diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-04-29 00:42:48 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-04-29 00:49:28 +0200 |
commit | b3fca6966f7a6a3a4291486748802fc694dfbd1a (patch) | |
tree | ebea27edc3176b51f1eb39f2d393e111d0f36505 /static/script.js | |
parent | Test tooltip library. (diff) | |
download | calp-b3fca6966f7a6a3a4291486748802fc694dfbd1a.tar.gz calp-b3fca6966f7a6a3a4291486748802fc694dfbd1a.tar.xz |
Made code more compatible with popups, improve config.
Diffstat (limited to '')
-rw-r--r-- | static/script.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/static/script.js b/static/script.js index 91c840e3..4fbf160e 100644 --- a/static/script.js +++ b/static/script.js @@ -261,7 +261,7 @@ window.onload = function () { } $(document).ready(function() { - Tipped.setDefaultSkin('none'); + Tipped.setDefaultSkin("purple"); Tipped.create(".event", { /* no padding, I am the one who styles! */ padding: false, @@ -273,5 +273,15 @@ $(document).ready(function() { acts as close buttons */ showOn: 'click', hideOn: 'click', + + /* makes popups relative our scrolling days view */ + container: '.days', + + /* Ensures that the popups stay within the given area, + and don't strectch the container */ + containment: { + selector: '.days', + }, + behaviour: 'sticky', }); }); |