Widget:costumeSwitcher: Difference between revisions
Jump to navigation
Jump to search
Pianoforte (talk | contribs) No edit summary |
Pianoforte (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
costumePaths = costumeSelection.split(",,"); | costumePaths = costumeSelection.split(",,"); | ||
$("#fullart a").attr("href", | $("#fullart a").attr("href", costumePaths[0]); | ||
$("#fullart a img").attr("src", | $("#fullart a img").attr("src", costumePaths[0]); | ||
$("#fullart a img").attr("alt", | $("#fullart a img").attr("alt", costumePaths[0]); | ||
$("#fullart_D a").attr("href", | $("#fullart_D a").attr("href", costumePaths[1]); | ||
$("#fullart_D a img").attr("src", | $("#fullart_D a img").attr("src", costumePaths[1]); | ||
$("#fullart_D a img").attr("alt", | $("#fullart_D a img").attr("alt", costumePaths[1]); | ||
//$("#fullart a img").attr("srcset", "/wiki/Special:Redirect/file/Springfield" + costumeSelection + ".png 1.5x, /wiki/Special:Redirect/file/Springfield" + costumeSelection + ".png 2x"); | //$("#fullart a img").attr("srcset", "/wiki/Special:Redirect/file/Springfield" + costumeSelection + ".png 1.5x, /wiki/Special:Redirect/file/Springfield" + costumeSelection + ".png 2x"); | ||
$(".tdoll_chibi").attr("src", | $(".tdoll_chibi").attr("src", costumePaths[2]); | ||
// 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 |