Skip to content

Commit

Permalink
put button images directly in the help text
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Mar 28, 2012
1 parent f1dbe6a commit a4b57c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/Browser.js
Expand Up @@ -665,19 +665,20 @@ Browser.prototype.visibleTracks = function() {
Browser.prototype.makeHelpDialog = function () {

// make a div containing our help text
var browserRoot = this.config.browserRoot || "";
var helpdiv = document.createElement('div');
helpdiv.style.display = 'none';
helpdiv.className = "helpDialog";
helpdiv.innerHTML = ''
+ '<dl class="main" style="float: left">'
+ '<dt>Moving</dt>'
+ '<dd><ul>'
+ ' <li>Move the view by clicking and dragging in the track area, or clicking the left and right scrolling buttons in the navigation bar.</li>'
+ ' <li>Move the view by clicking and dragging in the track area, or by clicking <img height="20px" src="'+browserRoot+'img/slide-left.png"> or <img height="20px" src="'+browserRoot+'img/slide-right.png"> in the navigation bar.</li>'
+ ' <li>Center the view at a point by clicking on either the track scale bar or overview bar, or by shift-clicking in the track area.</li>'
+ '</ul></dd>'
+ '<dt>Zooming</dt>'
+ '<dd><ul>'
+ ' <li>Zoom in and out by clicking the "+" and "-" buttons in the navigation bar.</li>'
+ ' <li>Zoom in and out by clicking <img height="20px" src="'+browserRoot+'img/zoom-in-1.png"> or <img height="20px" src="'+browserRoot+'img/zoom-out-1.png"> in the navigation bar.</li>'
+ ' <li>Select a region and zoom to it ("rubber-band" zoom) by clicking and dragging in the overview or track scale bar, or shift-clicking and dragging in the track area.</li>'
+ ' </ul>'
+ '</dd>'
Expand Down

0 comments on commit a4b57c1

Please sign in to comment.