annotorious / annotorious-v1

Project has moved to http://github.com/annotorious/annotorious
https://annotorious.com
MIT License
593 stars 142 forks source link

[Annotorious] usage #204

Open PravinkumarA opened 5 years ago

PravinkumarA commented 5 years ago

How to use annotorious.js with dynamic images.

For Example: var img = $(''); img.attr('src', samplePath + 'pages/' + (page - 2) + '.jpg'); img.load(function () { var container = $('.docs-brochure .p' + page); img.css({ width: container.width(), height: container.height() }); img.appendTo($('.docs-brochure .p' + page)); //anno.makeAnnotatable(document.getElementById(page));
});

Please help, Thanks.