import {createFirstRow, createFirstRowOcc, createRow} from "./createTable.js" import {createPagination} from './pagination.js' import {createOccRow} from './createTable.js' import {createPage} from './createSingleContext.js' export let arrayResponse = []; export function processData(response){ console.log(response); $("#loader").css("display", "none"); if(response.length==0){ alert('No results!') } else { arrayResponse = response; var keys = Object.keys(response[0]); createFirstRow(keys); var ll = response.length; for (var i=0; i= pp) { pp = pp + 10; ref = ref + 1; } else { pp = pp; } let newRow = response[i]; createOccRow(i, newRow, ref); } } } export function processSingleContext(response){ if(response.length==0){ alert('No results!') } else { console.log(response); createPage(response[0]); } }