Skip to content

Instantly share code, notes, and snippets.

Avatar
💥
Firebase functions!

James Donnelly JamesDonnelly

💥
Firebase functions!
View GitHub Profile
View XIVDB Achievement Icon to Spritesheet
// This converts XIVDB's achievement icons to an array of base64 URLs.
const config = {
method: 'GET',
mode: 'cors'
}
let x = 0;
let y = 0;
let canvas = document.createElement('canvas');
View Final Fantasy XIV Achievement Icon Sprite Sheet and Positions
// This converts XIVDB's achievement icons to an array of base64 URLs.
const config = {
method: 'GET',
mode: 'cors'
}
let x = 0;
let y = 0;
let output = {};
View Final Fantasy XIV Achievement Weights
const config = {
method: 'GET',
mode: 'cors'
}
fetch(
"https://api.xivdb.com/achievement?columns=help_en,icon,id,name,points,requirement_1,requirement_2,type",
config
)
.then(response => response.json())
View Final Fantasy XIV Achievement Weights
// https://gist.github.com/JamesDonnelly/d0d3a108d99742bb48ca89b812007cd3
{
"1":100,
"2":500,
"3":1000,
"4":5000,
"5":10000,
"6":50000,
"7":100000,
"8":1,
View Final Fantasy XIV Minion Icon Sprite Sheet and Positions
// This converts XIVDB's minion icons to an array of base64 URLs.
const config = {
method: 'GET',
mode: 'cors'
}
let x = 0;
let y = 0;
let output = {};
View Final Fantasy XIV Mount Icon Sprite Sheet and Positions
// This converts XIVDB's minion icons to an array of base64 URLs.
const config = {
method: 'GET',
mode: 'cors'
}
let x = 0;
let y = 0;
let output = {};
View Final Fantasy XIV Minion Data
const config = {
method: 'GET',
mode: 'cors'
}
fetch(
"http://api.xivdb.com/minion?columns=behavior,icon,id,name_en,minion_race",
config
)
.then(response => response.json())
View Final Fantasy XIV Mount Data
const config = {
method: 'GET',
mode: 'cors'
}
fetch(
"http://api.xivdb.com/mount?columns=icon,id,name_en",
config
)
.then(response => response.json())
You can’t perform that action at this time.