source: VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/gui/wizard/wizardhelp.js @ 5531

Last change on this file since 5531 was 5531, checked in by Twan Goosen, 10 years ago

Added more help texts, tweaked layout
Refs #584

File size: 1.8 KB
Line 
1/*
2 * Copyright (C) 2014 CLARIN
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 */
17
18/* For tooltips, the qtip jQuery plugin is used. For more info, see
19 * <http://craigsworks.com/projects/qtip/docs/>
20 */
21
22$(document).ready(function() {
23    activeTooltips();
24
25    /* toggle extra help information*/
26    $(".extrainfotoggle").click(function(event) {
27        event.preventDefault();
28        $(this).parent(".extrainfo").children(".notes").slideToggle();
29    });
30    $(".extrainfo .notes").hide();
31    $(".extrainfotoggle").qtip({
32        content: 'Help',
33        show: 'mouseover',
34        hide: 'mouseout',
35        style: {
36            background: '#ffffe1'
37        }
38    });
39});
40
41function activeTooltips() {
42    /* activate tooltip on annotated labels */
43    $(".tooltipparent").each(function() {
44        var tooltip = '#' + $(this).attr('id') + ' .tooltip';
45        $(this).qtip({
46            content: $(tooltip),
47            show: 'mouseover',
48            hide: 'mouseout',
49            position: {
50                adjust: {
51                    x: -5
52                }
53            },
54            style: {
55                background: '#ffffe1'
56            }
57        });
58        $(".tooltip", this).hide();
59    });
60}
Note: See TracBrowser for help on using the repository browser.