Skip to content

Instantly share code, notes, and snippets.

View rbpollock's full-sized avatar

indefatigable rbpollock

View GitHub Profile
feature.on('click',e=>{
let img = parcel.getFeatureById('Counter1')
img.set({url:'https://dummyimage.com/200x20&text=Saving%20your%20like'})
img.set({url:'https://api.apiflash.com/v1/urltoimage?access_key=****YOUR ACCESS KEY&element=pre&width=200&fresh=true&format=png&rnd='+(Math.random()*9999)+'&url=https://api.countapi.xyz/hit/indefatigable/deathpenalty'})
})
// add a new feature with vox file
let img = parcel.getFeatureById('LH1')
let btn = parcel.getFeatureById('Like1')
let getReq = parcel.getFeatureById('LL1')
feature.on('click',e=>{
btn.position.set(5.42, 2.95, 2.96)
img.position.y = 3.15
getReq.set({url:'https://script.google.com/macros/s/****INSERT YOUR WEB APP SCRIPT ID HERE****/exec?uuid='+e.player.uuid+'&index=1'})
console.log('uuid',e.player.uuid)
})
// Once published to the web, this will allow users to increment a counter for an index, but only once per uuid
// Spreadsheet needs 2 tabs "Sheet1" and "Log"
function doGet(e){
return handleResponse(e);
}
function testResponse() {
var index = Number("2");
var result1 = logcheck("kris", index);
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreicp6yumcow5hetrpq6vazgvxzgh5eyce3rjnu7kr2xzkswsiejwjm ✅
Create your profile today to start building social connection and trust online at https://3Box.io/