Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd committed Jul 2, 2024
1 parent 11845eb commit 2cd5def
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 32 deletions.
4 changes: 1 addition & 3 deletions css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,6 @@ kbd {
background-color: #e1e3e5;
border: 1px solid #adb3b8;
border-radius: 3px;
box-shadow:
0 1px 0 rgba(12, 13, 14, 0.2),
0 0 0 2px #fff inset;
box-shadow: 0 1px 0 rgba(12, 13, 14, 0.2), 0 0 0 2px #fff inset;
white-space: nowrap;
}
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta
Expand Down Expand Up @@ -1132,8 +1132,8 @@ <h3 class="t subtitle" data-t="share.options"></h3>
switch to a more capable one! Recent versions of
<a href="https://www.opera.com">Opera</a>,
<a href="https://www.google.com/chrome/">Chrome</a>
and <a href="https://www.mozilla.org/firefox/">Firefox</a> have
been tested to work. Alternatively, you can still use the
and <a href="https://www.mozilla.org/firefox/">Firefox</a> have been
tested to work. Alternatively, you can still use the
<a href="https://overpass-api.de/query_form.html">
Overpass_API query form
</a>
Expand Down
53 changes: 29 additions & 24 deletions js/ide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1541,16 +1541,18 @@ class IDE {
queryWithMapCSS += `{{data:${this.queryParser.getStatement("data")}}}`;
else if (settings.server !== configs.defaultServer)
queryWithMapCSS += `{{data:overpass,server=${settings.server}}}`;
$("#export-dialog a#export-interactive-map")[0].href =
`${baseurl}map.html?${new URLSearchParams({
Q: queryWithMapCSS
})}`;
$(
"#export-dialog a#export-interactive-map"
)[0].href = `${baseurl}map.html?${new URLSearchParams({
Q: queryWithMapCSS
})}`;
// encoding exclamation marks for better command line usability (bash)
$("#export-dialog a#export-overpass-api")[0].href =
`${server}interpreter?data=${encodeURIComponent(query)
.replace(/!/g, "%21")
.replace(/\(/g, "%28")
.replace(/\)/g, "%29")}`;
$(
"#export-dialog a#export-overpass-api"
)[0].href = `${server}interpreter?data=${encodeURIComponent(query)
.replace(/!/g, "%21")
.replace(/\(/g, "%28")
.replace(/\)/g, "%29")}`;
function toDataURL(text, mediatype) {
return `data:${mediatype || "text/plain"};charset=${
document.characterSet || document.charset
Expand Down Expand Up @@ -2047,21 +2049,24 @@ class IDE {
return false;
});

$("#export-dialog a#export-convert-xml")[0].href =
`${server}convert?${new URLSearchParams({
data: query,
target: "xml"
})}`;
$("#export-dialog a#export-convert-ql")[0].href =
`${server}convert?${new URLSearchParams({
data: query,
target: "mapql"
})}`;
$("#export-dialog a#export-convert-compact")[0].href =
`${server}convert?${new URLSearchParams({
data: query,
target: "compact"
})}`;
$(
"#export-dialog a#export-convert-xml"
)[0].href = `${server}convert?${new URLSearchParams({
data: query,
target: "xml"
})}`;
$(
"#export-dialog a#export-convert-ql"
)[0].href = `${server}convert?${new URLSearchParams({
data: query,
target: "mapql"
})}`;
$(
"#export-dialog a#export-convert-compact"
)[0].href = `${server}convert?${new URLSearchParams({
data: query,
target: "compact"
})}`;

// OSM editors
// first check for possible mistakes in query.
Expand Down
2 changes: 1 addition & 1 deletion land.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<html>
<head></head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion map.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<html>
<head>
<meta
Expand Down

0 comments on commit 2cd5def

Please sign in to comment.