-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPI.html
More file actions
33 lines (31 loc) · 767 Bytes
/
PI.html
File metadata and controls
33 lines (31 loc) · 767 Bytes
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
<html>
<head>
<script>
var FILE;
var DIDGIT;
let reader = new FileReader();
function read(file) {
reader.onload = function() {
DIDGIT = reader.result;
};
reader.readAsText(file);
}
function save(file) {
document.getElementById("ac").style.visibility = "collapse";
FILE = file;
read(FILE,count);
}
</script>
</head>
<body onload="setup()">
<input type='file' id="ac" accept='text/plain' onchange='save(event.target.files[0])'><br>
</div>
<a id="download" download="PI_By_Avolord.png"><button type="button" onClick="download()">Download</button></a>
</body>
<script src="AvoLib.js"></script>
<script>
Canvas = new CanDraw(2000,2000,"black",2);
//Canvas.Translate(0,0);
</script>
<script src="setup.js"></script>
</html>