forked from MattWoelk/shmotg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimageList.js
34 lines (23 loc) · 1.03 KB
/
imageList.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
* Implements the user being shown a list of the images for the current plot.
* Created by Mathew Grabau on 19/03/2015.
*/
var imageList = {};
imageList.dialog = d3.select("#images_dialog");
imageList.isActive = false;
imageList.toggle = function() {
if (imageList.isActive) {
// Open it to the document width.
imageList.dialog.style("display", "none");
} else {
//document.getElementById("images_dialog").style.x = document.body.offsetWidth / 2;
//imageList.dialog.style("x", document.body.offsetWidth / 2);
imageList.dialog.style("display", "block");
imageList.dialog.style("width", (document.body.offsetWidth / 2) + "px");
imageList.dialog.style("x", (document.body.offsetWidth / 4) + "px");
//imageList.dialog.style("display", "block").style("width", document.offsetWidth);
//imageList.dialog.attr("width",).height(plotHeightDefault);
}
imageList.isActive = !imageList.isActive;
};
window.imageList = imageList;