oEtG Forum

Card Code Testing

spex · 2 · 11536

spex

  • New Member
  • *
    • Posts: 7
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.
« Last Edit: August 19, 2015, 11:54:49 am by spex »


serprex

  • Global Moderator
  • *****
    • Posts: 1543
If you're embedding svg text directly, you could do the same for deck-tag
« Last Edit: August 20, 2015, 01:06:26 am by serprex »