Skip to content

Commit

Permalink
improve the help dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Mar 27, 2012
1 parent ce9a661 commit f655d8c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
9 changes: 8 additions & 1 deletion genome.css
Expand Up @@ -762,6 +762,13 @@ input.nav {
font-size: 9px !important;
}

div.helpDialog {
#help_dialog {
font-size: 12px;
width: 70%;
}
#help_dialog dl {
width: 48%;
}
#help_dialog dt {
font-weight: bold;
}
33 changes: 20 additions & 13 deletions js/Browser.js
Expand Up @@ -667,23 +667,30 @@ Browser.prototype.makeHelpDialog = function () {
// make a div containing our help text
var helpdiv = document.createElement('div');
helpdiv.style.display = 'none';
helpdiv.innerHTML =
'<div class="helpDialog" style="float: left">'
+ '<h2 style="margin-top: 0">Mouse Commands</h2>'
+ '<dl>'
+ '<dt>Track pane</dt>'
helpdiv.className = "helpDialog";
helpdiv.innerHTML = ''
+ '<dl style="float: left">'
+ '<dt>Moving</dt>'
+ '<dd><ul>'
+ ' <li>Click and drag in the main pane to move the view</li>'
+ ' <li>Shift-click and drag to highlight a region to zoom to</li> '
+ ' </ul>'
+ '</dd>'
+ '<dt>Overview and scale bars</dt>'
+ ' <li>Clicking and draging in the track area moves the view</li>'
+ ' <li>Clicking on either the overview bar or the track scale bar centers the view there</li>'
+ ' <li>Shift-clicking in the track area centers the view there</li>'
+ '</ul></dd>'
+ '<dt>Zooming</dt>'
+ '<dd><ul>'
+ ' <li>Click to center the view at that region</li>'
+ ' <li>Click and drag to highlight a region to zoom to</li>'
+ ' <li>Clicking the "+" and "-" buttons in the navigation bar zooms the view in and out</li>'
+ ' <li>Clicking and dragging in the overview or the track scale bar zooms to the region you select</li>'
+ ' <li>Shift-clicking and dragging in the track area also zooms to the region you select</li>'
+ ' </ul>'
+ '</dd>'
+ '</div>'
+ '</dl>'
+ '<dl style="float: right">'
+ '<dt>Searching</dt>'
+ '<dd><ul>'
+ '<li>Type the name of a feature or reference sequence in the search box to jump there</li>'
+ '<li>Type a reference sequence name, optionally including a region, to jump to that region</li>'
+ '</ul></dd>'
+ '</dl>'
;
this.container.appendChild( helpdiv );

Expand Down

0 comments on commit f655d8c

Please sign in to comment.