modified some image based tooltips to support i18n
This commit is contained in:
parent
5874b685cf
commit
dd30f287b0
9 changed files with 38 additions and 8 deletions
Binary file not shown.
Before Width: | Height: | Size: 5.7 KiB |
Binary file not shown.
Before Width: | Height: | Size: 5.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 3.5 KiB |
BIN
productMods/images/individual/toolTipBubble.png
Normal file
BIN
productMods/images/individual/toolTipBubble.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.5 KiB |
|
@ -2,14 +2,17 @@
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
// This function creates and styles the "qTip" tooltip that displays the bubble text when the user hovers
|
// This function creates and styles the "qTip" tooltip that displays the bubble text when the user hovers
|
||||||
// over the research area "group" icon.
|
// over the research area "group" icon.
|
||||||
|
|
||||||
|
$.extend(this, i18nStrings);
|
||||||
|
|
||||||
$('#researchAreaIcon').each(function()
|
$('#researchAreaIcon').each(function()
|
||||||
{
|
{
|
||||||
$(this).qtip(
|
$(this).qtip(
|
||||||
{
|
{
|
||||||
content: {
|
content: {
|
||||||
prerender: true,
|
prerender: true,
|
||||||
text: ' '
|
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>'
|
||||||
},
|
},
|
||||||
position: {
|
position: {
|
||||||
corner: {
|
corner: {
|
||||||
|
@ -35,6 +38,9 @@ $(document).ready(function(){
|
||||||
style: {
|
style: {
|
||||||
padding: '0em',
|
padding: '0em',
|
||||||
height: 56,
|
height: 56,
|
||||||
|
textAlign: 'center',
|
||||||
|
fontSize: '0.7em',
|
||||||
|
lineHeight: '15px',
|
||||||
width: 180,
|
width: 180,
|
||||||
border: 'none',
|
border: 'none',
|
||||||
background:'url(' + imagesPath + '/individual/researchAreaBubble.png) no-repeat'
|
background:'url(' + imagesPath + '/individual/researchAreaBubble.png) no-repeat'
|
||||||
|
@ -47,7 +53,7 @@ $(document).ready(function(){
|
||||||
$(this).qtip(
|
$(this).qtip(
|
||||||
{
|
{
|
||||||
content: {
|
content: {
|
||||||
text: ' '
|
text: '<div style="padding-top:0.5em;color:white">' + i18nStrings.quickviewTooltip + '</div>'
|
||||||
},
|
},
|
||||||
position: {
|
position: {
|
||||||
corner: {
|
corner: {
|
||||||
|
@ -74,9 +80,12 @@ $(document).ready(function(){
|
||||||
style: {
|
style: {
|
||||||
padding: '0em',
|
padding: '0em',
|
||||||
height: 56,
|
height: 56,
|
||||||
|
textAlign: 'center',
|
||||||
|
fontSize: '0.7em',
|
||||||
|
lineHeight: '15px',
|
||||||
width: 140,
|
width: 140,
|
||||||
border: 'none',
|
border: 'none',
|
||||||
background: 'url(' + imagesPath + '/individual/quickViewBubble.png) no-repeat'
|
background: 'url(' + imagesPath + '/individual/toolTipBubble.png) no-repeat'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -86,7 +95,7 @@ $(document).ready(function(){
|
||||||
$(this).qtip(
|
$(this).qtip(
|
||||||
{
|
{
|
||||||
content: {
|
content: {
|
||||||
text: ' '
|
text: '<div style="padding-top:0.5em;color:white">' + i18nStrings.standardviewTooltipOne + '</div><div style="color:white">' + i18nStrings.standardviewTooltipTwo + '</div>'
|
||||||
},
|
},
|
||||||
position: {
|
position: {
|
||||||
corner: {
|
corner: {
|
||||||
|
@ -110,9 +119,12 @@ $(document).ready(function(){
|
||||||
style: {
|
style: {
|
||||||
padding: '0em',
|
padding: '0em',
|
||||||
height: 56,
|
height: 56,
|
||||||
|
textAlign: 'center',
|
||||||
|
fontSize: '0.7em',
|
||||||
|
lineHeight: '15px',
|
||||||
width: 144,
|
width: 144,
|
||||||
border: 'none',
|
border: 'none',
|
||||||
background: 'url(' + imagesPath + '/individual/fullViewBubble.png) no-repeat'
|
background: 'url(' + imagesPath + '/individual/toolTipBubble.png) no-repeat'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -158,7 +158,11 @@ var i18nStrings = {
|
||||||
displayLess: '${i18n().display_less}',
|
displayLess: '${i18n().display_less}',
|
||||||
displayMoreEllipsis: '${i18n().display_more_ellipsis}',
|
displayMoreEllipsis: '${i18n().display_more_ellipsis}',
|
||||||
showMoreContent: '${i18n().show_more_content}',
|
showMoreContent: '${i18n().show_more_content}',
|
||||||
verboseTurnOff: '${i18n().verbose_turn_off}'
|
verboseTurnOff: '${i18n().verbose_turn_off}',
|
||||||
|
standardviewTooltipOne: '${i18n().standardview_tooltip_one}',
|
||||||
|
standardviewTooltipTwo: '${i18n().standardview_tooltip_two}',
|
||||||
|
researchAreaTooltipOne: '${i18n().research_area_tooltip_one}',
|
||||||
|
researchAreaTooltipTwo: '${i18n().research_area_tooltip_two}'
|
||||||
};
|
};
|
||||||
var i18nStringsUriRdf = {
|
var i18nStringsUriRdf = {
|
||||||
shareProfileUri: '${i18n().share_profile_uri}',
|
shareProfileUri: '${i18n().share_profile_uri}',
|
||||||
|
|
|
@ -205,7 +205,10 @@ var i18nStrings = {
|
||||||
displayLess: '${i18n().display_less}',
|
displayLess: '${i18n().display_less}',
|
||||||
displayMoreEllipsis: '${i18n().display_more_ellipsis}',
|
displayMoreEllipsis: '${i18n().display_more_ellipsis}',
|
||||||
showMoreContent: '${i18n().show_more_content}',
|
showMoreContent: '${i18n().show_more_content}',
|
||||||
verboseTurnOff: '${i18n().verbose_turn_off}'
|
verboseTurnOff: '${i18n().verbose_turn_off}',
|
||||||
|
quickviewTooltip: '${i18n().quickview_tooltip}',
|
||||||
|
researchAreaTooltipOne: '${i18n().research_area_tooltip_one}',
|
||||||
|
researchAreaTooltipTwo: '${i18n().research_area_tooltip_two}'
|
||||||
};
|
};
|
||||||
var i18nStringsUriRdf = {
|
var i18nStringsUriRdf = {
|
||||||
shareProfileUri: '${i18n().share_profile_uri}',
|
shareProfileUri: '${i18n().share_profile_uri}',
|
||||||
|
|
|
@ -812,4 +812,13 @@ map_being_refreshed_msg = is now being refreshed. The visualization will load as
|
||||||
publication_pubs = publications (pubs.)
|
publication_pubs = publications (pubs.)
|
||||||
percent_activity = % activity
|
percent_activity = % activity
|
||||||
|
|
||||||
|
#
|
||||||
|
# miscellaneous additions
|
||||||
|
#
|
||||||
|
|
||||||
limit_search = limit search
|
limit_search = limit search
|
||||||
|
standardview_tooltip_one = Click to display the
|
||||||
|
standardview_tooltip_two = profile quick view.
|
||||||
|
research_area_tooltip_one = Click an area to view others
|
||||||
|
research_area_tooltip_two = with the same interest.
|
||||||
|
quickview_tooltip = Click to view the standard profile page.
|
||||||
|
|
|
@ -122,6 +122,8 @@
|
||||||
displayMoreEllipsis: '${i18n().display_more_ellipsis}',
|
displayMoreEllipsis: '${i18n().display_more_ellipsis}',
|
||||||
showMoreContent: '${i18n().show_more_content}',
|
showMoreContent: '${i18n().show_more_content}',
|
||||||
verboseTurnOff: '${i18n().verbose_turn_off}',
|
verboseTurnOff: '${i18n().verbose_turn_off}',
|
||||||
|
researchAreaTooltipOne: '${i18n().research_area_tooltip_one}',
|
||||||
|
researchAreaTooltipTwo: '${i18n().research_area_tooltip_two}'
|
||||||
};
|
};
|
||||||
var i18nStringsUriRdf = {
|
var i18nStringsUriRdf = {
|
||||||
shareProfileUri: '${i18n().share_profile_uri}',
|
shareProfileUri: '${i18n().share_profile_uri}',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue