mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 03:56:21 +05:30
Added autosave feature to posts/pages
Added a feature to automatically save posts/pages every 60 seconds as a draft to avoid lost work. Includes a notification in the bottom right of the screen. Still needs a bit more work to avoid saving multiple drafts under different file names. Only auto saves for new posts/pages, not edits.
This commit is contained in:
parent
f139bd33bd
commit
25fee781cf
5 changed files with 292 additions and 2 deletions
16
system/resources/css/autosave.css
Normal file
16
system/resources/css/autosave.css
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
.notice {
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
padding: 10px 20px;
|
||||
background-color: #f0f9ff;
|
||||
border: 1px solid #e0e0e0;
|
||||
border-radius: 5px;
|
||||
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
display: none;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue