mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-11-12 13:02:04 +01:00
Minified
This commit is contained in:
parent
66b5bcc5d5
commit
79f27c07a8
1 changed files with 8 additions and 0 deletions
|
@ -1233,6 +1233,10 @@ function initDraw(){
|
||||||
exportOverlay.style.display = "none";
|
exportOverlay.style.display = "none";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
exportCloseButton.addEventListener("click", function(e){
|
||||||
|
exportDirectPost();
|
||||||
|
})
|
||||||
|
|
||||||
document.getElementById("highlightUncharted").addEventListener("click", function(e){
|
document.getElementById("highlightUncharted").addEventListener("click", function(e){
|
||||||
highlightUncharted = this.checked;
|
highlightUncharted = this.checked;
|
||||||
render(path);
|
render(path);
|
||||||
|
@ -1254,6 +1258,9 @@ function initDraw(){
|
||||||
jsonString = jsonString.join("\n ");
|
jsonString = jsonString.join("\n ");
|
||||||
jsonString = " "+jsonString;
|
jsonString = " "+jsonString;
|
||||||
textarea.value = 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";
|
exportOverlay.style.display = "flex";
|
||||||
|
|
||||||
|
@ -1261,6 +1268,7 @@ function initDraw(){
|
||||||
textarea.select();
|
textarea.select();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function calculateCenter(path){
|
function calculateCenter(path){
|
||||||
|
|
||||||
var area = 0,
|
var area = 0,
|
||||||
|
|
Loading…
Reference in a new issue