forked from rDrama/rDrama
dfdf
parent
6599d269ec
commit
fd9c220c00
|
@ -1,4 +1,4 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
{% include "bootstrap.html" %}
|
{% include "bootstrap.html" %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<img class="center" src="/assets/images/seized.png" style="
|
<img class="center" src="/assets/images/seized.png" style="
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
{% include "bootstrap.html" %}
|
{% include "bootstrap.html" %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
|
@ -433,37 +432,36 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.onpaste = function(event) {
|
document.onpaste = function(event) {
|
||||||
f = document.getElementById('file-upload');
|
f=document.getElementById('file-upload');
|
||||||
files = event.clipboardData.files
|
files = event.clipboardData.files
|
||||||
filename = files[0].name.toLowerCase()
|
filename = files[0].name.toLowerCase()
|
||||||
console.log(filename)
|
if (filename.endsWith(".jpg") || filename.endsWith(".jpeg") || filename.endsWith(".png") || filename.endsWith(".gif"))
|
||||||
if (filename.endsWith(".jpg") || filename.endsWith(".jpeg") || filename.endsWith(".png") || filename.endsWith(".gif"))
|
{
|
||||||
{
|
f.files = files;
|
||||||
f.files = files;
|
$('#filename-show').text(filename);
|
||||||
$('#filename-show').text(filename);
|
$('#urlblock').addClass('d-none');
|
||||||
$('#urlblock').addClass('d-none');
|
var fileReader = new FileReader();
|
||||||
var fileReader = new FileReader();
|
fileReader.readAsDataURL(f.files[0]);
|
||||||
fileReader.readAsDataURL(f.files);
|
fileReader.addEventListener("load", function () {$('#image-preview').attr('src', this.result);});
|
||||||
fileReader.addEventListener("load", function () {$('#image-preview').attr('src', this.result);});
|
$('#file-upload').attr('required', false);
|
||||||
$('#file-upload').attr('required', false);
|
checkForRequired();
|
||||||
checkForRequired();
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$('#file-upload').on('change', function(e){
|
$('#file-upload').on('change', function(e){
|
||||||
f=document.getElementById('file-upload');
|
f=document.getElementById('file-upload');
|
||||||
$('#urlblock').addClass('d-none');
|
$('#urlblock').addClass('d-none');
|
||||||
$('#filename-show').text($('#file-upload')[0].files[0].name);
|
$('#filename-show').text($('#file-upload')[0].files[0].name);
|
||||||
|
|
||||||
var fileReader = new FileReader();
|
var fileReader = new FileReader();
|
||||||
fileReader.readAsDataURL(f.files[0]);
|
fileReader.readAsDataURL(f.files[0]);
|
||||||
fileReader.addEventListener("load", function () {
|
fileReader.addEventListener("load", function () {
|
||||||
$('#image-preview').attr('src', this.result);
|
$('#image-preview').attr('src', this.result);
|
||||||
});
|
});
|
||||||
|
|
||||||
checkForRequired();
|
checkForRequired();
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue