Just a few years in the past I wrote an article about tips on how to detect VR help with JavaScript. Since that point, an entire lot has modified. “Augmented actuality” turned a factor and terminology has moved to “XR”, as an alternative of VR or AR. As such, the API has wanted to evolve.
The presence of navigator.xr
indicators that the browser helps the WebXR API and XR gadgets:
const supportsXR = 'xr' in window.navigator;
I actually like utilizing in
for characteristic checking slightly than if(navigator.xr)
, as merely invoking that would trigger some initialization to happen. In future posts we’ll discover figuring out and connecting to completely different gadgets.
Web page Visibility API
One occasion that is all the time been missing inside the doc is a sign for when the person is a given tab, or one other tab. When does the person change off our website to have a look at one thing else? When do they arrive again?
RealTime Inventory Quotes with MooTools Request.Shares and YQL
It goes with out saying however MooTools’ inheritance sample permits for creation of small, easy lessons that possess immense energy. One instance of that energy is a category that inherits from Request, Request.JSON, and Request.JSONP: Request.Shares. Created by Enrique Erne, this nice MooTools class acts as…
Spyjax: Ajax For Evil Utilizing Dojo
The concept of Spyjax is nothing new. In pasts posts I’ve coated how one can spy in your person’s historical past with each MooTools and jQuery. Right now we’ll cowl tips on how to verify person historical past utilizing the Dojo Toolkit. The HTML For the sake of this…
Just a few years in the past I wrote an article about tips on how to detect VR help with JavaScript. Since that point, an entire lot has modified. “Augmented actuality” turned a factor and terminology has moved to “XR”, as an alternative of VR or AR. As such, the API has wanted to evolve.
The presence of navigator.xr
indicators that the browser helps the WebXR API and XR gadgets:
const supportsXR = 'xr' in window.navigator;
I actually like utilizing in
for characteristic checking slightly than if(navigator.xr)
, as merely invoking that would trigger some initialization to happen. In future posts we’ll discover figuring out and connecting to completely different gadgets.
Web page Visibility API
One occasion that is all the time been missing inside the doc is a sign for when the person is a given tab, or one other tab. When does the person change off our website to have a look at one thing else? When do they arrive again?
RealTime Inventory Quotes with MooTools Request.Shares and YQL
It goes with out saying however MooTools’ inheritance sample permits for creation of small, easy lessons that possess immense energy. One instance of that energy is a category that inherits from Request, Request.JSON, and Request.JSONP: Request.Shares. Created by Enrique Erne, this nice MooTools class acts as…
Spyjax: Ajax For Evil Utilizing Dojo
The concept of Spyjax is nothing new. In pasts posts I’ve coated how one can spy in your person’s historical past with each MooTools and jQuery. Right now we’ll cowl tips on how to verify person historical past utilizing the Dojo Toolkit. The HTML For the sake of this…