MOVE
const output = document.querySelector('.output');
const url = '
const ssid = '1Ji1q7R_ZLUQ7PYVTr3snkohHPTRwKESgCiRONdC4r2I';
const query1 = `/gviz/tq?`;
const endpoint1 = `${url}${ssid}${query1}`;
//output.textContent = endpoint1;
fetch(endpoint1)
.then(res => res.text())
.then(data =>{
const temp = data.substr(47).slice(0, -2)
//console.log(temp);
const json = JSON.parse(temp);
console.log(json.table.rows);
const rows = json.table.rows;
rows.forEach((row)=>{
//console.log(row);
const div = document.createElement('div');
const temp1 = row.c;
temp1.forEach((cell)=>{
//console.log(cell)
const box = document.createElement('div');
box.textContent = cell.v;
box.classList.add('box');
div.append(box);
})
output.append(div);
})
})
Visit our specialist at any location!
Keep in contact with us to receive exclusive offers!
Fresno and Visalia Store Hours: Monday - Friday 9am to 6pm | Saturday 10am to 5pm | Closed Sunday
Bakersfield and Stockton Store Hours: Monday - Friday 10am to 6pm | Saturday 10am to 5pm | Closed Sunday
Have a Question? Give us a call! 1-800-748-5430
Bakersfield 661-846-7500 | Fresno 559-226-7500 | Stockton 209-720-7500 | Visalia 559-739-7500