-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex-template.html
110 lines (110 loc) · 4.49 KB
/
index-template.html
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" href="style.css" type="text/css"/>
<title>HAR Embryo Images</title>
<script src='http://code.jquery.com/jquery-latest.min.js' type='text/javascript'></script>
</head>
<body>
<div id="toc">
<h4>HARs</h4>
<ul>
{% for har in hars|sort %}
<li><a href="#har_{{ har }}">{{ hars[har]['name'] }}</a></li>
{% endfor %}
</ul>
</div>
<div class="container">
{% for har in hars|sort %}
<div class="row">
<div class="col1">
<h1>{{ hars[har]['name'] }} <a class="section_link" id="har_{{ har }}">¶</a></h1>
{% if hars[har]['aliases'] %}
<p>
<b>Aliases</b>
{% for alias in hars[har]['aliases'] %}
HAR {{ alias }}{% if not loop.last %},{% endif %}
{% endfor %}
</p>
{% endif %}
{% if hars[har]['bracketed-genes'] %}
<p>
<b>Bracketed genes</b>
{% for gene in hars[har]['bracketed-genes'] %}
<a class="link" target="_blank" href="http://www.google.com/search?q={{ gene|urlencode }}+gene">{{ gene }}</a>{% if not loop.last %},{% endif %}
{% endfor %}
</p>
{% endif %}
<p>
<b>Human–Chimp difference</b>
{{ hars[har]['species-difference'] }}
</p>
</div>
</div>
<div class="row">
{% for species in hars[har]['species'] %}
<div class="col2">
<h2>{{ species }}</h2>
<p>
<b>Development stage</b>
{{ hars[har]['species'][species]['stage'] }}
</p>
<p>
<b>Expression</b>
{{ hars[har]['species'][species]['expression'] }}
</p>
<p>
<b>HAR in genome</b>
<a href="{{ genome_url_prefixes[species] }}{{ hars[har]['species'][species]['genome-coords']|urlencode }}" target="_blank" class="link">
click here
</a>
</p>
{% if hars[har]['species'][species]['consistent-activity-domains'] %}
<div class="domains">
<b>Consistent activity domains</b> <span class="help" content="The activity domains are listed below with the number of embryo images exhibiting the activity domain.">?</span>
<ul>
{% for domain in hars[har]['species'][species]['consistent-activity-domains'] %}
<li>{{ domain[0] }} ({{ domain[1] }})</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if hars[har]['species'][species]['suggestive-activity-domains'] %}
<div class="domains">
<b>Suggestive activity domains</b> <span class="help" content="The activity domains are listed below with the number of embryo images exhibiting the activity domain.">?</span>
<ul>
{% for domain in hars[har]['species'][species]['suggestive-activity-domains'] %}
<li>{{ domain[0] }} ({{ domain[1] }})</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% for img_num in hars[har]['species'][species]['imgs']|sort %}
<a href="imgs/{{ har }}/{{ species }}/{{ img_num }}.tif" target="_blank">
<img src="imgs/{{ har }}/{{ species }}/{{ img_num }}-small.png">
</a>
{% endfor %}
</div>
{% endfor %}
</div>
<div class="space"></div>
{% endfor %}
</div>
<div id="help-content"></div>
<script type="text/javascript">
var help_content = $('#help-content');
$('.help').mouseenter(function() {
help_content.show();
help_content.text($(this).attr('content'));
var pos = $(this).offset();
pos.top -= 70;
help_content.offset(pos);
});
$('.help').mouseleave(function() {
help_content.hide();
});
</script>
</body>
</html>