forked from imagej/imagej.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
166 lines (155 loc) · 6.43 KB
/
index.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
---
mediawiki: Welcome
title: ImageJ (Experimental)
layout: home
---
<!-- Header -->
<section id="header" style="padding: 0; height: calc(100vh - 48px)">
<div class="inner">
<img src="/media/icons/imagej-shadow.png" alt="ImageJ Logo">
<h1>Welcome to <strong>ImageJ</strong></h1>
<p>ImageJ is an open source image processing program designed for scientific
multidimensional images.</p>
<ul class="actions special">
<li><a href="#one" class="button scrolly">Get Started</a></li>
</ul>
</div>
</section>
<!-- ImageJ Introduction -->
<section id="one" class="main">
<div class="container">
<div class="row gtr-150">
<div class="col-12 col-12-medium">
<header class="major">
<ul class = "actions special">
<li><a href="/downloads" class="button icon solid fas fa-download">Download</a></li>
<li><a href="/learn" class="button icon solid fas fa-cogs">Use</a></li>
<li><a href="/develop" class="button icon solid fas fa-wrench">Extend</a></li>
</ul>
<h1>Why ImageJ?</h1>
<header class="container-whyij">
<div class="row-whyij">
<div class="col-4">
<div class="fa-5x text-success">
<span class="fas fa-check-circle"></span>
</div>
<h2>Easy to Use</h2>
<p>
Install ImageJ in one-click, Fiji installs all of its plugins, features an automatic updater, and offers comprehensive documentation.
</p>
</div>
<div class="col-4">
<div class=" fa-5x text-primary">
<span class="fas fa-cogs"></span>
</div>
<h2>Powerful</h2>
<p>
ImageJ offers robust extensibility, harnessing the power of hundreds of plugins to assist with any of your imaging needs.
</p>
</div>
<div class="col-4">
<div class=" fa-5x text-danger">
<span class="fas fa-heart"></span>
</div>
<h2>Free & Open Source</h2>
<p>
ImageJ is an <a href="/Open_Source">open source</a> project hosted on <a href="https://github.com/imagej">GitHub</a>, developed and written by the community.
</p>
</div>
</div>
</header>
</header>
</div>
</div>
</div>
</section>
<div class="resources">
<!-- User resources -->
<section id="user-resources" class="main style3 special">
<header class="major">
<h2>User Resources</h2>
</header>
<ul class="actions special">
<li><a href="/plugins" class="button icon solid fas fa-plug">Plugins</a></li>
<li><a href="/help" class="button icon solid fas fa-hands-helping">Help</a></li>
</ul>
<ul class="actions special">
<li><a href="https://forum.image.sc/tag/imagej" class="button icon solid fas fa-external-link-alt">Forum</a></li>
<li><a href="/contribute/citing" class="button icon solid fas fa-quote-left">Cite</a></li>
</ul>
</section>
<!-- Developer resources -->
<section id="dev-resources" class="main style2 special">
<header class="major">
<h2>Developer Resources</h2>
</header>
<ul class="actions special">
<li><a href="https://github.com/imagej/" class="button icon solid fas fa-code">Source Code</a></li>
<li><a href="https://github.com/imagej/imagej/issues" class="button icon solid fas fa-bullhorn">Report a Bug</a></li>
</ul>
<ul class="actions special">
<li><a href="https://javadoc.scijava.org/SciJava/" class="button icon solid fas fa-terminal">SciJava API</a></li>
<li><a href="https://javadoc.scijava.org/ImageJ/" class="button icon solid fas fa-terminal">ImageJ API</a></li>
</ul>
</section>
</div>
<div class="col-md-8">
<div class="card text-center">
<div class="card-header">
<ul class="nav nav-tabs card-header-tabs" id="plugin-tabs" role="tablist">
<!-- dynamically generated from plugins.json -->
</ul>
</div>
<div class="card-body">
<div class="tab-content" id="plugin-tab-content">
<!-- dynamically generated from plugins.json -->
</div>
</div>
</div>
</div>
<!-- Spotlight -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="/assets/js/jquery-3.4.1.min.js"></script>
<script>
let first = true;
const MAX_PLUGIN_COUNT = 6; // controls max number of tabs shown
$.getJSON("/plugins.json", function(json) {
let plugins = json.plugins;
// Fisher-Yates shuffle; see: https://javascript.info/task/shuffle
for (let i = plugins.length - 1; i > 0; i--) {
let j = Math.floor(Math.random() * (i + 1)); // random index from 0 to i
[plugins[i], plugins[j]] = [plugins[j], plugins[i]]; // swap elements
}
if (plugins.length > MAX_PLUGIN_COUNT){
plugins = plugins.slice(0,MAX_PLUGIN_COUNT);
}
plugins.map(function(val){
// generating the tab header
let nameSlug = 'plugin-' + slugify(val.name);
let tabString = `
<li class="nav-item">
<a class="nav-link ${first ? 'active' : ''}" id="${nameSlug}-tab-header" data-toggle="tab" href="#${nameSlug}-tab" role="tab" aria-controls="${nameSlug}" aria-selected="true">${val.name}</a>
</li>
`
// generating the tab panel
let paneString = `
<div class="tab-pane fade ${first ? 'show active' : ''}" id="${nameSlug}-tab" role="tabpanel" aria-labelledby="${nameSlug}-tab-header">
${val.imgUrl ?
'<img class="img-fluid img-plugin" alt="image showing ' + val.name + ' in action" src = "' + val.imgUrl + '" /> <hr />'
: ''
}
<h5 class="card-title">${val.name}</h5>
<p class="card-text">${val.description}</p>
<a href="${val.link}" class="btn btn-primary">More information</a>
</div>
`
$("#plugin-tabs").append(tabString);
$("#plugin-tab-content").append(paneString);
if (first){
first = false;
}
})
});
</script>