forked from MyonMyon/feijoa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdfc_example_vars.htm
57 lines (52 loc) · 1.36 KB
/
dfc_example_vars.htm
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
<!doctype html>
<html lang="ru">
<head>
<meta charset="utf-8">
<link rel="shortcut icon" type="image/png" href="draw_app/dfc.png">
<title>dfc.js - test, how it's used</title>
<style>
body, body > * {
min-width: 690px;
max-width: 1000px;
margin: 0 auto;
text-align: center;
}
body { background-color: #eee;}
body > #d { background-color: #aaa;}
body > p { background-color: #ddd;}
body > * { padding: 1em 0 1em 0;}
</style>
</head>
<body>
<header>document.write(</header>
<div id="d">
<noscript><JavaScript support required.></noscript>
<script id="dfc-vars" src="draw_app/dfc.js" data-vars="
t0=1234567890;
read_init=draw_app/dfc.png;
send=png;
send_blob=yes (remove this line if server cannot parse file blob);
send_callback=onSendDrawing;
resize_callback=onResizeDrawing;
saveprfx=d;
undo=99;
w=640;
h=360;
wl=100,1920;
hl=100,1080;
palettes=draw_app/palettes.js;
"></script>
<script>
function onSendDrawing(form, onError) {
// Prepare form fields, attributes, etc, for example:
form.setAttribute('action', 'finish.pl');
form.submit();
}
function onResizeDrawing(width, height) {
// Update UI to accomodate new drawpad dimensions.
}
</script>
</div>
<footer>), read = <input type="text" id="dfc-read" value="/favicon.ico" title="filepath">.</footer>
</body>
</html>