Widget:Summon Simulator/20161216

<!doctype html> FFBE Gacha Simulator - exviuswiki.com     /**        * FFBE Gacha Simulator v0.2 *        * https://exviuswiki.com *        * Noctis, Mercedes, Chizuru, Charlotte Banner */

var banner_rate = [ // offbanner - 74.75% ['3', 60],           ['4', 14.25],            ['5', 0.5],

// featured - 25.25% ['3_ft', 20], ['4_ft', 4.75], ['5_ft', 0.5] ];

var guarantee_rate = [ // offbanner - 48.75% ['4', 47.5],           ['5', 1.25],

// featured - 51.25% ['4_ft', 47.5], ['5_ft', 3.75] ];

var units = [ {               name: 'Noctis', featured: true, three_stars: false, four_stars: false, five_stars: true },           {                name: 'Mercedes', featured: true, three_stars: false, four_stars: true, five_stars: true },           {                name: 'Snow', featured: false, three_stars: false, four_stars: true, five_stars: true },           {                name: 'Vanille', featured: false, three_stars: false, four_stars: true, five_stars: true },           {                name: 'Hope', featured: false, three_stars: false, four_stars: true, five_stars: true },           {                name: 'Fang', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Sazh', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Gilgamesh', featured: false, three_stars: false, four_stars: false, five_stars: true },           {                name: 'Faris', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Luneth', featured: false, three_stars: false, four_stars: false, five_stars: true },           {                name: 'Refia', featured: false, three_stars: false, four_stars: true, five_stars: true },           {                name: 'Ingus', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Arc', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Dark Knight Cecil', featured: false, three_stars: false, four_stars: false, five_stars: true },           {                name: 'Rosa', featured: false, three_stars: false, four_stars: true, five_stars: true },           {                name: 'Edge', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Ramza', featured: false, three_stars: false, four_stars: false, five_stars: true },           {                name: 'Delita', featured: false, three_stars: false, four_stars: false, five_stars: true },           {                name: 'Agrias', featured: false, three_stars: false, four_stars: true, five_stars: true },           {                name: 'Gaffgarion', featured: false, three_stars: false, four_stars: true, five_stars: true },           {                name: 'Mustadio', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Alma', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Lightning', featured: false, three_stars: false, four_stars: false, five_stars: true },           {                name: 'Ludmille', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Charlotte', featured: true, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Garnet', featured: false, three_stars: false, four_stars: true, five_stars: true },           {                name: 'Freya', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Amarant', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Lenna', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Warrior of Light', featured: false, three_stars: false, four_stars: true, five_stars: true },           {                name: 'Tellah', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Hayate', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Locke', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Artemios', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Kefka', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Golbez', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Chizuru', featured: true, three_stars: false, four_stars: true, five_stars: true },           {                name: 'Gilbert', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Celes', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Xiao', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Leo', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Rakshasa', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Miyuki', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Medius', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Roselia', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Cerius', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Duane', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Vaan', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Zidane', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Firion', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Bartz', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Terra', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Cecil', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Cloud of Darkness', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Kuja', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Exdeath', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Garland', featured: false, three_stars: true, four_stars: true, five_stars: true },           {                name: 'Lani', featured: false, three_stars: true, four_stars: true, five_stars: false },           {                name: 'Galuf', featured: false, three_stars: true, four_stars: true, five_stars: false },           {                name: 'Russell', featured: false, three_stars: true, four_stars: true, five_stars: false },           {                name: 'Bedile', featured: false, three_stars: true, four_stars: true, five_stars: false },           {                name: 'Luna', featured: false, three_stars: true, four_stars: true, five_stars: false },           {                name: 'Anzelm', featured: false, three_stars: true, four_stars: true, five_stars: false },           {                name: 'Clyne', featured: false, three_stars: true, four_stars: true, five_stars: false },           {                name: 'Cyan', featured: false, three_stars: true, four_stars: true, five_stars: false },           {                name: 'Rydia', featured: false, three_stars: true, four_stars: true, five_stars: false },           {                name: 'Shantotto', featured: false, three_stars: true, four_stars: true, five_stars: false },           {                name: 'Fran', featured: false, three_stars: true, four_stars: true, five_stars: false },           {                name: 'Edgar', featured: false, three_stars: true, four_stars: true, five_stars: false },           {                name: 'Kain', featured: false, three_stars: true, four_stars: true, five_stars: false },           {                name: 'Krile', featured: false, three_stars: true, four_stars: true, five_stars: false },           {                name: 'Shadow', featured: false, three_stars: true, four_stars: true, five_stars: false },           {                name: 'Sabin', featured: false, three_stars: true, four_stars: true, five_stars: false },           {                name: 'Maria', featured: false, three_stars: true, four_stars: true, five_stars: false },           {                name: 'Penelo', featured: false, three_stars: true, four_stars: true, five_stars: false },           {                name: 'Vivi', featured: false, three_stars: true, four_stars: true, five_stars: false }       ];

function arrayColumn(arr, n) { return arr.map(x=> x[n]); }

function summon(num) { $('.gacha-result').text("");

$('.loading img').attr("src", "").attr("src", $('.loading img').data("src")); $('.loading').show;

var wikitext = ' ';

$.ajax({               url: "https://exviuswiki.com/api.php?action=parse&format=json&prop=text&contentmodel=wikitext&text=" + wikitext,                dataType: "json"            }) .done(function( data ) {               result = data.parse.text["*"];                result = result.replace(/3_star/g, "  &#9733;&#9733;&#9733;  ");                result = result.replace(/4_star/g, "  &#9733;&#9733;&#9733;&#9733;  ");                result = result.replace(/5_star/g, "  &#9733; &#9733; &#9733; &#9733; &#9733;  ");                $('.gacha-result').html(result);

$('.loading img').attr("src", ""); $('.loading').hide; });       }        Summon (1)         Summon (3)         Summon (10+1)                 Loading...