-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexample.html
72 lines (51 loc) · 1.42 KB
/
example.html
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
63
64
65
66
67
68
69
70
71
72
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<div style="background-image: url('bg.jpg'); width: 100%; height: 100%;"> </div>
<img src="bg.jpg" style="width: 300px; height: auto;">
<button onclick="dragio.open()">Upload file</button>
<link rel="stylesheet" href="Dragio.css">
<script src="Dragio.js"></script>
<script>
var dragio = new Dragio({
'ID': "x",
"URL": "http://localhost:8000/upload",
"pasteURL": "http://localhost:8000/paste",
"debug": true,
});
/*
"callback": function(e, id) {
console.log("Dragio#" + id, e);
}
*/
</script>
<style>
/*************************************************/
@font-face {
font-family: Poppins-Regular;
src: url('./fonts/poppins/Poppins-Regular.ttf');
}
@font-face {
font-family: Poppins-Medium;
src: url('./fonts/poppins/Poppins-Medium.ttf');
}
@font-face {
font-family: Poppins-Bold;
src: url('./fonts/poppins/Poppins-Bold.ttf');
}
@font-face {
font-family: Poppins-SemiBold;
src: url('./fonts/poppins/Poppins-SemiBold.ttf');
}
* {
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
body,
html {
height: 100%;
font-family: Poppins-Regular, sans-serif;
}
.no-overflow {
overflow: hidden;
}
</style>