Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(846)

Side by Side Diff: static/js/main/main.js

Issue 58593002: chromium-status: add status field help text (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/chromium-status
Patch Set: split <input> change out into sep CL Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | status.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 /*
6 * Code for the main user-visible status page.
7 */
8
9 window.onload = function() {
10 document.add_new_message.message.focus();
11 help_init();
12 }
13
14 /*
15 * Functions for managing the help text.
16 */
17
18 function help_init() {
19 // Set up the help text logic.
20 var message = document.add_new_message.message;
21 message.onmouseover = help_show;
22 message.onmousemove = help_show;
23 message.onmouseout = help_hide;
24
25 var help = document.getElementById('help');
26 help.onmouseover = help_show;
27 help.onmouseout = help_hide;
28 }
29
30 function help_show() {
31 var message = document.add_new_message.message;
32 var help = document.getElementById('help');
33 help.style.left = message.offsetLeft + 'px';
34 help.style.top = message.offsetTop + message.offsetHeight + 'px';
35 help.hidden = false;
36 }
37
38 function help_hide() {
39 var help = document.getElementById('help');
40 help.hidden = true;
41 }
OLDNEW
« no previous file with comments | « no previous file | status.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698