suttacentral / bilara

Our Computer Aided Translation software
10 stars 8 forks source link

Dynamically update title attribute to show UID #12

Closed sujato closed 5 years ago

sujato commented 5 years ago

I think it is useful to have an indicator on the screen for the segment UID. For example, you might want to refer to Dhp 35, but currently there is no feedback in bilara to tell you the verse number.

We could show this on the segments themselves, and maybe toggle as per the text pages on SC. But a simple solution would be to insert the UID in the page <title> attribute, eg. <title>dhp35</title>. That way we do not have to worry about any CSS or whatever.

Dynamically update title attribute with segment UID.