ceryliae / DnDAppFiles

Files for the Fifth Edition apps by Lion's Den
614 stars 549 forks source link

HTML Spell List similar to DM's Screen #291

Open oldbie opened 7 years ago

oldbie commented 7 years ago

I'm wondering how difficult it would be to create a searchable HTML list of spells that draws from the various spell XML files. That would be immensely helpful for at-the-table spell casting, when I'd rather pull it up in my browser than in GM5.

Conversely, if someone knows of a way to easily parse those XMLs for searching/reading in a browser, that might work, too.

Thanks again for the amazing resource. I'm forever indebted!

nonplayer commented 7 years ago

I think you'll have to write that yourself. I understand this repo is exclusively focused on files that are directly compatible with the GM5 app suite.

Conversely, you could just script a conversion of your own. And there are plenty of XMl to HTML converters online.

NeilMartin commented 7 years ago

You can use javascript embedded in HTML to load and display the contents of XML files. Then you can just write your HTML viewer once and overwrite the XML files when they change. Here's an example... https://www.w3schools.com/xml/ajax_applications.asp