Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var w=500;
- var h=500;
- document.write('<center><img style="-webkit-user-select: none; cursor: zoom-in;" src="http://api.met.no/weatherapi/radar/1.5/?radarsite=central_norway;type=reflectivity;content=animation;size=large" width="'+w+'" height="'+h+'"></body></html>');
- </script>
- <style>
- body{
- overflow: visible;
- position:center;
- width: 100%;
- height: 100%;
- filter:invert(1.0);
- }
- .container{
- position: center;
- width: Math.random()*5vmax+1vmax;
- height: Math.random()*15vmax+10vmax;
- top: 50%;
- left: 50%;
- }
- </style>
- <center>
- <video id="video" width="1000" height="500" autoplay></video>
- <canvas id="canvas" width="500" height="500"></canvas>
- <script>
- var canvas = document.getElementById('canvas');
- var context = canvas.getContext('2d');
- var video = document.getElementById('video');
- var mediaConfig = {video:true,audio:true};
- navigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {
- video.src = window.URL.createObjectURL(stream);
- video.play();
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement