<video controls id="myvideo"> <source src="somevideo.webm"></source> <source src="somevideo.mp4"></source> </video>
var elem = document.getElementById("myvideo"); if (elem.requestFullscreen) { elem.requestFullscreen(); }
navigator.geolocation.getCurrentPosition(({ coords: { latitude, longitude } }) => { console.log(latitude, longitude); // 52.4576432 16.9191283 });
navigator.geolocation.watchPosition(({ coords: { latitude, longitude } }) => { console.log(latitude, longitude); // 52.4576432 16.9191283 });
const time = window.performance.now(); console.log(time); //68615.12000000001
window.performance.mark('start'); setTimeout(() => { window.performance.mark('end'); console.log(performance.getEntriesByType('mark')) }, 500);
By Patryk Ziemkowski