add 404 page for incorrect download codes
This commit is contained in:
parent
106c99d398
commit
9d87934cf4
8 changed files with 92 additions and 36 deletions
53
static/css/states.css
Normal file
53
static/css/states.css
Normal file
|
@ -0,0 +1,53 @@
|
|||
/**
|
||||
* List of classes the body can have:
|
||||
*
|
||||
* landing: haven't entered upload password yet
|
||||
* no_files: no files are selected
|
||||
* selecting: upload hasn't started yet
|
||||
* uploading: upload is in progress
|
||||
* completed: upload is done
|
||||
* error: an error has occurred
|
||||
*/
|
||||
|
||||
.section_heading { display: none; }
|
||||
body.landing .section_heading { display: revert; }
|
||||
|
||||
#download { display: none; }
|
||||
body.landing #download { display: revert; }
|
||||
|
||||
body.noscript #upload { display: none; }
|
||||
|
||||
#message { display: none; }
|
||||
body.completed #message {
|
||||
display: revert;
|
||||
color: #060;
|
||||
border-color: #0a0;
|
||||
}
|
||||
body.error #message {
|
||||
display: revert;
|
||||
color: #d00;
|
||||
border-color: #f24;
|
||||
}
|
||||
|
||||
#upload_password_form { display: none; }
|
||||
body.landing #upload_password_form { display: revert; }
|
||||
|
||||
body.landing #upload_controls { display: none; }
|
||||
|
||||
#upload_settings { display: none; }
|
||||
body.selecting #upload_settings { display: revert; }
|
||||
body.no_files #upload_settings { display: none; }
|
||||
|
||||
body.selecting #download_code_container { display: none; }
|
||||
|
||||
#progress_container { display: none; }
|
||||
body.uploading #progress_container { display: revert; }
|
||||
|
||||
body.no_files #file_list { display: none; }
|
||||
body.completed #file_list { background-color: #7af; }
|
||||
|
||||
.delete_button { display: none; }
|
||||
body.selecting .delete_button { display: revert; }
|
||||
|
||||
#file_input_container { display: none; }
|
||||
body.selecting #file_input_container { display: revert; }
|
Loading…
Add table
Add a link
Reference in a new issue