In today's article, we are going to explore the fascinating world of
User:Writ Keeper/Scripts/refTooltips.js. From its origins to its impact on today's society,
User:Writ Keeper/Scripts/refTooltips.js has been the subject of multiple studies and research. Throughout history,
User:Writ Keeper/Scripts/refTooltips.js has played a fundamental role in various aspects of human life, from politics to popular culture. In addition, we will delve into the different perspectives that exist on
User:Writ Keeper/Scripts/refTooltips.js, analyzing its implications in the past, present and future. Without a doubt,
User:Writ Keeper/Scripts/refTooltips.js is a topic of great relevance that deserves to be explored in depth to better understand its complexity and its influence on our daily lives.
$(document).ready(addRefTitles);
function addRefTitles()
{
var refs = $('.reference');
var reflist = $('li');
var i;
for(i =0; i < refs.length; i++)
{
var match = findMatches(refs, reflist);
if(match != null)
{
var newTitle = $('#' + match.id + ' > span.reference-text').text()
refs.title = newTitle;
refs.children.title = newTitle;
}
}
}
function findMatches(ref, reflist)
{
var i;
var refId = ref.id.slice(9);
if(refId.search("_") != -1)
{
refId = refId.slice(0, refId.lastIndexOf('_')) + '-' + refId.slice(refId.lastIndexOf("_")+1, refId.lastIndexOf("-"));
}
for(i=0; i < reflist.length; i++)
{
var reflistId = reflist.id.slice(10);
if(refId == reflistId)
{
return reflist;
}
}
return null;
}