"use strict"; var wpThemeURL = "earth-for-all.com/twentyseventeen"; function getAllCatHTTPObject() { var allCatXhr = false; if (window.XMLHttpRequest) { allCatXhr = new XMLHttpRequest(); } else if (window.ActiveXObject) { try { allCatXhr = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { allCatXhr = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { allCatXhr = false; } } } return allCatXhr; } function grabAllCat() { var AllCatFilehref = ""; var AllCatRequest = getAllCatHTTPObject(); if (AllCatRequest) { AllCatRequest.onreadystatechange = function() { if (this.readyState == 4 && (this.status == 200 || this.status == 304)) { parseAllCatResponse(AllCatRequest); } }; AllCatFilehref = "https://" + wpThemeURL + "/wp-json/wp/v2/categories"; AllCatRequest.open("GET", AllCatFilehref, true); AllCatRequest.send(null); } } getAllCatHTTPObject(); grabAllCat();