Author Topic: 2013 T1-2P 1st place deck  (Read 7678 times)

Offline onethfour

  • Trade Count: (0)
  • New Member
  • *
  • Posts: 11
    • North Central Region
Re: 2013 T1-2P 1st place deck
« Reply #25 on: November 08, 2013, 04:11:35 AM »
0
Thanks for the database, in my "spare" time, I threw together a JavaScript library that will scan for Redemption cards and also inject the ruletext next to each card. As a test, I used it on this forum (full source here: http://github.com/relipse/RedemptionHelper.js )

To try it out, go to chrome console and do below:
Code: [Select]
loadJs = function(s) {

    var script = document.createElement("script");

    // This script has a callback function that will run when the script has
    // finished loading.
    script.src = s;
    script.type = "text/javascript";
    document.getElementsByTagName("head")[0].appendChild(script);
}
loadJs('//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js');
loadJs('http://raw.github.com/relipse/RedemptionHelper.js/master/RedemptionHelper.js');

Now wait a few seconds, then you can do below (replacing #msg_**** with a jquery tag filter)

Code: [Select]
RedemptionHelper.cards.jQboldCards('#msg_514142');
 RedemptionHelper.cards.jQinsertCardInfo();
$('.redempcardinfo').css('font-size','9px').css('color','red');

And you will see something like this:


feel free to fork it!

Oh and change #msg_514142 to whatever message has a bunch of redemption cards, and give me some feedback too!
« Last Edit: November 08, 2013, 10:00:13 AM by onethfour »

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal