Difference between revisions of "Template:EventStoryHeader"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Vyriel
>Vyriel
Line 50: Line 50:
 
</div>
 
</div>
 
</div>
 
</div>
 +
<script>
 +
(function(mw, $) {
 +
$(".event-dialogue > p").each(function() {
 +
var wrapper = $('<div style="display: flex; align-items: center;margin-top: 10px;margin-bottom: 10px;"></div>')
 +
var text = $(this).text().trim();
 +
var img = $(this).find("a:first-child");
 +
var imgWrapper = $('<div style="padding-right: 10px"></div>');
 +
var textWrapper = $('<div style="flex-grow: 1"></div>');
 +
 +
textWrapper.text(text);
 +
imgWrapper.append(img);
 +
wrapper.append(imgWrapper);
 +
wrapper.append(textWrapper);
 +
 +
$(this).parent().append(wrapper);
 +
$(this).remove();
 +
});
 +
})(mediaWiki, jQuery);
 +
</script>
 
}}</includeonly>
 
}}</includeonly>

Revision as of 01:20, 19 December 2018