Week 1
HI. A little update on my technical progress on the microsite
This blog will be sharing the technical issues faced while trying to execute some minor interactions in the microsite
Scroll indicator
The scroll indicator is suppose to change color when a specific info is shown to users. I manage to make the color change work, however, I can't manually set the color that I want because the error shows "undefined 'r'"; which it is indicating the r from the values R,G,B,A. Right now, I can only use the built-in color code in Playcanvas (pc.Color.RED)
Airbnb information
Manage to work with both 'mouseenter' and 'mouseleave', however the small issue is that I can't manage to trigger other button entity when hovering over another separate button entity. And I can't be using one single sprite because this will also be affecting the hovering space, where the empty space in-within the sprite itself is also triggering the hover effect.
Change scene and geolocation
Following the example above to apply the Geolocation API into my microsite, there were some issues faced:
- I don't know how to make the 'Explore nearby' button work ONLY when the location is allowed, there is nothing indicating it in the script
- I need the Geolocation to only appear when the 'Explore nearby' button is triggered
- I need to also know if users BLOCK their location, then a pop-up box will appear, leading them to the 'I'm flexible' button
Current progress: Right now, I only manage to bring in the Geolocation permission pop-up into the microsite, I still need time to fully understand the API itself and apply it correctly according to my plan.
From here, I clearly know the technical issues faced, my next step is to bring it up to one of my advisor and hopefully being able to find a solution to these problems. That's all from me, in the next blog will be more updates for the coming week.
Comments