diff --git a/src/web/js/share.js b/src/web/js/share.js index c6cb6748..fe5d2e05 100644 --- a/src/web/js/share.js +++ b/src/web/js/share.js @@ -124,7 +124,7 @@ window.makeShareAPI = function makeShareAPI(pyretVersion) { text: importCode }, { - message: "You can also click Update below to copy the current version to the published version, or click Close to exit this window." + message: "You can also click Update below to copy the current version to the published version, or click Cancel to exit this window." } ] }); @@ -181,71 +181,6 @@ window.makeShareAPI = function makeShareAPI(pyretVersion) { } } - function autoHighlightBox(text) { - var textBox = $("").addClass("auto-highlight"); - textBox.attr("size", text.length); - textBox.attr("editable", false); - textBox.on("focus", function() { $(this).select(); }); - textBox.on("mouseup", function() { $(this).select(); }); - textBox.val(text); - return textBox; - } - - function getLanguage() { - if(typeof navigator !== "undefined") { - return navigator.language || "en-US"; // Biased towards USA - } - else { - return "en-US"; - } - } - - var dateOptions = { - weekday: "short", - year: "numeric", - month: "short", - day: "numeric", - hour: "numeric", - minute: "numeric" - }; - - function drawShareRow(f) { - var container = $("