Changeset 3661867
- Timestamp:
- 08/23/2026 01:06:00 PM (2 months ago)
- Location:
- astrowave-simple-visit-counter/trunk
- Files:
-
- 3 edited
-
astrowave-simple-visit-counter.php (modified) (2 diffs)
-
js/counter-ajax.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
astrowave-simple-visit-counter/trunk/astrowave-simple-visit-counter.php
r3661854 r3661867 4 4 * Plugin URI: https://wordpress.org/plugins/astrowave-simple-visit-counter/ 5 5 * Description: Ultra-lightweight visitor counter. No DB, cookie dedupe, bot filter, midnight reset by WP timezone. / 超軽量アクセスカウンター。DB不要・Cookie二重カウント防止・Bot排除・夜中0時リセット(WPタイムゾーン準拠)。 6 * Version: 1.2. 06 * Version: 1.2.1 7 7 * Author: Saigamo 8 8 * Author URI: https://astrowave.jp/ … … 17 17 18 18 // 定数の定義 19 define('ASTROWAVE_SIMPLE_VISIT_COUNTER_VERSION', '1.2. 0');19 define('ASTROWAVE_SIMPLE_VISIT_COUNTER_VERSION', '1.2.1'); 20 20 define('ASTROWAVE_SIMPLE_VISIT_COUNTER_DIR', plugin_dir_path(__FILE__)); 21 21 define('ASTROWAVE_SIMPLE_VISIT_COUNTER_URL', plugin_dir_url(__FILE__)); -
astrowave-simple-visit-counter/trunk/js/counter-ajax.js
r3661854 r3661867 24 24 var showDaily = counter.getAttribute('data-show-daily') === '1'; 25 25 26 // ゼロ埋め 関数26 // ゼロ埋め(桁未満のみ。桁を超えたら省略せずそのまま表示) 27 27 function pad(num, size) { 28 var s = "0000000000" + num; 29 return s.substr(s.length - size); 28 var s = String(Math.abs(parseInt(num, 10) || 0)); 29 while (s.length < size) { 30 s = '0' + s; 31 } 32 return s; 30 33 } 31 34 -
astrowave-simple-visit-counter/trunk/readme.txt
r3661854 r3661867 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.2. 07 Stable tag: 1.2.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 138 138 == Changelog == 139 139 140 = 1.2.1 = 141 * Fix: when yesterday/today (or total) exceeds the display digit width, show the full number instead of truncating. 142 * 修正: 昨日/今日(および合計)が表示桁を超えたとき、末尾だけ残さず全桁を表示するようにしました。 143 140 144 = 1.2.0 = 141 145 * Added optional milestone popup (default OFF): celebrate when the total hits your number, with image save.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)