1
0
Fork 0
mirror of synced 2024-06-28 19:10:33 +12:00

tweak add page copy

This commit is contained in:
Nick Sweeting 2021-04-01 03:32:06 -04:00
parent f59b6d4189
commit 5492c204b8
2 changed files with 3 additions and 12 deletions

View file

@ -38,16 +38,7 @@
</form> </form>
<br/><br/><br/> <br/><br/><br/>
<center id="delay-warning" style="display: none"> <center id="delay-warning" style="display: none">
<b><i>This page will be unresponsive until the process is completely finished.</i></b> <small>(it's safe to leave this page, adding will continue in the background)</small>
<br/><br/>
<div>
Warning: it may take several minutes to finish adding!<br/>
<br/>
Progress will be displayed in the <code>archivebox server</code> stdout,<br/>
and on this page once the archiving process completes.<br/>
<br/>
<small>(it's safe to leave this page, adding will continue in the background)</small>
</div>
</center> </center>
{% if absolute_add_path %} {% if absolute_add_path %}
<center id="bookmarklet"> <center id="bookmarklet">
@ -58,7 +49,7 @@
<script> <script>
document.getElementById('add-form').addEventListener('submit', function(event) { document.getElementById('add-form').addEventListener('submit', function(event) {
setTimeout(function() { setTimeout(function() {
document.getElementById('add-form').innerHTML = '<center><h3>Adding URLs to index and running archive methods...<h3><br/><div class="loader"></div><br/>(see terminal for progress)</center>' document.getElementById('add-form').innerHTML = '<center><h3>Adding URLs to index and running archive methods...<h3><br/><div class="loader"></div><br/>Check server log or <a href="/admin/core/archiveresult/?o=-1">Outputs page</a> for progress...</center>'
document.getElementById('delay-warning').style.display = 'block' document.getElementById('delay-warning').style.display = 'block'
}, 200) }, 200)
return true return true

View file

@ -39,7 +39,7 @@ header {
margin: 10px; margin: 10px;
padding: 10px; padding: 10px;
font-size: 15px; font-size: 15px;
background-color: #f5dd5d; background-color: #8bc34a;
} }
#stdout { #stdout {
background-color: #fbfbfb; background-color: #fbfbfb;