Open PravinkumarA opened 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.
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.