This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<!-- Only one root node is allowed in template. --> | |
<div class="container"> | |
<text class="title">Location Finder</text> | |
<text>To find your place in the application, firstly press the "Obtain the geographical location" button. Then click the "show my location" button. | |
After your location is determined, "Get information" will be automatically called for information about the location. | |
</text> | |
<input type="button" class="mybutton" onclick="getGeolocation" value="Obtain the geographical location." /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
import geolocation from '@system.geolocation' | |
import prompt from '@system.prompt'; | |
module.exports = { | |
data: { | |
information: {}, | |
received_data: "", | |
lat: 41.029032, | |
lon: 29.117621 | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import geolocation from '@system.geolocation' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<!-- Only one root node is allowed in template. --> | |
<div class="container"> | |
<text class="title">Location Finder</text> | |
<text>To find your place in the application, firstly press the "Obtain the geographical location" button. Then click the "show my location" button. | |
After your location is determined, "Get information" will be automatically called for information about the location. | |
</text> | |
<input type="button" class="mybutton" onclick="getGeolocation" value="Obtain the geographical location." /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"package": "com.sezerbozkir.quickappwithlocationkit", | |
"name": "QuickAppwithLocationKit", | |
"versionName": "1.0.0", | |
"versionCode": 1, | |
"icon": "/Common/logo.png", | |
"minPlatformVersion": 1075, | |
"features": [ | |
{ | |
"name": "system.geolocation" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
push.off(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
push.on({ | |
callback: function (ret) { | |
console.log("received pass through message, ret=" + JSON.stringify(ret)); | |
}, | |
complete: function () { | |
console.log('push.on completed'); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
push.subscribe({ | |
success: function(data) { | |
console.log("push.subscribe succeeded, result data=" + JSON.stringify(data)); | |
}, | |
fail: function(data, code) { | |
console.log("push.subscribe failed, result data=" + JSON.stringify(data) + ", code=" + code); | |
}, | |
complete: function() { | |
console.log("push.subscribe completed"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import push from '@service.push' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
from time import sleep | |
import os | |
def clear_screen(): | |
if os.name == 'nt': | |
os.system("cls") | |
else: | |
os.system("clear") |