add explanation about the online badge
This commit is contained in:
parent
6536f27cd9
commit
86a23df7cc
|
@ -31,6 +31,7 @@ I can also be reached via [telegram](https://t.me/bleki42).
|
|||
|
||||
I also made a lil badge to show if i am currently online. Cool, huh?
|
||||
<img src='https://online.blek.codes/gif' height='31px' width='88px' alt='A badge showing if i am online or not. Sorry, the only way to know it is to load the gif. It would be all greeny if i am online' />
|
||||
<a href='/online-badge'>how does it work?</a>
|
||||
|
||||
## Webrings!!
|
||||
I like webrings.
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
+++
|
||||
title = 'The funny badge'
|
||||
+++
|
||||
|
||||
It is actually dead simple: there is a simple server running on `online.blek.codes` and a cron job on my laptop that sends POST requests every minute (a heartbeat protocol basically) and that server serves that gif on URL `online.blek.codes/gif`.
|
||||
|
||||
If the server didn't receive a heartbeat for a few minutes, it assumes that i am offline and serves the offline gif.
|
||||
|
||||
You can [add it to your website too](http://git.blek.codes/blek/online.git), but it will require a bit of tinkering and requires you to have a web server as well.
|
Loading…
Reference in New Issue