/
index.html
77 lines (69 loc) · 1.64 KB
/
index.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
73
74
75
76
77
<!doctype html>
<html>
<head>
<title>jquery.multifile.js</title>
<style type="text/css">
html, body {
margin: 0 auto;
max-width: 500px;
font: 13px/22px Helvetica, Arial, sans-serif;
}
header, nav, article, section, aside, footer {
display: block;
}
header#header {
padding: 21px;
}
h2 {
font-size: 28px;
}
h3 {
font-size: 18px;
}
section h1 {
display: none;
}
footer {
padding: 21px;
}
pre code {
width: 484px;
overflow-x: auto;
}
.multifile_remove_input {
color: red;
text-decoration: none;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script src="lib/showdown.js"></script>
<script type="text/javascript">
jQuery(function($)
{
$.get('README.md', function(data)
{
$('.explanation').html((new Showdown.converter()).makeHtml(data));
});
});
</script>
<script src="jquery.multifile.js"></script>
</head>
<body>
<header>
<h1>jquery.multifile.js</h1>
</header>
<section class="explanation">
<p>If you don't have JavaScript enabled, I doubt multifile will work for you :(. Maybe use the multiple attribute?</p>
</section>
<section class="demo">
<h2>Demo</h2>
<input id="file_input" type="file" name="files[]">
</section>
<script type="text/javascript">
jQuery(function($)
{
$('#file_input').multifile();
});
</script>
</body>
</html>