file paste

This commit is contained in:
Andrea Spacca 2022-11-19 20:44:10 +09:00
parent 7240e75c3b
commit 32225828ad
6 changed files with 62 additions and 56 deletions

File diff suppressed because one or more lines are too long

View File

@ -141,6 +141,12 @@ $(document).ready(function() {
event.preventDefault();
});
$(document).bind('paste', function(event) {
$.each(event.originalEvent.clipboardData.files, function(index, file) {
upload(file);
});
});
$('a.browse').on('click', function() {
$('input[type=file]').click();
return (false);

View File

@ -16,7 +16,7 @@ body {
ul {
list-style: none;
max-width: 400px;
marghomein: 0 auto;
margin: 0 auto;
}
li {
display: inline-block;

View File

@ -88,7 +88,7 @@
.border-bottom-radius (5px);
background: @dark-blue;
// background: url(../images/terminal.svg);
backbground-repeat: no-repeat;
background-repeat: no-repeat;
background-size: cover;
}

View File

@ -5964,7 +5964,7 @@ body {
#navigation ul {
list-style: none;
max-width: 400px;
marghomein: 0 auto;
margin: 0 auto;
}
#navigation li {
display: inline-block;
@ -6164,7 +6164,7 @@ a:hover {
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
background: #36535a;
backbground-repeat: no-repeat;
background-repeat: no-repeat;
background-size: cover;
}
.terminal a {

File diff suppressed because one or more lines are too long