fix iframe redirect issue
This commit is contained in:
parent
3aa78c3329
commit
6117306fdc
2 changed files with 5 additions and 2 deletions
|
@ -8,7 +8,7 @@ $(document).ready( function() {
|
||||||
$("input[type='file']").each(function() {
|
$("input[type='file']").each(function() {
|
||||||
$(this).after('<img src="#" alt="" id="previewImage" style="margin:10px 0; max-width:500px;"/>');
|
$(this).after('<img src="#" alt="" id="previewImage" style="margin:10px 0; max-width:500px;"/>');
|
||||||
});
|
});
|
||||||
// preview uploaded pic})
|
// preview uploaded pic
|
||||||
$("input[type='file']").change(function() {
|
$("input[type='file']").change(function() {
|
||||||
if (this.files && this.files[0]) {
|
if (this.files && this.files[0]) {
|
||||||
var reader = new FileReader();
|
var reader = new FileReader();
|
||||||
|
@ -20,4 +20,6 @@ $(document).ready( function() {
|
||||||
reader.readAsDataURL(this.files[0]);
|
reader.readAsDataURL(this.files[0]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
|
@ -44,7 +44,8 @@
|
||||||
<section id="content" class="container">
|
<section id="content" class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div id="main">
|
<div id="main">
|
||||||
<iframe src="https://search.douban.com/book/subject_search{% if keywords %}?search_text={{ keywords }}{% endif %}" frameborder="0"></iframe>
|
|
||||||
|
<iframe sandbox="allow-same-origin allow-scripts allow-popups allow-forms" src="https://search.douban.com/book/subject_search{% if keywords %}?search_text={{ keywords }}{% endif %}" frameborder="0"></iframe>
|
||||||
<div class="dividing-line"></div>
|
<div class="dividing-line"></div>
|
||||||
<div id="scrapeForm">
|
<div id="scrapeForm">
|
||||||
<form action="{% url 'books:create' %}" method="POST" enctype="multipart/form-data">
|
<form action="{% url 'books:create' %}" method="POST" enctype="multipart/form-data">
|
||||||
|
|
Loading…
Add table
Reference in a new issue