In this article, we will delve into the exciting world of
User:Writ Keeper/Scripts/refTooltips.js, exploring its various facets and delving into its importance in today's society. From its origins to its impact today,
User:Writ Keeper/Scripts/refTooltips.js has played a crucial role in history, culture and human development. Throughout these pages, we will closely examine the different aspects that make
User:Writ Keeper/Scripts/refTooltips.js such a relevant and fascinating topic, addressing its implications and possible futures. Get ready to embark on a journey of discovery and knowledge about
User:Writ Keeper/Scripts/refTooltips.js, which will surely leave you with a new perspective and a greater understanding of its importance in our 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;
}