Skip to content

Commit

Permalink
make welcome text more widely applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
thejohnhoffer committed Jul 1, 2021
1 parent e97d73e commit 4c92328
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 23 deletions.
2 changes: 1 addition & 1 deletion build/bundle.js

Large diffs are not rendered by default.

50 changes: 29 additions & 21 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2883,27 +2883,35 @@ const exhibitHTML = `
</button>
</div>
<div class="modal-body">
You're looking at an image layering
<span class="minerva-channel_count"></span>
CyCIF markers.
Use the <i class="fas fa-arrow-left"></i>
and <i class="fas fa-arrow-right"></i>
arrows to move between highlighted image regions.
Click <i class="fas fa-list-ul"></i>
to return here to an overview of the full image.
Use <i class="fas fa-search-minus"></i> to zoom out
and <i class="fas fa-search-plus"></i> to zoom in.
</br>
</br>
To share your own highlighted image regions,
click <i class="fas fa-location-arrow"></i> to
point an arrow at a small feature,
click <i class="fas fa-bullseye"></i> to select
a feature with a custom shape, and
click <i class="fas fa-crosshairs"></i> to share a
boundary around a rectangular region.
Click <i class="fas fa-clone"></i> to open a
new window with shared navigation.
<div class="pb-2">
<span class="minerva-welcome-markers">
You're looking at an image layering
<span class="minerva-channel_count"></span>
CyCIF markers.
</span>
<span class="minerva-welcome-nav">
Use the <i class="fas fa-arrow-left"></i>
and <i class="fas fa-arrow-right"></i>
arrows to move between highlighted image regions.
Click <i class="fas fa-list-ul"></i>
to return here to an overview of the full image.
Use <i class="fas fa-search-minus"></i> to zoom out
and <i class="fas fa-search-plus"></i> to zoom in.
</span>
</div>
<div>
<span class="minerva-welcome-tools">
To share your own highlighted image regions,
click <i class="fas fa-location-arrow"></i> to
point an arrow at a small feature,
click <i class="fas fa-bullseye"></i> to select
a feature with a custom shape, and
click <i class="fas fa-crosshairs"></i> to share a
boundary around a rectangular region.
Click <i class="fas fa-clone"></i> to open a
new window with shared navigation.
</span>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"build": "webpack --mode production"
},
"name": "minerva-browser",
"version": "2.15.5",
"version": "2.15.6",
"description": "A storytelling interface atop openseadragon",
"main": "index.js",
"repository": {
Expand Down
5 changes: 5 additions & 0 deletions render.js
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,11 @@ Render.prototype = {
// Special minmial nav if no text
const minimal_sidebar = !edit && HS.totalCount == 1 && !decode(HS.d);
classOrNot(prefix+'.minerva-sidebar-menu', minimal_sidebar, 'minimal');
displayOrNot(prefix+'.minerva-welcome-nav', !minimal_sidebar);

// H&E should not display number of cycif markers
const is_h_e = HS.group.Name == 'H&E';
displayOrNot(prefix+'.minerva-welcome-markers', !is_h_e);
},

// Load speech-synthesis from AWS Polly
Expand Down

0 comments on commit 4c92328

Please sign in to comment.