Skip to content

Commit a65b090

Browse files
completed documentation
1 parent 910120c commit a65b090

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+3971
-380886
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,4 @@ dmypy.json
133133
*.pl
134134

135135
test/codeluppi-et-al
136+
test/nonn-et-al

docs/source/_static/css/custom.css

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55
width:90% !important;;
66
}
77

8-
/* #pop-plankton{
8+
#pop-plankton{
99

10-
position: fixed;
11-
bottom: 0;
12-
right: 0;
13-
width: 70px;
14-
height:70px
15-
} */
10+
transition:right 0.5s linear;
11+
}
Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,36 @@
1-
// docoument.getElementById('kewl').background='r';
1+
function escape_mouse(event) {
2+
img = document.getElementById('pop-plankton');
3+
console.log(document.location);
24

3-
// var edge = [0,2,3][Math.floor(Math.random() * 3)];
4-
// var rotation = Math.random() * 0.1 - 0.05 + (edge * 0.25);
5+
var hpos = -(50 + Math.floor(Math.random() * 10)) + 'px';
6+
var vpos = (Math.floor(Math.random() * 80) + 10) + '%';
7+
var rotation = Math.random() * 0.2 - 0.1 + (0.75);
58

6-
// var edges = ['bottom', 'right', 'top', 'right']
9+
console.log(img, '' + vpos);
710

8-
// var vpos = edges[edge]+':-'+(50+Math.floor(Math.random()*10))+'px;';
9-
// var hpos = edges[(edge+1)%4]+':'+(Math.floor(Math.random()*70)+5)+'%;';
11+
img.style.right = "-200px";
1012

11-
var edge = [0,2,3][Math.floor(Math.random() * 3)];
12-
var rotation = Math.random() * 0.1 - 0.05 + (0.75);
13-
14-
var vpos = 'right:-'+(50+Math.floor(Math.random()*10))+'px;';
15-
var hpos = 'bottom:'+(Math.floor(Math.random()*80)+10)+'%;';
13+
setTimeout(function () {
14+
img.style.bottom = '' + vpos;
15+
img.style.transform = "rotate(" + rotation * 360 + "deg)";
16+
img.style.right = '' + hpos;
17+
}, 700);
18+
}
1619

17-
// console.log(vpos,hpos)
20+
var rotation = Math.random() * 0.1 - 0.05 + (0.75);
21+
var hpos = 'right:-' + (50 + Math.floor(Math.random() * 10)) + 'px;';
22+
var vpos = 'bottom:' + (Math.floor(Math.random() * 80) + 10) + '%;';
1823

1924
var img = document.createElement("img");
20-
img.src = "../_images/plankton-only.svg";
25+
img.src = document.location.pathname.split('/').slice(0,8).join("/")+"/_images/plankton-only.svg";//"../_images/plankton-only.svg";
2126
img.id = "pop-plankton";
27+
img.onmouseenter = escape_mouse;
2228
img.width = 100;
2329
img.height = 100;
24-
img.style = "transform:rotate(" + rotation * 360 + "deg);position:fixed;z-score:5 ;"+vpos+hpos;//#"+Math.random()*100+"vw;";
25-
30+
img.style = "transform:rotate(" + rotation * 360 + "deg);position:fixed;z-score:5 ;" + vpos + hpos;//#"+Math.random()*100+"vw;";
2631

2732
document.addEventListener("DOMContentLoaded", function (event) {
2833
console.log(img);
29-
3034
var canvas = document.getElementsByClassName('wy-nav-content-wrap')[0];
3135
canvas.appendChild(img);
3236
});

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
import os
1414
import sys
15-
sys.path.insert(0, os.path.abspath('../../plankton'))
16-
# sys.path.insert(0, os.path.abspath('../../plankton/graph.py'))
15+
sys.path.insert(0, os.path.abspath('../../'))
16+
# sys.path.insert(0, os.path.abspath('../../plankton/utls.py'))
1717

1818

1919
# -- Project information -----------------------------------------------------
51.1 KB
Loading
638 KB
Loading

docs/source/imgs/DAPI_3-1.jpg

38.2 MB
Loading

docs/source/imgs/dapi_data.png

52.4 KB
Loading

docs/source/imgs/dapi_map.png

51.8 KB
Loading
58.7 KB
Loading

0 commit comments

Comments
 (0)