-
Notifications
You must be signed in to change notification settings - Fork 33
/
index.php
executable file
·62 lines (50 loc) · 1.58 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
require_once 'global.php';
print <<<EOF
<!doctype html>
<html>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-firestore.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="index.js?version=$VERSION"></script>
<style>
body {
background-color: #f0f0f0;
margin: 16px;
font-family: Arial, Helvetica, sans-serif;
}
#mycanvas {
border: 1px #000 solid;
background-color: #fff;
cursor: pointer;
}
#mycanvasWrapper {
position: relative;
}
#selectedBox {
border: 1px rgba(0, 50, 100, 0.5) solid;
background-color: rgba(0, 50, 100, 0.25);
position: absolute;
pointer-events: none;
}
</style>
<script>
let DIMENSION = $DIMENSION;
</script>
<body>
<h2>Big Canvas Demo</h2>
<div style='padding:8px;color:#222'>
YouTube video walkthrough: <a href=https://youtu.be/t1aXuJkmTg8>https://youtu.be/t1aXuJkmTg8</a><BR>
Source code: <a href=https://github.com/techleadhd/bigcanvasdemo>https://github.com/techleadhd/bigcanvasdemo/</a><BR>
<BR>
Looking for more coding tips? <BR>
Join ex-Google/ex-Facebook engineers at
<a href=http://techinterviewpro.com>http://techinterviewpro.com</a> for interview prep to FANG companies.
</div>
<div id=mycanvasWrapper>
<canvas id=mycanvas></canvas>
</div>
</body>
</html>
EOF;