Facebook
From Stained Motmot, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 68
  1. <!DOCTYPE html>
  2. <html>
  3.         <head>
  4.                 <title>error - no internet</title>
  5.                 <meta charset="UTF-8">
  6.                 <style>
  7.                         h1
  8.                         {
  9.                                 color: black;
  10.                                 background-color: white;
  11.                                 font-size: 20px;
  12.                         }
  13.                         body
  14.                         {
  15.                                 background-color: white;
  16.                                 text-align: center;
  17.                         }
  18.                         canvas
  19.                         {
  20.                                 background-color: white;
  21.                                 display: block;
  22.                                 margin: 0 auto;
  23.                         }
  24.                 </style>
  25.         </head>
  26.         <body>
  27.                 <h1>NO INTERNET</h1>
  28.                 <canvas id="gra" width="1200px" height="400px"> </canvas>
  29.                 <script>
  30.                 var c = document.getElementById("gra");
  31.                 var ctx = c.getContext("2d");
  32.                 var speed = 80;
  33.                 var graphicDino = new Image();
  34.                 graphicDino.src = 'image-5.png';
  35.                 var number = 1;
  36.                 var dinoX = 50;
  37.                 var dinoY = 50;
  38.                 var dinoWidth = 32;
  39.                 var dinoHeight = 32;
  40.                 function animation(){
  41.                         ctx.drawImage(graphicDino,dinoX,dinoY,dinoWidth,dinoHeight);
  42.                 }
  43.                 function run (){
  44.                         animation();
  45.                 }
  46.                 setInterval(run, speed);
  47.                 </script>
  48.         </body>
  49. </html>