Source code from http://www.jamesmolloy.co.uk/tutorial_html/index.html with improved build system and some simplifications. Behaviour is very close to the tutorial so ...
§ Work done during Zhuohao's internship at Pattern Recognition Center, WeChat AI, Tencent Inc; † Corresponding author.