Skip to content

Instantly share code, notes, and snippets.

View Natgho's full-sized avatar
🐍
Dreaming

Sezer Bozkır Natgho

🐍
Dreaming
View GitHub Profile
@Natgho
Natgho / location.ux
Created October 30, 2020 13:42
QuickApp with HMS Location Kit
<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." />
@Natgho
Natgho / getLocation and Battery Information.js
Last active January 22, 2021 12:15
How to use Geolocation for Harmony OS
import geolocation from '@system.geolocation';
import battery from '@system.battery';
export default {
data: {
index: 0,
latlon: "",
accuracy: 0,
battery: 0,
},
@Natgho
Natgho / firstPageDesign.htm
Last active January 22, 2021 08:53
firstPageDesign
<div class="container" style="flex-direction: column;">
<text class="title">
Konumunuz: {{latlon}}
</text>
<text class="title">
Dogruluk: {{accuracy}}
</text>
<text class="title">
Batarya Durumu: {{battery}}
</text>
@Natgho
Natgho / Index.html
Last active January 22, 2021 08:56
Index.hml
<swiper class="container" index="{{index}}">
<div class="swiper-item first-page">
First Page
</div>
<div class="swiper-item second-page">
Second Page
</div>
<div class="swiper-item third-page third-page-content">
Third Page
</div>
@Natgho
Natgho / BaseApp.js
Created January 22, 2021 12:16
BaseApp.js
export default {
data: {
index: 0,
},
onInit() {
}
};
@Natgho
Natgho / firstPageofApp.html
Created January 22, 2021 12:18
firstPageofApp.hml
<swiper class="container" index="{{index}}">
<div class="swiper-item first-page">
<div class="first-page-content">
<text class="title">
Konumunuz: {{latlon}}
</text>
<text class="title">
Dogruluk: {{accuracy}}
</text>
<text class="title">
@Natgho
Natgho / secondPageOfApp.html
Created January 22, 2021 12:23
secondPageofApp.hml
<swiper class="container" index="{{index}}">
<div class="swiper-item first-page">
<div class="first-page-content">
<text class="title">
Konumunuz: {{latlon}}
</text>
<text class="title">
Dogruluk: {{accuracy}}
</text>
<text class="title">
@Natgho
Natgho / secondPageOfApp.js
Created January 22, 2021 12:25
secondPageOfApp.js
import geolocation from '@system.geolocation';
import battery from '@system.battery';
export default {
data: {
index: 0,
latlon: "",
accuracy: 0,
battery: 0,
percentage: 0,
@Natgho
Natgho / thirdPageofApp.js
Created January 22, 2021 12:29
thirdPageofApp.js
import geolocation from '@system.geolocation';
import battery from '@system.battery';
export default {
data: {
index: 0,
latlon: "",
accuracy: 0,
battery: 0,
percentage: 0,
@Natgho
Natgho / thirdPageofApp.html
Created January 22, 2021 12:31
thirdPageOfApp.hml
<swiper class="container" index="{{index}}">
<div class="swiper-item first-page">
<div class="first-page-content">
<text class="title">
Konumunuz: {{latlon}}
</text>
<text class="title">
Dogruluk: {{accuracy}}
</text>
<text class="title">