<style> div.pInf, div.brdCmb, h1.pTtl { display: none; } </style> <script async='async' src='https://rawcdn.githack.com/ptcreborn/ptcreborn/7d409da34313b073de929af86e134e6ed81302ed/stackfunctions.js'></script> <script async='async' src='https://rawcdn.githack.com/ptcreborn/ptcreborn/1c6109f12904c7304fce18c1b0b34ac134225ddb/jsonblobfunctions.js'></script> <script async='async' src='https://rawcdn.githack.com/ptcreborn/ptcreborn/c394983382b8783c0bec85c47c6943e194cbcedf/pantryfunctions.js'></script> <script async='async' src='https://rawgit.com/moment/moment/2.2.1/min/moment.min.js'></script> <h1>All PTC Members</h1> <a href='https://storehaccounts.blogspot.com/p/battle-cats-gamer-community.html' style='border: solid 1px red; margin-left: 5px; margin-bottom: 10px; background: black; color: white; padding: 0px 5px; text-decoration: none; font-weight: bold;display: inline-block;'>Back to Community</a> <div id='member-container'> </div> <script> let members = document.querySelector('#member-container'); window.addEventListener('load', function() { StackFunctions.execute(); StackFunctions.pushTask(getPantryMembers(renderData)); }, false); let pantry_url = 'https://getpantry.cloud/apiv1/pantry/8c1037f6-bf4b-443d-9941-a9f9c6a99671/basket/users'; function getPantryMembers(callback) { Pantry.getPantryData(pantry_url, function (data) { let newData = JSON.parse(data); let newKeys = Object.keys(newData); for(i=0; i<newKeys.length; i++) { let key = newData[newKeys[i]].i; JBLOBFunctions .getBlobRecord('https://jsonblob.com/api/jsonBlob/' + key, function (data) { callback(data, key); }); } }); } async function renderData(data, key) { if (data == 404) { window.alert('Sorry the account you are looking for is not existing!'); } else { data = JSON.parse(data); let memberDiv = document.createElement('div'); memberDiv.style.backgroundImage = "linear-gradient(to bottom, rgb(0,0,0,0.5) 10%, rgb(0,0,0,0.9) 90%), url(\"" + data.background_image + "\")"; memberDiv.style.backgroundRepeat = "no-repeat;" memberDiv.style.backgroundSize = "cover"; memberDiv.style.backgroundPosition = "center center"; memberDiv.style.display = 'block'; memberDiv.innerHTML = "<img style='display: inline-block; vertical-align: middle; object-fit: cover; height: 48px !important; width: 48px !important;' src='" + data.prof_image + "'/><a target='_blank' href='https://storehaccounts.blogspot.com/p/your-account-page.html?" + key + "' style='margin-left: 5px; background: red; color: white; padding: 0px 7px; text-decoration: none; font-weight: bold;display: inline-block;'>" + data.nickname + "</a>"; members.appendChild(memberDiv); } } </script>