oEtG Forum

General Category => Forum Announcements, Discussion & Suggestions => Topic started by: spex on August 19, 2015, 11:42:20 am

Title: Card Code Testing
Post by: spex on August 19, 2015, 11:42:20 am
Initial implementation for:
Code: [Select]
[card]59i[/card] [card]4ve[/card]
Minotaur

4|5If opponent has more than four cards in their hand, this card attacks a second time & opponent discards the last card in their hand.5

Abomination

5|5If targeted with mutation, this will always become an improved mutant.5



This is not doing the typical <img... tag stuff. Instead I am grabbing the SVG source and embedding that in the page. This is proving to work much better than <img... since for some reason using that method was leaving out the card header image.

Test out the feature in this thread and let me know if there are any issues. I'm not currently doing any sanitizing or sanity checks for what is between the card tags. You can thank serprex for the SVG output, let him know of any issues with the SVG itself.
Title: Re: Card Code Testing
Post by: serprex on August 20, 2015, 12:32:56 am
If you're embedding svg text directly, you could do the same for deck-tag