Lab 34 Reflection
Jhoan Alexander
WCP Reflection
This lab was made with a Javascript 30 tutorial. JavaScript 30 is an online resource website which supplies alumni with Javascript tutorials. In this lab it required HTML, CSS and Javascript. In this lab we created a compass which would point to whatever direction you were facing in, and the speed at which somebody is going. We did this by making separate constants for both the speed and direction. After that, we used navigator.geolocation.watchPosition to sense the speed at which someone was going. To rotate the arrow of the compass, we accessed the css through javascript based on the direction that the person is pointing to using arrow.style.transform = `rotate(${data.coords.heading}deg). This lab was constructed with a tutorial, I didn't face much issues as they were resolved through looking at the video and finding my error. Overall a great lab and now I'll never get lost, all I have to do is open my lab 34.
WCP Reflection
This lab was made with a Javascript 30 tutorial. JavaScript 30 is an online resource website which supplies alumni with Javascript tutorials. In this lab it required HTML, CSS and Javascript. In this lab we created a compass which would point to whatever direction you were facing in, and the speed at which somebody is going. We did this by making separate constants for both the speed and direction. After that, we used navigator.geolocation.watchPosition to sense the speed at which someone was going. To rotate the arrow of the compass, we accessed the css through javascript based on the direction that the person is pointing to using arrow.style.transform = `rotate(${data.coords.heading}deg). This lab was constructed with a tutorial, I didn't face much issues as they were resolved through looking at the video and finding my error. Overall a great lab and now I'll never get lost, all I have to do is open my lab 34.
Comments
Post a Comment