mliebelt / PgnViewerJS-WP

Integration of PgnViewerJS into WordPress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow generation of ID if missing

mliebelt opened this issue · comments

If you include more than one game on a wordpress page, you have to use the parameter id to ensure that the Javascript implementation has a way to find the right HTML div to render things in. It would be nice if the ID would be generated automatically if missing. The ID is only needed internally, so it could be ugly, and no one will notice.

Generated a random ID if one is missing.