These are chat archives for UniversalViewer/universalviewer

14th
Oct 2015
Øystein Blixhavn
@blixhavn
Oct 14 2015 11:36
It's probably somewhat of a stupid question, but after installing the bower package, do I need to include anything other than the embed.js to get UV to work? Say I want to test a proof of concept by including
<div class="uv" data-locale="en-GB:English (GB),cy-GB:Cymraeg" data-config="" data-uri="http://wellcomelibrary.org/iiif/b18035723/manifest" data-sequenceindex="0" data-canvasindex="0" data-zoom="-0.3778,0,1.7556,1.3791" data-rotation="0" style="width:800px; height:600px; background-color: #000"></div>
Edward Silverton
@edsilv
Oct 14 2015 12:44

Yep, you should just need to include a script tag pointing to bower_components/uv/dist/uv-1.5.8/lib/embed.jsalong with your div.

I've made a demo project here:

https://github.com/UniversalViewer/demo-site

Øystein Blixhavn
@blixhavn
Oct 14 2015 14:52
Thanks. I've started developing my own manifest generator now, but I'm getting stuck on the js error "Uncaught TypeError: Cannot read property '@context' of undefined" when trying it on http://universalviewer.azurewebsites.net/
Any tips?
Edward Silverton
@edsilv
Oct 14 2015 15:28
What's the url for your manifest?