diff options
author | Olivier Paroz <github@oparoz.com> | 2015-04-18 22:11:36 +0200 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-04-23 18:19:21 +0200 |
commit | a968877a8b0454861dc27b763023ce52429a39dc (patch) | |
tree | be4016f06aa0d274045002fe1459a8b330d24c94 /apps/files_sharing/js | |
parent | 530c290555cb326e6a6bda867e16931ff4ae7df5 (diff) | |
download | nextcloud-server-a968877a8b0454861dc27b763023ce52429a39dc.tar.gz nextcloud-server-a968877a8b0454861dc27b763023ce52429a39dc.zip |
An idea to suggest that this is just a sample of the full text
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r-- | apps/files_sharing/js/public.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index f80d5e15de9..c08b7c7859c 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -118,7 +118,7 @@ OCA.Sharing.PublicApp = { url: url, headers: {Range: "bytes=0-1000"} }).then(function (data) { - var textDiv = $('<span/>').addClass('text-preview'); + var textDiv = $('<div/>').addClass('text-preview'); textDiv.text(data); textDiv.appendTo('#imgframe'); var divHeight = textDiv.height(); @@ -129,6 +129,9 @@ OCA.Sharing.PublicApp = { if (divHeight > previewHeight) { textDiv.height(previewHeight); } + var watermark = $('<div/>').addClass('watermark'); + watermark.text('SAMPLE'); + watermark.appendTo('#imgframe'); }); } else if (previewSupported === 'true' || mimetype.substr(0, mimetype.indexOf('/')) === 'image' && |