Skip to content

ramonchito2/Gravit-Autosaver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Gravit.io Autosaver

I've been using Gravit.io for a few weeks now, and I love it! As an avid Adobe Fireworks user, I have been looking for quite some time for something that could replace it since it is no longer supported. Enter Gravit.io and I immediately fell in love.

After much use however, I noticed that there isn't a feature to autosave :( There have been plenty of times where autosave would have saved me from hours of work (almost everything autosaves these days, I got out of practice). Gravit said they may or may not be working on an autosave feature, so I just decided to make my own simple js bookmarklet hack. It is pretty simple, and isn't optimized by any means, but it gets the job done.

Drag/Add one of these bookmarklets to your bookmarks bar and try it out Gravit Autoplay Gravit Autoplay (console logging included)


How it works

When you click on this bookmark while in your workspace, this will enable autosave which saves the document every 5 minutes. After 5 minutes, if you are still working, autosave won't interrupt what you are doing, instead it will just give you a reminder that its time to save the document. Which you can ignore and keep working of course, or save it, your choice. enter image description here

If any point you become idle and haven't saved in more than 5 minutes (idle meaning you haven't manipulated the page for more than 10 seconds - e.g. moved to new tab, walked away, etc.), the autosaver will finish saving for you.

If you want to change the autosave time limit or idle time, you can find that in the js files:

idleTimer = null; idleState = false; idleWait = 10000; // 10 seconds saveTimer = null; saveTime = 300000; // 5 minutes timeStarted = false; timetosave = false; changesmade = false;

About

Bookmarklet to autosave work on gravit.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published