10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-11-04 21:24:00 +01:00
QUESTDB_website/static/scripts/loadAllData.js

12 lines
363 B
JavaScript
Raw Normal View History

2019-09-26 09:32:03 +02:00
async function loadAllData() {
dic = {
abs: [],
fluo: [],
ZPE: []
};
dic.abs = await Promise.all(getAbsFilesName().map((f) => AbsDataFile.loadAsync(f)))
dic.fluo = await Promise.all(getFluoFilesName().map((f) => FluoDataFile.loadAsync(f)))
dic.ZPE = await Promise.all(getZPEFilesName().map((f) => ZPEDataFile.loadAsync(f)));
return dic;
}