siggame / Viseur

Visualizer for the Cadre AI game framework
http://vis.siggame.io
MIT License
5 stars 9 forks source link

Update title based on gamelog playing #24

Closed JacobFischer closed 7 years ago

JacobFischer commented 7 years ago

Currently the title of the page is static, Viseur

It would be cool to update the title. Say for example we were playing back the gamelog 2017.03.23.12.29.15.006-Chess-1

Once parsed, we know the gamelog will be

game: Chess
session: 1
date: 2017.03.23.12.29.15.006

So, we can then make the title Viseur - Chess - 1 - <formatted date>

That way if you have multiple gamelogs open, you can easily tell what they are for.

An expansion on this idea would be to update the favicon as well depending on game. But that is outside the scope of this issue.