Skip to content

Commit

Permalink
v1.53.1 NEO更新。突然の停電の時にも画像を復元できるようにするため10ストロークごとにバックアップ。
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Sep 28, 2024
1 parent 4aa72d8 commit b123a56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion petitnote/app/neo/neo.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ document.addEventListener("DOMContentLoaded", function () {

var Neo = function () {};

Neo.version = "1.6.3";
Neo.version = "1.6.4";
Neo.painter;
Neo.fullScreen = false;
Neo.uploaded = false;
Expand Down Expand Up @@ -2289,6 +2289,10 @@ Neo.Painter.prototype._mouseDownHandler = function (e) {
this.prevMouseX = this.mouseX;
this.prevMouseY = this.mouseY;
this.securityCount++;
let autosaveCount = this.securityCount;
if (autosaveCount % 10 === 0 && Neo.painter.isDirty()) {
Neo.painter.saveSession(); //10ストロークごとに自動バックアップ
}

if (this.isMouseDownRight) {
this.isMouseDownRight = false;
Expand Down
4 changes: 2 additions & 2 deletions petitnote/index.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
//Petit Note (c)さとぴあ @satopian 2021-2024
//1スレッド1ログファイル形式のスレッド式画像掲示板
$petit_ver='v1.53.0';
$petit_lot='lot.20240928';
$petit_ver='v1.53.1';
$petit_lot='lot.20240928.1';
$lang = ($http_langs = isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : '')
? explode( ',', $http_langs )[0] : '';
$en= (stripos($lang,'ja')!==0);
Expand Down

0 comments on commit b123a56

Please sign in to comment.