|
|
@ -75,7 +75,6 @@ function openLocationActionDialog(latitude, longitude, words) {
|
|
|
|
text: "Link",
|
|
|
|
text: "Link",
|
|
|
|
onClick: function () {
|
|
|
|
onClick: function () {
|
|
|
|
window.plugins.socialsharing.shareWithOptions({
|
|
|
|
window.plugins.socialsharing.shareWithOptions({
|
|
|
|
message: words,
|
|
|
|
|
|
|
|
url: "https://fixphrase.com/#" + words.replaceAll(" ", "-")
|
|
|
|
url: "https://fixphrase.com/#" + words.replaceAll(" ", "-")
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -97,8 +96,7 @@ function openLocationActionDialog(latitude, longitude, words) {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
text: "FixPhrase",
|
|
|
|
text: "FixPhrase",
|
|
|
|
onClick: function () {
|
|
|
|
onClick: function () {
|
|
|
|
console.log("wefuiefhui weu");
|
|
|
|
copyToClipboard(words, function () {
|
|
|
|
navigator.clipboard.writeText(words).then(() => {
|
|
|
|
|
|
|
|
app.toast.show({text: "Copied!", closeTimeout: 3000});
|
|
|
|
app.toast.show({text: "Copied!", closeTimeout: 3000});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -106,7 +104,7 @@ function openLocationActionDialog(latitude, longitude, words) {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
text: "Link",
|
|
|
|
text: "Link",
|
|
|
|
onClick: function () {
|
|
|
|
onClick: function () {
|
|
|
|
navigator.clipboard.writeText("https://fixphrase.com/#" + words.replaceAll(" ", "-")).then(() => {
|
|
|
|
copyToClipboard("https://fixphrase.com/#" + words.replaceAll(" ", "-"), function () {
|
|
|
|
app.toast.show({text: "Copied!", closeTimeout: 3000});
|
|
|
|
app.toast.show({text: "Copied!", closeTimeout: 3000});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -114,7 +112,7 @@ function openLocationActionDialog(latitude, longitude, words) {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
text: "Coordinates",
|
|
|
|
text: "Coordinates",
|
|
|
|
onClick: function () {
|
|
|
|
onClick: function () {
|
|
|
|
navigator.clipboard.writeText(latitude + ", " + longitude).then(() => {
|
|
|
|
copyToClipboard(latitude + ", " + longitude, function () {
|
|
|
|
app.toast.show({text: "Copied!", closeTimeout: 3000});
|
|
|
|
app.toast.show({text: "Copied!", closeTimeout: 3000});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -122,7 +120,7 @@ function openLocationActionDialog(latitude, longitude, words) {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
[
|
|
|
|
{
|
|
|
|
{
|
|
|
|
text: "Open in Default Maps App",
|
|
|
|
text: "Open in default maps app",
|
|
|
|
onClick: function () {
|
|
|
|
onClick: function () {
|
|
|
|
openGeoLink("geo:" + latitude + "," + longitude);
|
|
|
|
openGeoLink("geo:" + latitude + "," + longitude);
|
|
|
|
}
|
|
|
|
}
|
|
|
|