OOKB / behance-demo

Using Behance as a content management sysytem... basically templating and styling the JSON output from behance.net
The Unlicense
3 stars 3 forks source link

#{{id}} in url should trigger that overlay to open #5

Open bjornmeansbear opened 7 years ago

bjornmeansbear commented 7 years ago

http://behance.ookb.co/#21572327

I don't know if that is possible... but I'll look into it sometime in the future...

trevorsee commented 7 years ago

I'm using https://github.com/browserstate/history.js for a project, I think it would solve this issue and allow better URLs

I didn't actually realize how old/depreciated that library is. But perhaps it points in the right direction

bjornmeansbear commented 7 years ago

Good idea.

Yeah, he's only updated the readme in the last year...

While there are some legitimate bugs and differences in state handling even in modern browsers, they are relatively small enough now that you can just use the native HTML5 History API. If you intend to support legacy browsers, then History.js is your bet.

This notice is here as History.js does not receive enough funding to be maintained, so it exists only in legacy condition for legacy browsers. Perhaps it still works for modern browsers,

but, it sounds like HTML5 might have some of this baked in already, maybe its worth researching that a bit more?