2013-01-31 11:15:48 -05:00
|
|
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
// This function creates and styles the "qTip" tooltip that displays the bubble text when the user hovers
|
2013-06-14 16:10:15 -04:00
|
|
|
// over the research area "group" icon.
|
|
|
|
|
|
|
|
$.extend(this, i18nStrings);
|
|
|
|
|
2013-01-31 11:15:48 -05:00
|
|
|
$('#researchAreaIcon').each(function()
|
|
|
|
{
|
|
|
|
$(this).qtip(
|
|
|
|
{
|
|
|
|
content: {
|
|
|
|
prerender: true,
|
2013-06-14 16:10:15 -04:00
|
|
|
text: '<div style="padding-top:0.5em;margin-left:-14px;color:white">' + i18nStrings.researchAreaTooltipOne + '</div><div style="margin-left:-14px;color:white">' + i18nStrings.researchAreaTooltipTwo + '</div>'
|
2013-01-31 11:15:48 -05:00
|
|
|
},
|
|
|
|
position: {
|
|
|
|
corner: {
|
|
|
|
target: 'topleft',
|
|
|
|
tooltip: 'bottomcenter'
|
|
|
|
},
|
|
|
|
adjust: {
|
|
|
|
x:22,
|
|
|
|
y:30
|
|
|
|
}
|
|
|
|
},
|
|
|
|
show: {
|
|
|
|
when: {
|
|
|
|
event: 'mouseenter'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
hide: {
|
|
|
|
fixed: false,
|
|
|
|
when: {
|
|
|
|
event: 'mouseleave'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
style: {
|
|
|
|
padding: '0em',
|
|
|
|
height: 56,
|
2013-06-14 16:10:15 -04:00
|
|
|
textAlign: 'center',
|
|
|
|
fontSize: '0.7em',
|
|
|
|
lineHeight: '15px',
|
2013-01-31 11:15:48 -05:00
|
|
|
width: 180,
|
|
|
|
border: 'none',
|
|
|
|
background:'url(' + imagesPath + '/individual/researchAreaBubble.png) no-repeat'
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#fullViewIcon').each(function()
|
|
|
|
{
|
|
|
|
$(this).qtip(
|
|
|
|
{
|
|
|
|
content: {
|
2013-06-14 16:10:15 -04:00
|
|
|
text: '<div style="padding-top:0.5em;color:white">' + i18nStrings.quickviewTooltip + '</div>'
|
2013-01-31 11:15:48 -05:00
|
|
|
},
|
|
|
|
position: {
|
|
|
|
corner: {
|
|
|
|
target: 'topleft',
|
|
|
|
tooltip: 'bottomcenter'
|
|
|
|
},
|
|
|
|
adjust: {
|
|
|
|
x:27,
|
|
|
|
y:30
|
|
|
|
}
|
|
|
|
},
|
|
|
|
show: {
|
|
|
|
|
|
|
|
when: {
|
|
|
|
event: 'mouseenter'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
hide: {
|
|
|
|
fixed: false,
|
|
|
|
when: {
|
|
|
|
event: 'mouseleave'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
style: {
|
|
|
|
padding: '0em',
|
|
|
|
height: 56,
|
2013-06-14 16:10:15 -04:00
|
|
|
textAlign: 'center',
|
|
|
|
fontSize: '0.7em',
|
|
|
|
lineHeight: '15px',
|
2013-01-31 11:15:48 -05:00
|
|
|
width: 140,
|
|
|
|
border: 'none',
|
2013-06-14 16:10:15 -04:00
|
|
|
background: 'url(' + imagesPath + '/individual/toolTipBubble.png) no-repeat'
|
2013-01-31 11:15:48 -05:00
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#quickViewIcon').each(function()
|
|
|
|
{
|
|
|
|
$(this).qtip(
|
|
|
|
{
|
|
|
|
content: {
|
2013-06-14 16:10:15 -04:00
|
|
|
text: '<div style="padding-top:0.5em;color:white">' + i18nStrings.standardviewTooltipOne + '</div><div style="color:white">' + i18nStrings.standardviewTooltipTwo + '</div>'
|
2013-01-31 11:15:48 -05:00
|
|
|
},
|
|
|
|
position: {
|
|
|
|
corner: {
|
|
|
|
target: 'topleft',
|
|
|
|
tooltip: 'bottomcenter'
|
|
|
|
},
|
|
|
|
adjust: {
|
|
|
|
x:28,
|
|
|
|
y:30
|
|
|
|
}
|
|
|
|
},
|
|
|
|
show: {
|
|
|
|
when: {event: 'mouseenter'}
|
|
|
|
},
|
|
|
|
hide: {
|
|
|
|
fixed: false,
|
|
|
|
when: {
|
|
|
|
event: 'mouseleave'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
style: {
|
|
|
|
padding: '0em',
|
|
|
|
height: 56,
|
2013-06-14 16:10:15 -04:00
|
|
|
textAlign: 'center',
|
|
|
|
fontSize: '0.7em',
|
|
|
|
lineHeight: '15px',
|
2013-01-31 11:15:48 -05:00
|
|
|
width: 144,
|
|
|
|
border: 'none',
|
2013-06-14 16:10:15 -04:00
|
|
|
background: 'url(' + imagesPath + '/individual/toolTipBubble.png) no-repeat'
|
2013-01-31 11:15:48 -05:00
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|