* Displays the thumbnal image * * @param {*} node jQuery node * @param {string} thumbnail Thumbnail URL * @param {object} [options] Options object
(node, thumbnail, options)
| 67 | * @param {object} [options] Options object |
| 68 | */ |
| 69 | function displayThumbnailImage(node, thumbnail, options) { |
| 70 | if (thumbnail) { |
| 71 | var link = $('<a></a>') |
| 72 | .attr('href', loadImage.createObjectURL(thumbnail)) |
| 73 | .attr('download', 'thumbnail.jpg') |
| 74 | .appendTo(node) |
| 75 | loadImage( |
| 76 | thumbnail, |
| 77 | function (img) { |
| 78 | link.append(img) |
| 79 | node.show() |
| 80 | }, |
| 81 | options |
| 82 | ) |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * Displays metadata |
no test coverage detected