AllenYuan

index.php scaffold

Apr 30th, 2020
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.33 KB | None | 0 0
  1. <?php
  2.  
  3. print <<<EOF
  4.  
  5. <!doctype html>
  6. <html>
  7. <!-- The core Firebase JS SDK is always required and must be listed first -->
  8. <script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-app.js"></script>
  9. <script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-firestore.js"></script>
  10. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
  11. <script src="index.js"></script>
  12.  
  13. <style>
  14.   body {
  15.     background-color: #f0f0f0;
  16.     margin: 16px;
  17.     font-family: Arial, Helvetica, sans-serif;
  18.   }
  19.  
  20.   #mycanvas {
  21.     border: 1px #000 solid;
  22.     background-color: #fff;
  23.     cursor: pointer;
  24.   }
  25.  
  26.   #mycanvasWrapper {
  27.     position: relative;
  28.   }
  29.  
  30.   #selectedBox {
  31.     border: 1px rgba(0, 50, 100, 0.5) solid;
  32.     background-color: rgba(0, 50, 100, 0.25);
  33.     position: absolute;
  34.     pointer-events: none;
  35.   }
  36. </style>
  37. <script>
  38.   let DIMENSION = $DIMENSION;
  39. </script>
  40.  
  41. <body>
  42.   <h2>Canvas Demo Game</h2>
  43.   <div style='padding:8px;color:#222'>
  44.     YouTube video walkthrough: <a href=https://youtu.be/t1aXuJkmTg8>https://youtu.be/t1aXuJkmTg8</a><BR>
  45.     Source code: <a href=https://github.com/techleadhd/bigcanvasdemo>https://github.com/techleadhd/bigcanvasdemo/</a><BR>
  46.     <BR>
  47.   </div>
  48.   <div id=mycanvasWrapper>
  49.     <canvas id=mycanvas></canvas>
  50.   </div>
  51. </body>
  52.  
  53. </html>
  54.  
  55. EOF;
Add Comment
Please, Sign In to add comment