mirror of
https://github.com/tildeclub/site.git
synced 2026-08-25 11:59:23 +00:00
Software words and website words are capitalized (or, as another option, all caps), articles in the "tilde.club" category must have most words capitalized (may capitalize word in case of doubt), and the rest of the titles must have first word, of the title, capitalized, with the rest of the (non-software) words, of the title, all lowercase. Signed-off-by: keyboardan <keyboardan@tilde.club>
48 lines
1.3 KiB
Markdown
48 lines
1.3 KiB
Markdown
---
|
|
title: Page counter (counter.tilde.club)
|
|
author:
|
|
- deepend
|
|
- keyboardan
|
|
category: software
|
|
---
|
|
|
|
Image-digit hit counter for your tilde page. Drops in with one `<script>` tag and increments on each load.
|
|
|
|
## Quick start
|
|
|
|
Put this where you want the digits to render (footer is common):
|
|
|
|
```html
|
|
<script src="https://counter.tilde.club/?page=home&user=<your_username>"></script>
|
|
```
|
|
|
|
## What to know
|
|
|
|
* Counts are keyed by **(page, user)**. Use a unique `page` per page (`home`, `about`, `guestbook`).
|
|
* Digits are **zero-padded to 4** (e.g., `0042`).
|
|
* **Counts every load** (not unique visitors).
|
|
* Requires **JavaScript**.
|
|
|
|
## URL parameters
|
|
|
|
* `page` (required): letters/numbers/`._-` only.
|
|
* `user` (required): your tilde username (no `~`).
|
|
* `style` (optional): digit theme (default `web1`).
|
|
* `ext` (optional): image extension (default `gif`).
|
|
|
|
Example with options:
|
|
|
|
```html
|
|
<script src="https://counter.tilde.club/?page=about&user=<your_username>&style=7seg&ext=gif"></script>
|
|
```
|
|
|
|
## Available styles
|
|
|
|
`57chevy`, `7seg`, `bbldotg`, `bellbtm`, `blgrv`, `cntdwn`, `computer`, `ds9`, `fdb`, `led`, `marsil`, `sbgs`, `web1`
|
|
|
|
## Troubleshooting
|
|
|
|
* **No digits**: open the script URL directly -- fix invalid `page/user` or typos.
|
|
* **Broken images**: ensure `style` exists and `ext=gif`.
|
|
* **Shared counts**: give each page a distinct `page` value.
|