mirror of
https://github.com/Studio-42/elFinder.git
synced 2026-06-19 07:37:19 +00:00
48576af671
* Refactor touch event binding in elfinder.js (#3762) for jquery 4.0 * Refactor name trimming in elFinder.resources.js (#3763) for jquery 4.0 * Replace jQuery methods with native JavaScript equivalents (#3764) for jquery 4.0 * Refactor command binding to use bind method (#3765) for jquery 4.0 * Refactor search input value handling and buttonset (#3766) for jquery 4.0 * Refactor function calls to use bind instead of proxy (#3767) for jquery 4.0 * Refactor text trimming method in parseUploadData (#3768) for jquery 4.0 * Fix mime trimming and whitespace handling (#3769) for jquery 4.0 * Refactor value trimming to use native trim method (#3772) for jquery 4.0 * Fix binding of 'make' method in mkfile.js (#3773) for jquery 4.0 * Fix binding of make function in mkdir command (#3774) for jquery 4.0 * Fix string trimming for translator names (#3775) for jquery 4.0 * Fix binding of mixin make function in edit.js (#3776) For jquery 4 * Refactor permission value trimming method (#3777) For jquery 4.0 * fix: to support jQuery 4.0.0 * update: use jQuery 4.0.0/jQueyUI 1.14.2 --------- Co-authored-by: Brian Stone <brianstone@hotmail.com.au>
190 lines
6.9 KiB
HTML
190 lines
6.9 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
|
|
<title>elFinder 2.1.x source version with PHP connector</title>
|
|
|
|
<!-- Section CSS -->
|
|
<!-- jQuery UI (REQUIRED) -->
|
|
<link rel="stylesheet" href="jquery/jquery-ui-1.14.2/jquery-ui.css" type="text/css">
|
|
|
|
<!-- elfinder css -->
|
|
<link rel="stylesheet" href="css/commands.css" type="text/css">
|
|
<link rel="stylesheet" href="css/common.css" type="text/css">
|
|
<link rel="stylesheet" href="css/contextmenu.css" type="text/css">
|
|
<link rel="stylesheet" href="css/cwd.css" type="text/css">
|
|
<link rel="stylesheet" href="css/dialog.css" type="text/css">
|
|
<link rel="stylesheet" href="css/fonts.css" type="text/css">
|
|
<link rel="stylesheet" href="css/navbar.css" type="text/css">
|
|
<link rel="stylesheet" href="css/places.css" type="text/css">
|
|
<link rel="stylesheet" href="css/quicklook.css" type="text/css">
|
|
<link rel="stylesheet" href="css/statusbar.css" type="text/css">
|
|
<link rel="stylesheet" href="css/theme.css" type="text/css">
|
|
<link rel="stylesheet" href="css/toast.css" type="text/css">
|
|
<link rel="stylesheet" href="css/toolbar.css" type="text/css">
|
|
|
|
<!-- Section JavaScript -->
|
|
<!-- jQuery and jQuery UI (REQUIRED) -->
|
|
<script src="jquery/jquery-4.0.0.js" type="text/javascript" charset="utf-8"></script>
|
|
<script src="jquery/jquery-ui-1.14.2/jquery-ui.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
<!-- elfinder core -->
|
|
<script src="js/elFinder.js"></script>
|
|
<script src="js/elFinder.version.js"></script>
|
|
<script src="js/jquery.elfinder.js"></script>
|
|
<script src="js/elFinder.mimetypes.js"></script>
|
|
<script src="js/elFinder.options.js"></script>
|
|
<script src="js/elFinder.options.netmount.js"></script>
|
|
<script src="js/elFinder.history.js"></script>
|
|
<script src="js/elFinder.command.js"></script>
|
|
<script src="js/elFinder.resources.js"></script>
|
|
|
|
<!-- elfinder dialog -->
|
|
<script src="js/jquery.dialogelfinder.js"></script>
|
|
|
|
<!-- elfinder default lang -->
|
|
<script src="js/i18n/elfinder.en.js"></script>
|
|
|
|
<!-- elfinder ui -->
|
|
<script src="js/ui/button.js"></script>
|
|
<script src="js/ui/contextmenu.js"></script>
|
|
<script src="js/ui/cwd.js"></script>
|
|
<script src="js/ui/dialog.js"></script>
|
|
<script src="js/ui/fullscreenbutton.js"></script>
|
|
<script src="js/ui/navbar.js"></script>
|
|
<script src="js/ui/navdock.js"></script>
|
|
<script src="js/ui/overlay.js"></script>
|
|
<script src="js/ui/panel.js"></script>
|
|
<script src="js/ui/path.js"></script>
|
|
<script src="js/ui/places.js"></script>
|
|
<script src="js/ui/searchbutton.js"></script>
|
|
<script src="js/ui/sortbutton.js"></script>
|
|
<script src="js/ui/stat.js"></script>
|
|
<script src="js/ui/toast.js"></script>
|
|
<script src="js/ui/toolbar.js"></script>
|
|
<script src="js/ui/tree.js"></script>
|
|
<script src="js/ui/uploadButton.js"></script>
|
|
<script src="js/ui/viewbutton.js"></script>
|
|
<script src="js/ui/workzone.js"></script>
|
|
|
|
<!-- elfinder commands -->
|
|
<script src="js/commands/archive.js"></script>
|
|
<script src="js/commands/back.js"></script>
|
|
<script src="js/commands/chmod.js"></script>
|
|
<script src="js/commands/colwidth.js"></script>
|
|
<script src="js/commands/copy.js"></script>
|
|
<script src="js/commands/cut.js"></script>
|
|
<script src="js/commands/download.js"></script>
|
|
<script src="js/commands/duplicate.js"></script>
|
|
<script src="js/commands/edit.js"></script>
|
|
<script src="js/commands/empty.js"></script>
|
|
<script src="js/commands/extract.js"></script>
|
|
<script src="js/commands/forward.js"></script>
|
|
<script src="js/commands/fullscreen.js"></script>
|
|
<script src="js/commands/getfile.js"></script>
|
|
<script src="js/commands/help.js"></script>
|
|
<script src="js/commands/hidden.js"></script>
|
|
<script src="js/commands/hide.js"></script>
|
|
<script src="js/commands/home.js"></script>
|
|
<script src="js/commands/info.js"></script>
|
|
<script src="js/commands/mkdir.js"></script>
|
|
<script src="js/commands/mkfile.js"></script>
|
|
<script src="js/commands/netmount.js"></script>
|
|
<script src="js/commands/open.js"></script>
|
|
<script src="js/commands/opendir.js"></script>
|
|
<script src="js/commands/opennew.js"></script>
|
|
<script src="js/commands/paste.js"></script>
|
|
<script src="js/commands/places.js"></script>
|
|
<script src="js/commands/preference.js"></script>
|
|
<script src="js/commands/quicklook.js"></script>
|
|
<script src="js/commands/quicklook.plugins.js"></script>
|
|
<script src="js/commands/reload.js"></script>
|
|
<script src="js/commands/rename.js"></script>
|
|
<script src="js/commands/resize.js"></script>
|
|
<script src="js/commands/restore.js"></script>
|
|
<script src="js/commands/rm.js"></script>
|
|
<script src="js/commands/search.js"></script>
|
|
<script src="js/commands/selectall.js"></script>
|
|
<script src="js/commands/selectinvert.js"></script>
|
|
<script src="js/commands/selectnone.js"></script>
|
|
<script src="js/commands/sort.js"></script>
|
|
<script src="js/commands/undo.js"></script>
|
|
<script src="js/commands/up.js"></script>
|
|
<script src="js/commands/upload.js"></script>
|
|
<script src="js/commands/view.js"></script>
|
|
|
|
<!-- elfinder 1.x connector API support (OPTIONAL) -->
|
|
<script src="js/proxy/elFinderSupportVer1.js"></script>
|
|
|
|
<!-- Extra contents editors (OPTIONAL) -->
|
|
<script src="js/extras/editors.default.js"></script>
|
|
|
|
<!-- GoogleDocs Quicklook plugin for GoogleDrive Volume (OPTIONAL) -->
|
|
<script src="js/extras/quicklook.googledocs.js"></script>
|
|
|
|
<!-- elfinder initialization -->
|
|
<script>
|
|
$(function() {
|
|
$('#elfinder').elfinder(
|
|
// 1st Arg - options
|
|
{
|
|
// Disable CSS auto loading
|
|
cssAutoLoad : false,
|
|
|
|
// Base URL to css/*, js/*
|
|
baseUrl : './',
|
|
|
|
// Connector URL
|
|
url : 'php/connector.minimal.php',
|
|
|
|
// Callback when a file is double-clicked
|
|
getFileCallback : function(file) {
|
|
// ...
|
|
},
|
|
},
|
|
|
|
// 2nd Arg - before boot up function
|
|
function(fm, extraObj) {
|
|
// `init` event callback function
|
|
fm.bind('init', function() {
|
|
// Optional for Japanese decoder "extras/encoding-japanese.min"
|
|
delete fm.options.rawStringDecoder;
|
|
if (fm.lang === 'ja') {
|
|
fm.loadScript(
|
|
[ fm.baseUrl + 'js/extras/encoding-japanese.min.js' ],
|
|
function() {
|
|
if (window.Encoding && Encoding.convert) {
|
|
fm.options.rawStringDecoder = function(s) {
|
|
return Encoding.convert(s,{to:'UNICODE',type:'string'});
|
|
};
|
|
}
|
|
},
|
|
{ loadType: 'tag' }
|
|
);
|
|
}
|
|
});
|
|
|
|
// Optional for set document.title dynamically.
|
|
var title = document.title;
|
|
fm.bind('open', function() {
|
|
var path = '',
|
|
cwd = fm.cwd();
|
|
if (cwd) {
|
|
path = fm.path(cwd.hash) || null;
|
|
}
|
|
document.title = path? path + ':' + title : title;
|
|
}).bind('destroy', function() {
|
|
document.title = title;
|
|
});
|
|
}
|
|
);
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="elfinder"></div>
|
|
</body>
|
|
</html>
|