You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
367 B
JavaScript
22 lines
367 B
JavaScript
import _LargeImage from './_LargeImage.js';
|
|
|
|
var LargeImage = function(){
|
|
return {
|
|
view: function(){
|
|
if(_LargeImage.src === null){
|
|
return null;
|
|
}
|
|
else{
|
|
return m('img.img-responsive.large-image', {
|
|
src: _LargeImage.src,
|
|
onclick: function(e){
|
|
e.stopPropagation();
|
|
_LargeImage.src = null;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
export default LargeImage; |