Merge branch 'master' of github.com:ab-gh/place-atlas

This commit is contained in:
ash 2022-04-04 15:39:57 +01:00
commit 5cd6910730
No known key found for this signature in database
GPG key ID: 9680D0BE1469C427

View file

@ -1233,6 +1233,10 @@ function initDraw(){
exportOverlay.style.display = "none";
});
exportCloseButton.addEventListener("click", function(e){
exportDirectPost();
})
document.getElementById("highlightUncharted").addEventListener("click", function(e){
highlightUncharted = this.checked;
render(path);
@ -1254,6 +1258,9 @@ function initDraw(){
jsonString = jsonString.join("\n ");
jsonString = " "+jsonString;
textarea.value = jsonString;
console.log("a");
var directPostUrl = "https://www.reddit.com/r/placeAtlas2/submit?selftext=true&title=New%20Submission&text="+encodeURIComponent(document.getElementById("exportString").value);
document.getElementById("exportDirectPost").href=directPostUrl;
exportOverlay.style.display = "flex";
@ -1261,6 +1268,7 @@ function initDraw(){
textarea.select();
}
function calculateCenter(path){
var area = 0,