16,370
edits
Release 2407 and 2409
Continuous releases have started! Read more on our blog: Dolphin Progress Report: Release 2407 and 2409. |
The Dolphin Emulator Wiki needs your help! Dolphin can play thousands of games, and changes are happening all the time. Help us keep up! Join in and help us make this the best resource for Dolphin. |
mNo edit summary |
m (changed names due conflict in MediaWiki:Common.css) |
||
Line 221: | Line 221: | ||
// JS function to truncate text of the captions used in Template:YouTube and Template:Image (when called by the template) | // JS function to truncate text of the captions used in Template:YouTube and Template:Image (when called by the template) | ||
var | var thumbcaptiont_p=$('#thumbcaption_truncated p'); | ||
var | var thumbcaptiont=$('#thumbcaption_truncated').height(); | ||
while ($( | while ($(thumbcaptiont_p).outerHeight()>thumbcaptiont) { | ||
$( | $(thumbcaptiont_p).text(function (index, text) { | ||
return text.replace(/\W*\s(\S)*$/, '...'); | return text.replace(/\W*\s(\S)*$/, '...'); | ||
}); | }); | ||
} | } |