diff --git a/script.html b/script.html
index 9e9bf17..648a605 100644
--- a/script.html
+++ b/script.html
@@ -341,6 +341,15 @@ function render(r) {
+ (p.cut_url ? 'Cut it again' : 'Cut the B-roll in') + ''
+ '
'
+ ''
+ + ''
+ + '
Send it to someone
'
+ + '
'
+ + '
Texting the video itself puts it through '
+ + 'carrier transcoding and it arrives looking worse than it left. Send the picture as '
+ + 'the hook and let the link carry the video at full quality.
'
+ + ''
+ + ''
+ + ''
+ '
';
}
@@ -1119,8 +1128,79 @@ function bindPreviz() {
});
}
+// The picture is the hook; the link carries the video. Never the video itself
+// over MMS - carriers transcode it into mush.
+function bindShare() {
+ var b = document.getElementById("sharebtn");
+ if (!b) return;
+ var note = document.getElementById("sharenote"),
+ out = document.getElementById("shareout");
+
+ function paint(r) {
+ var kb = Math.round((r.bytes || 0) / 1024);
+ var link = r.video || "";
+ var msg = ((DATA && DATA.script && DATA.script.title)
+ ? DATA.script.title + " — " : "")
+ + ((DATA && DATA.project && DATA.project.pet_name) || "your pet")
+ + " has something to say. " + link;
+ out.innerHTML = '
'
+ + ''
+ + '
'
+ + '
' + esc(r.size || "") + ' · ' + kb + ' KB'
+ + ' · well inside the 600KB most carriers allow, so it will not be '
+ + 'downsampled.