I hereby claim:
- I am hssm on github.
- I am hssm (https://keybase.io/hssm) on keybase.
- I have a public key ASA3sybSj_5DSHPJcAGaI5JYY3j8byuD3_RgitmbvcYWdgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Anki template for the popular Japanese Core (2k 6k 10k etc) decks.
I highgly recommend you use the VL PGothic font. Download it, extract it, and place the VL-PGothic-Regular.ttf file inside your collection.media directory and rename it to _VLPGothic.ttf.
Front side:
Do you need a way to decide if text should be black or white depending on the background it is drawn on? This gist contains a simple and effective solution with a demonstration.
The color choice is calculated by hand-crafted rules derived by mere human inspection. Don't like how it works for a certain range? You can easily tweak the numbers for that range.
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <style> | |
| .box { | |
| width: 80px; | |
| height: 80px; | |
| padding: 5px; | |
| line-height: 2em; | |
| text-align: center; |
| <!DOCTYPE html5> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Latch to bottom unless scrolled up</title> | |
| <script> | |
| document.addEventListener("DOMNodeInserted", function () { | |
| var b = document.body; | |
| // Additional padding/border to account for in calculations |