-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreadme.html
More file actions
42 lines (42 loc) · 2.5 KB
/
Copy pathreadme.html
File metadata and controls
42 lines (42 loc) · 2.5 KB
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
<p><img src="http://www.fripixel.com.br/img/logotipo-footer.png" alt="Fripixel Logo" title="Fripixel Logo"></p>
<h1 id="uploader">UPLOADER</h1>
<h2 id="simplifying-the-upload-proccess">simplifying the upload proccess</h2>
<p>This plugins will accelerate your upload process.</p>
<p>it's simple to use, and its very useful.</p>
<p>Just add the styles </p>
<pre><code class="lang-html"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.1/css/materialize.min.css" />
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link rel="stylesheet" href="dist/css/uploadr.css" />
</code></pre>
<p>...and the necessary libraries...</p>
<pre><code class="lang-html"> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.1/js/materialize.min.js"></script>
<script src="dist/js/uploadr.min.js"></script>
</code></pre>
<p>...create the basic HTML structure...</p>
<pre><code class="lang-html"> <!-- uploadr -->
<div class="input-field col s12 margin-reset margin-bottom-default">
<!-- basic structure -->
<div class="uploadr">
<a href="javascript:;" id="addfile" class="btn btn-block blue lighten-1"><i class="fa fa-picture-o"></i> images</a>
<ul id="preview"></ul>
</div>
<!--// basic structure -->
<hr />
</div>
<!--// uploadr -->
</code></pre>
<p>...and initialize the plugin like this:</p>
<pre><code class="lang-javascript">$(function(){
$(".uploadr").uploadr({
'buttonID': '#addfile', //id of the uploadr
'inputName': 'images[]', //field name
'accept': "image/x-png, image/gif, image/jpeg", //filter extensions
'multiple': null, //multiple files
'qty': 0, //amount of files 0 = unlimited
'once': false // upload one file
});
});
</code></pre>
<p><em>Done! Enjoy it!</em></p>
<p><strong>Developed by:</strong> <a href="http://www.fripixel.com.br">http://www.fripixel.com.br</a></p>