Widget:costumeSwitcher: Difference between revisions
Jump to navigation
Jump to search
Pianoforte (talk | contribs) No edit summary |
Pianoforte (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><script> | <includeonly><script> | ||
function swap_costume() { | function swap_costume() { | ||
costumeSelectionPathsString = document.getElementById("costumeSelection").value; | |||
costumePaths = | costumeSelectionIndex = document.getElementById("costumeSelection").selectedIndex; | ||
if (costumeSelectionIndex == 0) | |||
reInitGirl(""); | |||
else | |||
reInitGirl("_costume" + costumeSelectionIndex); | |||
costumePaths = costumeSelectionPathsString.split(",,"); | |||
$("#fullart a").attr("href", costumePaths[0]); | $("#fullart a").attr("href", costumePaths[0]); | ||
Line 19: | Line 26: | ||
$(".tdoll_chibi").attr("src", costumePaths[3]); | $(".tdoll_chibi").attr("src", costumePaths[3]); | ||
// As we change the link, we have to update the Thumb-Cache of the Media Viewer | // As we change the link, we have to update the Thumb-Cache of the Media Viewer | ||
Line 37: | Line 44: | ||
RLQ.push(function () { | RLQ.push(function () { | ||
$(document).ready(function() { | $(document).ready(function() { | ||
swap_costume(); | //swap_costume(); | ||
}); | }); | ||
}); | }); |