forked from mfu/mfu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmfu-dev.html
66 lines (53 loc) · 2.29 KB
/
mfu-dev.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script type="text/javascript" src="dojo-release-1.5.0-src/dojo/dojo.js"></script>
<!-- djConfig="parseOnLoad: true, isDebug:true" -->
<style type="text/css">
@import "../../dojo-release-1.5.0-src/dojo/resources/dojo.css";
@import "../../dojo-release-1.5.0-src/dijit/themes/dijit.css";
@import "dojo-release-1.5.0-src/dijit/themes/nihilo/nihilo.css";
@import "dojo-release-1.5.0-src/dijit/themes/tundra/tundra.css";
@import "dojo-release-1.5.0-src/dijit/themes/soria/soria.css";
@import "dojo-release-1.5.0-src/dijit/themes/claro/claro.css";
@import "src/multiplefileuploader/resources/FileInput.css";
</style>
</head>
<body class=tundra>
<p>
Dijit comes bundled with three themes.
MFU is compliant with dijit/dojo's themes
</p>
</p>
Choose your theme : <select id="themeSelector" onChange="dojo.removeClass(dojo.body());dojo.addClass(dojo.body(), this.options[this.selectedIndex].value);">
<option value="tundra" selected="selected">tundra</option>
<option value="claro">claro</option>
<option value="nihilo">nihilo</option>
<option value="soria">soria</option>
</select>
</p>
<br />
<div id="uploadContainer"></div>
<div id="headmsg"></div>
<div id="result"></div>
<script type="text/javascript">
dojo.registerModulePath("multiplefileuploader","../../src/multiplefileuploader");
dojo.registerModulePath("samples","../../src/samples");
dojo.addOnLoad( function(){
dojo.require("multiplefileuploader.widget.MultipleFileUploader");
dojo.require("samples.mfudemo.pymagerConf");
dojo.addOnLoad( function(){
var params = {
ajaxUploadUrl: "src/samples/php/upload.php",
uploadStatusURL : "src/samples/php/status.php"
};
var upload = new multiplefileuploader.widget.MultipleFileUploader( params, dojo.byId("uploadContainer") );
dojo.connect(upload, 'onFinishedUpload', function(uploadedFileInformation) {
samples.mfudemo.pymagerConf.addHeadMsg();
samples.mfudemo.pymagerConf.generateLinks(uploadedFileInformation);
});
});
});
</script>
</body>
</html>