AllenYuan

firebase index.php

May 1st, 2020
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.17 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.14.2/firebase-app.js"></script>
  9.  
  10. <!-- TODO: Add SDKs for Firebase products that you want to use
  11.      https://firebase.google.com/docs/web/setup#available-libraries -->
  12.  
  13. <script>
  14.   // Your web app's Firebase configuration
  15.   var firebaseConfig = {
  16.     apiKey: "AIzaSyDjLFcsO92KpwLiFe7Hsp4gVd51w61WIsk",
  17.     authDomain: "canvasgamedemo.firebaseapp.com",
  18.     databaseURL: "https://canvasgamedemo.firebaseio.com",
  19.     projectId: "canvasgamedemo",
  20.     storageBucket: "canvasgamedemo.appspot.com",
  21.     messagingSenderId: "258751262925",
  22.     appId: "1:258751262925:web:50cdf23c2265aa7ae07984"
  23.   };
  24.   // Initialize Firebase
  25.   firebase.initializeApp(firebaseConfig);
  26. </script>
  27. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
  28. <script src="index.js"></script>
  29.  
  30. <!-- The core Firebase JS SDK is always required and must be listed first -->
  31. <script src="https://www.gstatic.com/firebasejs/7.14.2/firebase-app.js"></script>
  32.  
  33. <!-- TODO: Add SDKs for Firebase products that you want to use
  34.      https://firebase.google.com/docs/web/setup#available-libraries -->
  35.  
  36. <style>
  37.   body {
  38.     background-color: #f0f0f0;
  39.     margin: 16px;
  40.     font-family: Arial, Helvetica, sans-serif;
  41.   }
  42.  
  43.   #mycanvas {
  44.     border: 1px #000 solid;
  45.     background-color: #fff;
  46.     cursor: pointer;
  47.   }
  48.  
  49.   #mycanvasWrapper {
  50.     position: relative;
  51.   }
  52.  
  53.   #selectedBox {
  54.     border: 1px rgba(0, 50, 100, 0.5) solid;
  55.     background-color: rgba(0, 50, 100, 0.25);
  56.     position: absolute;
  57.     pointer-events: none;
  58.   }
  59. </style>
  60. <script>
  61.   let DIMENSION = 25;
  62. </script>
  63.  
  64. <body>
  65.   <h2>Canvas Demo Game</h2>
  66.   <div style='padding:8px;color:#222'>
  67.     YouTube video walkthrough: <a href=https://youtu.be/t1aXuJkmTg8>https://youtu.be/t1aXuJkmTg8</a><BR>
  68.     Source code: <a href=https://github.com/techleadhd/bigcanvasdemo>https://github.com/techleadhd/bigcanvasdemo/</a><BR>
  69.     <BR>
  70.   </div>
  71.   <div id=mycanvasWrapper>
  72.     <canvas id=mycanvas></canvas>
  73.   </div>
  74. </body>
  75.  
  76. </html>
  77.  
  78. EOF;
Add Comment
Please, Sign In to add comment