Skip to content

Instantly share code, notes, and snippets.

View JamesDonnelly's full-sized avatar

James Donnelly JamesDonnelly

View GitHub Profile
const config = {
method: 'GET',
mode: 'cors'
}
fetch(
"http://api.xivdb.com/mount?columns=icon,id,name_en",
config
)
.then(response => response.json())
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())
// 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 = {};
// 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 = {};
// https://gist.github.com/JamesDonnelly/d0d3a108d99742bb48ca89b812007cd3
{
"1":100,
"2":500,
"3":1000,
"4":5000,
"5":10000,
"6":50000,
"7":100000,
"8":1,
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())
// 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 = {};
// 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');
This file has been truncated, but you can view the full file.