diff --git a/README.md b/README.md new file mode 100644 index 0000000..5cc82be --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +HTML5 Notepad App +by Kaspars Dambis (http://konstruktors.com) +Fork by BenoƮt HERVIER (http://khertan.net) + +Fork addition : +============ +* Added support for devices without accurate time set, by adding a time delta to +the synchronization process. +* Created a QML Harmattan client for use on Nokia n950 and Nokia n9 + +Planned feature : +============ +* Multi account support + +Installation +============ + +1. Upload files to your server +2. Rename 'entries' folder to something random and harder to guess +3. Make that folder writable (CHMOD 0777) +4. Edit sync.php and specify your new DATA_DIR (the one you just renamed) +5. In sync.php change username and password to something unique +6. Done! + diff --git a/README.txt b/README.txt deleted file mode 100644 index c731c8a..0000000 --- a/README.txt +++ /dev/null @@ -1,14 +0,0 @@ -HTML5 Notepad App -by Kaspars Dambis -http://konstruktors.com - -Installation -============ - -1. Upload files to your server -2. Rename 'entries' folder to something random and harder to guess -3. Make that folder writable (CHMOD 0777) -4. Edit sync.php and specify your new DATA_DIR (the one you just renamed) -5. In sync.php change username and password to something unique -6. Done! - diff --git a/cache.manifest.php b/cache.manifest.php index ccfcb97..582828f 100644 --- a/cache.manifest.php +++ b/cache.manifest.php @@ -1,6 +1,6 @@ CACHE MANIFEST -# v20121 +# v20122 CACHE: index.html @@ -14,4 +14,4 @@ NETWORK: sync.php -logout.php \ No newline at end of file +logout.php diff --git a/html5-notepad-app-chrome.zip b/html5-notepad-app-chrome.zip deleted file mode 100644 index 955fa15..0000000 Binary files a/html5-notepad-app-chrome.zip and /dev/null differ diff --git a/index.html b/index.html index 4666288..42417b4 100644 --- a/index.html +++ b/index.html @@ -228,6 +228,7 @@ function sync() { if (navigator.onLine) { + localStorage.setItem('clientime', (new Date().getTime() + '')); $.post('sync.php', localStorage, function(data) { console.log(data); localStorage.setItem('index', JSON.stringify(data.index)); @@ -276,7 +277,7 @@ if (title === '') title = 'Untitled'; if (val['timestamp'] !== 0) - $items.push('